summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2014-01-27 17:40:54 -0600
committerMisael Lopez Cruz2014-01-30 17:05:50 -0600
commitd60549053cd4a9fa86dbc13e5f8595fa7daf8078 (patch)
tree01405aaca515b416d987558a382eb0ee3e21aae4
parent00fb8c8511b0a94dddd90b357abcc45be1b00a36 (diff)
downloaddevice-ti-common-open-d60549053cd4a9fa86dbc13e5f8595fa7daf8078.tar.gz
device-ti-common-open-d60549053cd4a9fa86dbc13e5f8595fa7daf8078.tar.xz
device-ti-common-open-d60549053cd4a9fa86dbc13e5f8595fa7daf8078.zip
audio: policy: Add support for auxiliary input
Add support for auxiliary input source which is mapped to the AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET device. This device must be supported by the AudioHAL and declared as supported and present in the audio_policy.conf. Change-Id: Id2bdc9c9d4c7b6176bf4d1f17e8418a0e31bbdad Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--audio/policy/multizone/AudioPolicyManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/policy/multizone/AudioPolicyManager.cpp b/audio/policy/multizone/AudioPolicyManager.cpp
index 2f5d036..4196171 100644
--- a/audio/policy/multizone/AudioPolicyManager.cpp
+++ b/audio/policy/multizone/AudioPolicyManager.cpp
@@ -3108,6 +3108,11 @@ audio_devices_t AudioPolicyManager::getDeviceForInputSource(int inputSource)
3108 device = AUDIO_DEVICE_IN_REMOTE_SUBMIX; 3108 device = AUDIO_DEVICE_IN_REMOTE_SUBMIX;
3109 } 3109 }
3110 break; 3110 break;
3111 case AUDIO_SOURCE_AUXILIARY_INPUT:
3112 if (mAvailableInputDevices & AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET) {
3113 device = AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET;
3114 }
3115 break;
3111 default: 3116 default:
3112 ALOGW("getDeviceForInputSource() invalid input source %d", inputSource); 3117 ALOGW("getDeviceForInputSource() invalid input source %d", inputSource);
3113 break; 3118 break;