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

Commit f8194ffb authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audio policy: fix call volume over USB am: 5f5fca54 am: 8c3c46b7

am: 9d838d70

Change-Id: I205db77eafdccc69c345e048a87e093c2af4f220
parents d8f72540 9d838d70
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -284,6 +284,9 @@ status_t AudioPolicyManager::setDeviceConnectionStateInt(audio_devices_t device,
        }

        closeAllInputs();
        // As the input device list can impact the output device selection, update
        // getDeviceForStrategy() cache
        updateDevicesAndOutputs();

        if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) {
            audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/);