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

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

Merge "audiopolicy: keep BT SCO vol at 0 dB on VoIP" into pi-dev

parents 1bba156f da7581ec
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5625,7 +5625,10 @@ status_t AudioPolicyManager::checkAndSetVolume(audio_stream_type_t stream,
    }

    float volumeDb = computeVolume(stream, index, device);
    if (outputDesc->isFixedVolume(device)) {
    if (outputDesc->isFixedVolume(device) ||
            // Force VoIP volume to max for bluetooth SCO
            ((stream == AUDIO_STREAM_VOICE_CALL || stream == AUDIO_STREAM_BLUETOOTH_SCO) &&
             (device & AUDIO_DEVICE_OUT_ALL_SCO) != 0)) {
        volumeDb = 0.0f;
    }