summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-08-19 18:31:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-08-19 18:31:01 +0000
commit11cfd9f7ed0064d12a87619e8e5faf82cb93d6fd (patch)
tree98b3e7392f61feaa7fe380ebf2d0ced9d27d33e1
parentd3d16b64025f8555eb255b898fb83f0a77e8dd69 (diff)
parent8bf36989d34ec3b63efcf6e60029ca959bdcb519 (diff)
Merge "audiopolicy: Add check to route AUDIO_DEVICE_OUT_IP device" into u-keystone-qcom-dev
-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: {