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

Commit 040a7e7f 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 device selection at start of the voice call"

parents e5dcb288 8a99de28
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1939,9 +1939,6 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
        if (val != 0) {
            out->devices = val;

            if (!out->standby)
                select_devices(adev, out->usecase);

            if (output_drives_call(adev, out)) {
                if(!voice_is_in_call(adev)) {
                    if (adev->mode == AUDIO_MODE_IN_CALL) {
@@ -1953,6 +1950,9 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
                    voice_update_devices_for_all_voice_usecases(adev);
                }
            }

            if (!out->standby)
                select_devices(adev, out->usecase);
        }

        pthread_mutex_unlock(&adev->lock);