diff options
author | Eric Laurent <elaurent@google.com> | 2014-12-16 21:42:13 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-16 21:42:13 +0000 |
commit | 70043ec5e8c79803972686577a9d36431019c15f (patch) | |
tree | c1b01b3ee1c652704f659ff6c0825d400a778346 /services/audiopolicy | |
parent | 7f1295f5cf27127601ea15c31b6c144ff28d2a8b (diff) | |
parent | 679a14393639c70a653fe2a07f8de582d3a5de14 (diff) | |
download | frameworks_av-70043ec5e8c79803972686577a9d36431019c15f.zip frameworks_av-70043ec5e8c79803972686577a9d36431019c15f.tar.gz frameworks_av-70043ec5e8c79803972686577a9d36431019c15f.tar.bz2 |
am 679a1439: am be845fce: Merge "audiopolicy : Fix for incorrect input device selection" into lmp-mr1-dev
* commit '679a14393639c70a653fe2a07f8de582d3a5de14':
audiopolicy : Fix for incorrect input device selection
Diffstat (limited to 'services/audiopolicy')
-rw-r--r-- | services/audiopolicy/AudioPolicyManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.cpp b/services/audiopolicy/AudioPolicyManager.cpp index d2b0bcb..488d1f3 100644 --- a/services/audiopolicy/AudioPolicyManager.cpp +++ b/services/audiopolicy/AudioPolicyManager.cpp @@ -5127,6 +5127,9 @@ audio_devices_t AudioPolicyManager::getDeviceForInputSource(audio_source_t input case AUDIO_SOURCE_MIC: if (availableDeviceTypes & AUDIO_DEVICE_IN_BLUETOOTH_A2DP) { device = AUDIO_DEVICE_IN_BLUETOOTH_A2DP; + } else if ((mForceUse[AUDIO_POLICY_FORCE_FOR_RECORD] == AUDIO_POLICY_FORCE_BT_SCO) && + (availableDeviceTypes & AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET)) { + device = AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET; } else if (availableDeviceTypes & AUDIO_DEVICE_IN_WIRED_HEADSET) { device = AUDIO_DEVICE_IN_WIRED_HEADSET; } else if (availableDeviceTypes & AUDIO_DEVICE_IN_USB_DEVICE) { |