release-request-33811b80-8470-43aa-a2e6-0c80aa8b51af-for-git_oc-release-4070583 snap-temp-L92300000070865789
Change-Id: Ia956011f8db42a6d492edd6122d1e67570bc07b6
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index e7de4a9..6f0c9c9 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1673,7 +1673,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) {
@@ -1681,8 +1681,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,