summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-12-16 21:36:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-16 21:36:32 +0000
commit9632d33e21ec2631c75cc949e0c92c351fd6a447 (patch)
treebbfebd1725b93f6dfe90bf23b64ae17be6f0776f /services/audiopolicy
parent7ebc167072be27f42b7c58bd7f9378c8311533ab (diff)
parentcd71a69d922eab2929faf8f5652fcd1b9a29cbe8 (diff)
downloadframeworks_av-9632d33e21ec2631c75cc949e0c92c351fd6a447.zip
frameworks_av-9632d33e21ec2631c75cc949e0c92c351fd6a447.tar.gz
frameworks_av-9632d33e21ec2631c75cc949e0c92c351fd6a447.tar.bz2
am cd71a69d: audio: Force audio to Speaker if requested during VOIP call
* commit 'cd71a69d922eab2929faf8f5652fcd1b9a29cbe8': audio: Force audio to Speaker if requested during VOIP call
Diffstat (limited to 'services/audiopolicy')
-rw-r--r--services/audiopolicy/AudioPolicyManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.cpp b/services/audiopolicy/AudioPolicyManager.cpp
index 744556d..d2b0bcb 100644
--- a/services/audiopolicy/AudioPolicyManager.cpp
+++ b/services/audiopolicy/AudioPolicyManager.cpp
@@ -4566,7 +4566,7 @@ audio_devices_t AudioPolicyManager::getDeviceForStrategy(routing_strategy strate
device = availableOutputDeviceTypes & AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER;
if (device) break;
}
- if (mPhoneState != AUDIO_MODE_IN_CALL) {
+ if (!isInCall()) {
device = availableOutputDeviceTypes & AUDIO_DEVICE_OUT_USB_ACCESSORY;
if (device) break;
device = availableOutputDeviceTypes & AUDIO_DEVICE_OUT_USB_DEVICE;