audio policy: remove log spam for voice and sco volumes
Do not return an error in checkAndSetVolume() when SCO volume is modified
while SCO is not active as AudioService will always set both voice call
and SCO volumes at the same time regardless of SCO activity.
Test: Use call screening to check downlink mute.
Change-Id: I7501b28266ec4d591378d7bc4453bb5840e03af1
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
index 7492cd8..76a061e 100644
--- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
+++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -6157,7 +6157,9 @@
(isBtScoVolSrc && forceUseForComm != AUDIO_POLICY_FORCE_BT_SCO))) {
ALOGV("%s cannot set volume group %d volume with force use = %d for comm", __func__,
volumeSource, forceUseForComm);
- return INVALID_OPERATION;
+ // Do not return an error here as AudioService will always set both voice call
+ // and bluetooth SCO volumes due to stream aliasing.
+ return NO_ERROR;
}
if (deviceTypes.empty()) {
deviceTypes = outputDesc->devices().types();