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

Commit 95c18632 authored by Kunlei Zhang's avatar Kunlei Zhang Committed by Arne Coucheron
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 623cc1f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -332,7 +332,7 @@ static int voip_start_call(struct audio_device *adev,
              __func__, adev->snd_card, pcm_dev_tx_id);
              __func__, adev->snd_card, pcm_dev_tx_id);
        voip_data.pcm_tx = pcm_open(adev->snd_card,
        voip_data.pcm_tx = pcm_open(adev->snd_card,
                                    pcm_dev_tx_id,
                                    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)) {
        if (voip_data.pcm_tx && !pcm_is_ready(voip_data.pcm_tx)) {
            ALOGE("%s: %s", __func__, pcm_get_error(voip_data.pcm_tx));
            ALOGE("%s: %s", __func__, pcm_get_error(voip_data.pcm_tx));
            pcm_close(voip_data.pcm_rx);
            pcm_close(voip_data.pcm_rx);