Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cff5fab4 authored by Kunlei Zhang's avatar Kunlei Zhang
Browse files

hal: Update pcm_open flag for compress voip tx

Change the clock type to CLOCK_MONOTONIC to
synchronize the framework and compress voip
driver clock and timestamps.

Change-Id: I435cdaf8a2101ecdf3f10e37c6868933adfed5cf
parent ee00824d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -768,7 +768,7 @@ static int voip_start_call(struct audio_device *adev,
              __func__, adev->snd_card, pcm_dev_tx_id);
        voip_data.pcm_tx = pcm_open(adev->snd_card,
                                    pcm_dev_tx_id,
                                    PCM_IN, voip_config);
                                    PCM_IN|PCM_MONOTONIC, voip_config);
        if (voip_data.pcm_tx && !pcm_is_ready(voip_data.pcm_tx)) {
            ALOGE("%s: %s", __func__, pcm_get_error(voip_data.pcm_tx));
            pcm_close(voip_data.pcm_tx);