audio_hal: correct platform_check_backend_match for in_snd device
When voice recording is active and start voice call on usb headphone
voice rec and voice call with usb headphone use same backend
in_snd device. when call is moved to speaker and back to usb headphone
tx mute observed due to current active in_snd device not disabled
and enabled again during device switch.
platform_check_backend_match only check out_snd_device so passing
in_snd_device always return false.
Fix made to use platform_check_all_backend_match for in_snd device
backend match check.
Change-Id: Ia4761996641f711713cfa36762861978a1b94337
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 42edc42..2e49b64 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2066,7 +2066,7 @@
((uc_info->type == VOICE_CALL &&
is_single_device_type_equal(&usecase->device_list,
AUDIO_DEVICE_IN_VOICE_CALL)) ||
- platform_check_backends_match(snd_device,\
+ platform_check_all_backends_match(snd_device,\
usecase->in_snd_device))) &&
(usecase->id != USECASE_AUDIO_SPKR_CALIB_TX)) {
ALOGD("%s: Usecase (%s) is active on (%s) - disabling ..",