summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-06-04 18:39:28 -0700
committerEric Laurent <elaurent@google.com>2015-06-08 10:27:58 -0700
commita20d4fa431d1091abf66f9d426ef0cf441db6623 (patch)
tree71404014cc365b5d4640254f3f6ff907a20ccfcc /services/audiopolicy
parentd16a8ef26fd1f7a86061c396c5865564af2f1abb (diff)
downloadframeworks_av-a20d4fa431d1091abf66f9d426ef0cf441db6623.zip
frameworks_av-a20d4fa431d1091abf66f9d426ef0cf441db6623.tar.gz
frameworks_av-a20d4fa431d1091abf66f9d426ef0cf441db6623.tar.bz2
audio policy: route media to BT SCO in call
Allow media (and Navigation instructions) to be routed to BT SCO in call. Bug: 18986190. Change-Id: I1fa4decfbf035623fdcc8681b53cbd61e1d5f933
Diffstat (limited to 'services/audiopolicy')
-rwxr-xr-xservices/audiopolicy/enginedefault/src/Engine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audiopolicy/enginedefault/src/Engine.cpp b/services/audiopolicy/enginedefault/src/Engine.cpp
index 50f1609..7a785eb 100755
--- a/services/audiopolicy/enginedefault/src/Engine.cpp
+++ b/services/audiopolicy/enginedefault/src/Engine.cpp
@@ -498,6 +498,10 @@ audio_devices_t Engine::getDeviceForStrategy(routing_strategy strategy) const
device2 = availableOutputDevices.types() & AUDIO_DEVICE_OUT_REMOTE_SUBMIX;
}
}
+ if (isInCall() && (strategy == STRATEGY_MEDIA)) {
+ device = getDeviceForStrategy(STRATEGY_PHONE);
+ break;
+ }
if ((device2 == AUDIO_DEVICE_NONE) &&
(mForceUse[AUDIO_POLICY_FORCE_FOR_MEDIA] != AUDIO_POLICY_FORCE_NO_BT_A2DP) &&
(outputs.getA2dpOutput() != 0)) {