diff options
author | Anver sadhique <quic_akurun@quicinc.com> | 2022-01-21 12:26:28 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-01-31 20:56:47 -0800 |
commit | 3ece64227019dc9095c8faf9b17603a11754cda9 (patch) | |
tree | 3578ea6afa682145c4c3776e53340da08b02cdba | |
parent | 604e437f6f1615172baf9b18e3e2dfe779597723 (diff) |
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
-rw-r--r-- | hal/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index 952116ac..334d4690 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -1964,7 +1964,7 @@ static void check_usecases_capture_codec_backend(struct audio_device *adev, ((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 ..", |