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

Commit 5d596588 authored by Venkata Narendra Kumar Gutta's avatar Venkata Narendra Kumar Gutta Committed by Gerrit - the friendly Code Review server
Browse files

Revert "hal: Fix voice call routing issue on headset"

Sometimes rx mute is observed in voice call. Rx sound device
reference count is incrementing incorrectly causing this issue.
Reverting this commit 5c353ebc429495115361f4b53365f8bf3b1a78c8
will fix the issue.

CRs-Fixed: 892792
Change-Id: Ibbc8abf2704f487a0e5a1ca306f1972efd99d1f1
parent fd0afd9b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -663,9 +663,10 @@ 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 for the usecases that are enabled here */
            if (switch_device[usecase->id] && (usecase->type != VOICE_CALL)) {
            /* Update the out_snd_device only before enabling the audio route */
            if (switch_device[usecase->id] ) {
                usecase->out_snd_device = snd_device;
                if (usecase->type != VOICE_CALL)
                    enable_audio_route(adev, usecase);
            }
        }