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

Commit f660a51e authored by Beibei's avatar Beibei Committed by Tomoharu Kasahara
Browse files

Set volume for playback over voice call when btsco connected

When playback over voice call was played with BT headset,
the stream volume is not set correctly so it is played with volume muted.

Bug: 256024912
Change-Id: Ie464e8208df6279a19b85fc1b2000054f8e80c03
parent 8309e419
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7341,7 +7341,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