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

Commit 7c71d779 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7004988 from 75f20e19 to rvc-qpr2-release

Change-Id: I5256f28000d776afbb655be2926d2589b66fd540
parents f3dec98a 75f20e19
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;
    }