audio: add the headset tx

Change-Id: If15ef8362dd2800c41fb945b96488844db29e5db
This commit is contained in:
ehgrace.kim 2012-08-12 20:40:32 -07:00 committed by The Android Automerger
parent a6ec2c4e60
commit 15defbaaf7
1 changed files with 3 additions and 2 deletions

View File

@ -1409,10 +1409,11 @@ char *getUCMDevice(uint32_t devices, int input, char *rxDevice)
} else if (devices & AudioSystem::DEVICE_IN_AUX_DIGITAL) {
return strdup(SND_USE_CASE_DEV_HDMI_TX); /* HDMI TX */
#ifdef QCOM_ANC_HEADSET_ENABLED
} else if ((devices & AudioSystem::DEVICE_IN_WIRED_HEADSET) ||
(devices & AudioSystem::DEVICE_IN_ANC_HEADSET)) {
} else if (devices & AudioSystem::DEVICE_IN_ANC_HEADSET) {
return strdup(SND_USE_CASE_DEV_HEADSET); /* HEADSET TX */
#endif
} else if (devices & AudioSystem::DEVICE_IN_WIRED_HEADSET) {
return strdup(SND_USE_CASE_DEV_HEADSET); /* HEADSET TX */
} else if (devices & AudioSystem::DEVICE_IN_BLUETOOTH_SCO_HEADSET) {
if (btsco_samplerate == BTSCO_RATE_16KHZ)
return strdup(SND_USE_CASE_DEV_BTSCO_WB_TX); /* BTSCO TX*/