am fe43d163: audio policy: fix volume problem - DO NOT MERGE

* commit 'fe43d163d6646a175934f0752fa05e3e53e89da4':
  audio policy: fix volume problem - DO NOT MERGE
This commit is contained in:
Eric Laurent 2012-11-08 14:35:56 -08:00 committed by Android Git Automerger
commit 8d8ad2ec94

View file

@ -169,9 +169,12 @@ status_t AudioPolicyManagerBase::setDeviceConnectionState(audio_devices_t device
updateDevicesAndOutputs();
for (size_t i = 0; i < mOutputs.size(); i++) {
// do not force device change on duplicated output because if device is 0, it will
// also force a device 0 for the two outputs it is duplicated to which may override
// a valid device selection on those outputs.
setOutputDevice(mOutputs.keyAt(i),
getNewDevice(mOutputs.keyAt(i), true /*fromCache*/),
true,
!mOutputs.valueAt(i)->isDuplicated(),
0);
}