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

Commit 48960384 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 voice call routing issue on headset"

parents b0f69540 7a23789f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -658,10 +658,9 @@ static void check_usecases_codec_backend(struct audio_device *adev,
           specified usecase to new snd devices */
        list_for_each(node, &adev->usecase_list) {
            usecase = node_to_item(node, struct audio_usecase, list);
            /* Update the out_snd_device only before enabling the audio route */
            if (switch_device[usecase->id] ) {
            /* Update the out_snd_device only for the usecases that are enabled here */
            if (switch_device[usecase->id] && (usecase->type != VOICE_CALL)) {
                    usecase->out_snd_device = snd_device;
                if (usecase->type != VOICE_CALL)
                    enable_audio_route(adev, usecase);
            }
        }