hal : Use voice tx device for audio record use case during voice call
-During voice call it check for upcoming use case if voice snd devices needs
to be reused if backend are shared. But it does not check for input
devices and hence it uses different Tx device for audio recording during
voice call.
-Check for upcoming usecase if input device and voice device share same backend
then reuse voice tx device.
Change-Id: I02aced070db298220be477448c0266ab34ce131b
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index db1e399..870012b 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1236,6 +1236,8 @@
get_usecase_id_from_usecase_type(adev, VOICE_CALL));
if ((vc_usecase) && (((vc_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) &&
(usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND)) ||
+ ((vc_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) &&
+ (usecase->devices & AUDIO_DEVICE_IN_ALL_CODEC_BACKEND)) ||
(usecase->devices == AUDIO_DEVICE_IN_VOICE_CALL))) {
in_snd_device = vc_usecase->in_snd_device;
out_snd_device = vc_usecase->out_snd_device;