summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-08-19 22:14:04 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-08-19 22:14:04 +0000
commit9fe6899662ba6534e488333c5b16f6c52f24af8c (patch)
tree98b3e7392f61feaa7fe380ebf2d0ced9d27d33e1
parentb2d90b42038c54c6b0c0cbe2932024d122599464 (diff)
parent11cfd9f7ed0064d12a87619e8e5faf82cb93d6fd (diff)
Snap for 12247185 from 11cfd9f7ed0064d12a87619e8e5faf82cb93d6fd to u-keystone-qcom-release
Change-Id: I0af947f1dd1ee25e4a47e7f91574d516c4a63b62
-rw-r--r--services/audiopolicy/enginedefault/src/Engine.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/audiopolicy/enginedefault/src/Engine.cpp b/services/audiopolicy/enginedefault/src/Engine.cpp
index 4a8d381b8c..c5316600b0 100644
--- a/services/audiopolicy/enginedefault/src/Engine.cpp
+++ b/services/audiopolicy/enginedefault/src/Engine.cpp
@@ -278,7 +278,12 @@ DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy,
switch (strategy) {
case STRATEGY_TRANSMITTED_THROUGH_SPEAKER:
- devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER);
+ if (property_get_bool("vendor.audio.enable.wfdfilteredaudio", false)) {
+ devices = availableOutputDevices.getFirstDevicesFromTypes({AUDIO_DEVICE_OUT_IP,
+ AUDIO_DEVICE_OUT_SPEAKER});
+ } else {
+ devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER);
+ }
break;
case STRATEGY_PHONE: {