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

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

Merge "audio policy manager: fix BT SCO stream mute"

parents 29ac42b5 9698a4cc
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6251,9 +6251,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;
    }