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

Commit 26fedb79 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: fix wrong VOIP volume during device switch"

parents 687bd94a cf983dfc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1423,6 +1423,11 @@ static void check_usecases_codec_backend(struct audio_device *adev,
                                                                        usecase->out_snd_device,
                                                                        platform_get_input_snd_device(adev->platform, uc_info->devices));
                    enable_audio_route(adev, usecase);
                    if (usecase->id == USECASE_AUDIO_PLAYBACK_VOIP) {
                        out_set_voip_volume(&usecase->stream.out->stream,
                                            usecase->stream.out->volume_l,
                                            usecase->stream.out->volume_r);
                    }
                    if (usecase->id == USECASE_AUDIO_PLAYBACK_FM) {
                        struct str_parms *parms = str_parms_create_str("fm_restore_volume=1");
                        if (parms)