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

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

Merge "hal: avoid redundant device switch during playback."

parents dc7336c6 08fd5baf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6422,7 +6422,8 @@ bool platform_check_and_set_codec_backend_cfg(struct audio_device* adev,
        ALOGI("%s: new_snd_devices[%d] is %d", __func__, i, new_snd_devices[i]);
        if ((platform_check_codec_backend_cfg(adev, usecase, new_snd_devices[i],
                                             &backend_cfg)) ||
             (!platform_check_backends_match(usecase->out_snd_device, snd_device))) {
            ((usecase->out_snd_device != SND_DEVICE_NONE) &&
             !platform_check_backends_match(usecase->out_snd_device, snd_device))) {
            ret = platform_set_codec_backend_cfg(adev, new_snd_devices[i],
                                           backend_cfg);
            if (!ret) {