audio policy: active analog dock force usage
Qualify the selection of the analog dock for media by the force use. Bug 7302106. Change-Id: I2ea48fd43866ce8491085bba72a27751b2203401
This commit is contained in:
parent
06eda4e2d5
commit
5a484b753c
1 changed files with 2 additions and 1 deletions
|
@ -2240,7 +2240,8 @@ audio_devices_t AudioPolicyManagerBase::getDeviceForStrategy(routing_strategy st
|
|||
// no sonification on aux digital (e.g. HDMI)
|
||||
device2 = mAvailableOutputDevices & AUDIO_DEVICE_OUT_AUX_DIGITAL;
|
||||
}
|
||||
if (device2 == AUDIO_DEVICE_NONE) {
|
||||
if ((device2 == AUDIO_DEVICE_NONE) &&
|
||||
(mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_ANALOG_DOCK)) {
|
||||
device2 = mAvailableOutputDevices & AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET;
|
||||
}
|
||||
if (device2 == AUDIO_DEVICE_NONE) {
|
||||
|
|
Loading…
Reference in a new issue