Merge "audio policy: mute call RX when SCO volume is 0" into qt-dev

am: a426cf1c3d

Change-Id: Ia9cbcc56aef9bad2cbccfda4c649c8a39492c13f
gugelfrei
Eric Laurent 5 years ago committed by android-build-merger
commit 0fdb6247dc

@ -5855,11 +5855,11 @@ status_t AudioPolicyManager::checkAndSetVolume(IVolumeCurves &curves,
if (isVoiceVolSrc || isBtScoVolSrc) {
float voiceVolume;
// Force voice volume to max for bluetooth SCO as volume is managed by the headset
// Force voice volume to max or mute for Bluetooth SCO as other attenuations are managed by the headset
if (isVoiceVolSrc) {
voiceVolume = (float)index/(float)curves.getVolumeIndexMax();
} else {
voiceVolume = 1.0;
voiceVolume = index == 0 ? 0.0 : 1.0;
}
if (voiceVolume != mLastVoiceVolume) {
mpClientInterface->setVoiceVolume(voiceVolume, delayMs);

Loading…
Cancel
Save