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

Commit 1c3c35c0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix call volume upon speaker to USB transition" into sc-qpr1-dev

parents 835bee5e e8f2c0fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6548,7 +6548,7 @@ status_t AudioPolicyManager::checkAndSetVolume(IVolumeCurves &curves,
    outputDesc->setVolume(
            volumeDb, volumeSource, curves.getStreamTypes(), deviceTypes, delayMs, force);

    if (isVoiceVolSrc || isBtScoVolSrc) {
    if (outputDesc == mPrimaryOutput && (isVoiceVolSrc || isBtScoVolSrc)) {
        float voiceVolume;
        // Force voice volume to max or mute for Bluetooth SCO as other attenuations are managed by the headset
        if (isVoiceVolSrc) {