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

Commit 18fba840 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: fix in call volume over USB

Do not consider only primary output for voice volume control as
sometimes the output device selected for a call can be connected to
another output stream (e.g USB)

Bug: 27108587
Change-Id: I8ec3db272f87d49f57044a771019672050f63d32
parent 029aaa68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4936,7 +4936,7 @@ status_t AudioPolicyManager::checkAndSetVolume(audio_stream_type_t stream,
            voiceVolume = 1.0;
        }

        if (voiceVolume != mLastVoiceVolume && outputDesc == mPrimaryOutput) {
        if (voiceVolume != mLastVoiceVolume) {
            mpClientInterface->setVoiceVolume(voiceVolume, delayMs);
            mLastVoiceVolume = voiceVolume;
        }