Merge "policy_hal: update custom policy for SCO volume against AOSP"
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index 12ea2a5..bce91d5 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -1340,7 +1340,11 @@
}
float volumeDb = computeVolume(curves, volumeSource, index, deviceTypes);
- if (outputDesc->isFixedVolume(deviceTypes)) {
+ if (outputDesc->isFixedVolume(deviceTypes)||
+ // Force VoIP volume to max for bluetooth SCO
+
+ ((isVoiceVolSrc || isBtScoVolSrc) &&
+ isSingleDeviceType(deviceTypes, audio_is_bluetooth_out_sco_device))) {
volumeDb = 0.0f;
}