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

Commit 6b876454 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "Set volume for playback over voice call when btsco connected"

parents 04f11bab f660a51e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7354,7 +7354,8 @@ status_t AudioPolicyManager::checkAndSetVolume(IVolumeCurves &curves,
    // if sco and call follow same curves, bypass forceUseForComm
    if ((callVolSrc != btScoVolSrc) &&
            ((isVoiceVolSrc && isScoRequested) ||
             (isBtScoVolSrc && !(isScoRequested || isHAUsed)))) {
             (isBtScoVolSrc && !(isScoRequested || isHAUsed))) &&
            !isSingleDeviceType(deviceTypes, AUDIO_DEVICE_OUT_TELEPHONY_TX)) {
        ALOGV("%s cannot set volume group %d volume when is%srequested for comm", __func__,
             volumeSource, isScoRequested ? " " : " not ");
        // Do not return an error here as AudioService will always set both voice call