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

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

Merge "hal: Add performance lock during device switch"

parents 7157d285 2db15e00
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2006,8 +2006,13 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
        if (val != 0) {
            out->devices = val;

            if (!out->standby)
            if (!out->standby) {
                audio_extn_perf_lock_acquire(&adev->perf_lock_handle, 0,
                                             adev->perf_lock_opts,
                                             adev->perf_lock_opts_size);
                select_devices(adev, out->usecase);
                audio_extn_perf_lock_release(&adev->perf_lock_handle);
            }

            if (output_drives_call(adev, out)) {
                if(!voice_is_in_call(adev)) {