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

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

Merge "hal: check usecase type before checking out_snd_device backend match"

parents de56ba3c 6261d8ef
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1541,7 +1541,9 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
        } else if (voice_extn_compress_voip_is_active(adev)) {
            bool out_snd_device_backend_match = true;
            voip_usecase = get_usecase_from_list(adev, USECASE_COMPRESS_VOIP_CALL);
            if (usecase->stream.out != NULL) {
            if ((voip_usecase != NULL) &&
                (usecase->type == PCM_PLAYBACK) &&
                (usecase->stream.out != NULL)) {
                out_snd_device_backend_match = platform_check_backends_match(
                                                   voip_usecase->out_snd_device,
                                                   platform_get_output_snd_device(