exynos: audiohal: 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: I8c610bb266cf519c4e97b2f288e45a683e7ca20f
diff --git a/libaudio/audiohal/audio_hw.c b/libaudio/audiohal/audio_hw.c
index 95d83ff..e7d1d53 100644
--- a/libaudio/audiohal/audio_hw.c
+++ b/libaudio/audiohal/audio_hw.c
@@ -3942,6 +3942,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);
}
}