Fix parameters passed to pcm_open to include PCM_MONOTONIC am: 635e743ad2
am: 6e14144a03
Change-Id: Ida70817f1c07a8988a04efbb4c7c01ecf3eb5d16
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index c720571..e689b28 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1798,7 +1798,7 @@
goto error_open;
}
} else {
- unsigned int flags = PCM_OUT;
+ unsigned int flags = PCM_OUT | PCM_MONOTONIC;
unsigned int pcm_open_retry_count = 0;
if (out->usecase == USECASE_AUDIO_PLAYBACK_AFE_PROXY) {
@@ -1806,8 +1806,7 @@
pcm_open_retry_count = PROXY_OPEN_RETRY_COUNT;
} else if (out->realtime) {
flags |= PCM_MMAP | PCM_NOIRQ;
- } else
- flags |= PCM_MONOTONIC;
+ }
while (1) {
out->pcm = pcm_open(adev->snd_card, out->pcm_device_id,