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
diff --git a/hal/voice_extn/compress_voip.c b/hal/voice_extn/compress_voip.c
index fbd6d6f..4f293b0 100644
--- a/hal/voice_extn/compress_voip.c
+++ b/hal/voice_extn/compress_voip.c
@@ -767,7 +767,7 @@
__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);