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

Commit ff9407d5 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audiopolicy: clean delayMs to 0 before reevaluate all outputs routing...

Merge "audiopolicy: clean delayMs to 0 before reevaluate all outputs routing when call state changes" into pi-dev
parents b1f8c80d f60c824b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -596,7 +596,7 @@ void AudioPolicyManager::setPhoneState(audio_mode_t state)
        sp<SwAudioOutputDescriptor> desc = mOutputs.valueAt(i);
        audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/);
        if (state != AUDIO_MODE_IN_CALL || desc != mPrimaryOutput) {
            setOutputDevice(desc, newDevice, (newDevice != AUDIO_DEVICE_NONE), delayMs);
            setOutputDevice(desc, newDevice, (newDevice != AUDIO_DEVICE_NONE), 0 /*delayMs*/);
        }
    }