exynos: audiohal_comv1: Add support for VOIP_TX input flag
[Rocky7842: Required in VoIP calls on exynos9830]
Change-Id: I95c5cc4b22b7e263a024ef491037deee9348e382
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 968f296..adab758 100644
--- a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
+++ b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
@@ -4142,9 +4142,9 @@
in->common.stream_usage = AUSAGE_HOTWORD_RECORD;
ALOGD("device-%s: Requested to open VTS Record input", __func__);
}
- } else if (flags == AUDIO_INPUT_FLAG_NONE)
+ } else if (flags == AUDIO_INPUT_FLAG_NONE || (flags & AUDIO_INPUT_FLAG_VOIP_TX) != 0)
#else
- if (flags == AUDIO_INPUT_FLAG_NONE)
+ if (flags == AUDIO_INPUT_FLAG_NONE || (flags & AUDIO_INPUT_FLAG_VOIP_TX) != 0)
#endif
{
pthread_mutex_lock(&adev->lock);