audio policy: fix call volume

Fix setGroupVolumeIndex() which was applying
volume for all groups if in call and causing the wrong
index to be used.
when DTMF are muted when entering call, voice call was
also muted.

Bug: 128499415
Test: call with voice volume set to 6
Change-Id: Ie1296a7a48fdfba3710acb3d7a7e4f00e7b576a5
gugelfrei
Eric Laurent 5 years ago
parent 2ec208c3c0
commit f97d64cd3a

@ -2503,7 +2503,7 @@ status_t AudioPolicyManager::setVolumeGroupIndex(IVolumeCurves &curves, volume_g
}
for (auto curVolGroup : getVolumeGroups()) {
VolumeSource curVolSrc = toVolumeSource(curVolGroup);
if (!(curVolSrc == vs || isInCall())) {
if (curVolSrc != vs) {
continue;
}
if (!(desc->isActive(vs) || isInCall())) {

Loading…
Cancel
Save