exynos: audiohal_comv1: When denying low latency capture ensure VOIP_TX flag is set
* WhatsApp is running into this for outgoing calls, since the input stream
seems to get reconfigured only when the other side accepts the call
Change-Id: Id6d1c0aa0b452eb9eef146504dbe17f57bcf0d33
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
index e7fa7c7..1befdc6 100644
--- a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
+++ b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
@@ -4147,6 +4147,7 @@
if ((flags & AUDIO_INPUT_FLAG_FAST) != 0) {
if (isCallMode(adev) && config->sample_rate != LOW_LATENCY_CAPTURE_SAMPLE_RATE) {
flags &= ~AUDIO_INPUT_FLAG_FAST;
+ flags |= AUDIO_INPUT_FLAG_VOIP_TX;
ALOGD("device-%s: Denied to open Low Latency input. flags changed(%#x)", __func__, flags);
}
}