exynos: audiohal: Add support for VOIP_TX input flag
* Required for btsco in VoIP calls on exynos9610
Change-Id: I4d2264e9d5a4d85a24fdbd1ce95814f29423fb24
diff --git a/libaudio/audiohal/audio_hw.c b/libaudio/audiohal/audio_hw.c
index a3d832f..fa2a5d2 100644
--- a/libaudio/audiohal/audio_hw.c
+++ b/libaudio/audiohal/audio_hw.c
@@ -3960,9 +3960,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
{
if (isCPCallMode(adev) &&