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

Commit 0bb200f9 authored by Yung Ti Su's avatar Yung Ti Su Committed by Yixuan Jiang
Browse files

hal: fix for voip volume setting when select_devices()



voip volume setting will not be applied correctly when select_devices()
since its usecase type won't necessary be voip_usecase
check for voip_usecase existance and not a capture type instead.

Bug: 110446256
Bug: 120052983
Test: self tested 20 times making a DUO video call

Change-Id: If3e6bc46be02a83ccf92bd56fc48a9c88c1e21bd
Signed-off-by: default avatarYung Ti Su <andysu@google.com>
parent c1b76085
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1482,7 +1482,7 @@ int select_devices(struct audio_device *adev,
            voice_set_sidetone(adev, out_snd_device, true);
    }

    if (usecase == voip_usecase) {
    if (usecase->type != PCM_CAPTURE && voip_usecase) {
        struct stream_out *voip_out = voip_usecase->stream.out;
        audio_extn_utils_send_app_type_gain(adev,
                                            voip_out->app_type_cfg.app_type,