Merge "Fix issue 3317627." into honeycomb
This commit is contained in:
@@ -1587,6 +1587,10 @@ uint32_t AudioPolicyManagerBase::getDeviceForStrategy(routing_strategy strategy,
|
||||
if (device) break;
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET;
|
||||
if (device) break;
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_AUX_DIGITAL;
|
||||
if (device) break;
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_DGTL_DOCK_HEADSET;
|
||||
if (device) break;
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET;
|
||||
if (device) break;
|
||||
#ifdef WITH_A2DP
|
||||
@@ -1605,6 +1609,10 @@ uint32_t AudioPolicyManagerBase::getDeviceForStrategy(routing_strategy strategy,
|
||||
break;
|
||||
|
||||
case AudioSystem::FORCE_SPEAKER:
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_AUX_DIGITAL;
|
||||
if (device) break;
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_DGTL_DOCK_HEADSET;
|
||||
if (device) break;
|
||||
device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET;
|
||||
if (device) break;
|
||||
#ifdef WITH_A2DP
|
||||
|
||||
Reference in New Issue
Block a user