OSDN Git Service

audio policy: fix volume problem - DO NOT MERGE
authorEric Laurent <elaurent@google.com>
Tue, 30 Oct 2012 23:14:04 +0000 (16:14 -0700)
committerEric Laurent <elaurent@google.com>
Thu, 8 Nov 2012 16:56:57 +0000 (08:56 -0800)
commitfe43d163d6646a175934f0752fa05e3e53e89da4
treee990910bab7f33771dee37548260e68c072f8611
parentda06cb6142faa3e09cbf7226ca9c75e45661095b
audio policy: fix volume problem - DO NOT MERGE

merge from master:

"audio policy: fix volume change when disabling SCO

commit 76e97d39 introduced a regression by having setDeviceConnectionState()
force a device change on duplicated outputs even if the selected device is 0.
This also forces a device 0 for the two outputs it is duplicated to,
which may override a valid device selection on those outputs and apply
default volumes.

Bug 7429869."

Change-Id: I37dd66343c54eb27e420089edbda04444fa1e2c6
audio/AudioPolicyManagerBase.cpp