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

Commit c17cab64 authored by Narsinga Rao Chella's avatar Narsinga Rao Chella
Browse files

hal: fix BT device switch issue for audio playback during VoIP call

- When VoIP call is active on non-BT device and if the music playback
tries to switch to BT device, it will continue to route to non-BT
device on which the VoIP call is active already.
- Fix the issue by not selecting VoIP devices for audio playback when
they are on different back ends.

Change-Id: Iff9251fcf02f897d9b1cdc17fcf27c262518ada8
CRs-fixed: 652129
parent f2651901
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -637,7 +637,8 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
            }
        } else if (voice_extn_compress_voip_is_active(adev)) {
            voip_usecase = get_usecase_from_list(adev, USECASE_COMPRESS_VOIP_CALL);
            if (voip_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) {
            if ((voip_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) &&
                (usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND)) {
                    in_snd_device = voip_usecase->in_snd_device;
                    out_snd_device = voip_usecase->out_snd_device;
            }