Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fdc699f authored by Anver sadhique's avatar Anver sadhique
Browse files

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
parent 7edf03c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2066,7 +2066,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 ..",