audiopolicy: Disable sonification on WFD sink
* Aligned with CAF as of QSSI12, and removed unnecessary devices.isEmpty() check. Original patch: https://source.codeaurora.org/quic/la/platform/frameworks/av/commit/services/audiopolicy?h=LA.BR64.1.1.1-01010-8x16.0&id=9cc970fc512bedfa6a2cf03457d93609adc6eb85 Change-Id: I9bad6a294ddd7aee72f6f6a314666b892b730c8e
This commit is contained in:
parent
c5c8a4a993
commit
22008c51e8
1 changed files with 5 additions and 0 deletions
|
@ -481,6 +481,11 @@ DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy,
|
|||
AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET);
|
||||
}
|
||||
|
||||
if ((devices2.isEmpty()) && (strategy != STRATEGY_SONIFICATION)) {
|
||||
// no sonification on WFD sink
|
||||
devices2 = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_PROXY);
|
||||
}
|
||||
|
||||
if (devices2.isEmpty()) {
|
||||
devices2 = availableOutputDevices.getFirstDevicesFromTypes({
|
||||
AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET, AUDIO_DEVICE_OUT_SPEAKER});
|
||||
|
|
Loading…
Reference in a new issue