hal: voice recording snd device is incorrect
When voice recording is active during voice call on
usb headset, and then when call is moved to speaker from
usb headset, voice recording is using wrong device
Fix made to use voice call snd devices for voice recording when
call is moved from usb headset to speaker
Change-Id: I2170943bb6d2533e2a48a5747fc67778619305ab
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 96c007d..5c12db8 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2828,6 +2828,9 @@
AUDIO_DEVICE_IN_USB_HEADSET) &&
is_single_device_type_equal(&vc_usecase->device_list,
AUDIO_DEVICE_OUT_USB_HEADSET))||
+ (is_single_device_type_equal(&usecase->device_list,
+ AUDIO_DEVICE_IN_USB_HEADSET) &&
+ is_codec_backend_out_device_type(&vc_usecase->device_list)) ||
(is_single_device_type_equal(&usecase->device_list,
AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET) &&
is_codec_backend_out_device_type(&vc_usecase->device_list)))) {