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

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

Merge "audio policy manager: fix BT SCO stream mute" into rvc-qpr-dev

parents 763b935e 3ea637c7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6147,9 +6147,8 @@ status_t AudioPolicyManager::checkAndSetVolume(IVolumeCurves &curves,

    float volumeDb = computeVolume(curves, volumeSource, index, deviceTypes);
    if (outputDesc->isFixedVolume(deviceTypes) ||
            // Force VoIP volume to max for bluetooth SCO

            ((isVoiceVolSrc || isBtScoVolSrc) &&
            // Force VoIP volume to max for bluetooth SCO device except if muted
            (index != 0 && (isVoiceVolSrc || isBtScoVolSrc) &&
                    isSingleDeviceType(deviceTypes, audio_is_bluetooth_out_sco_device))) {
        volumeDb = 0.0f;
    }