Merge "audio: add the headset tx" into jb-mr1-dev
This commit is contained in:
commit
30f8dc20ad
|
@ -1409,10 +1409,11 @@ char *getUCMDevice(uint32_t devices, int input, char *rxDevice)
|
||||||
} else if (devices & AudioSystem::DEVICE_IN_AUX_DIGITAL) {
|
} else if (devices & AudioSystem::DEVICE_IN_AUX_DIGITAL) {
|
||||||
return strdup(SND_USE_CASE_DEV_HDMI_TX); /* HDMI TX */
|
return strdup(SND_USE_CASE_DEV_HDMI_TX); /* HDMI TX */
|
||||||
#ifdef QCOM_ANC_HEADSET_ENABLED
|
#ifdef QCOM_ANC_HEADSET_ENABLED
|
||||||
} else if ((devices & AudioSystem::DEVICE_IN_WIRED_HEADSET) ||
|
} else if (devices & AudioSystem::DEVICE_IN_ANC_HEADSET) {
|
||||||
(devices & AudioSystem::DEVICE_IN_ANC_HEADSET)) {
|
|
||||||
return strdup(SND_USE_CASE_DEV_HEADSET); /* HEADSET TX */
|
return strdup(SND_USE_CASE_DEV_HEADSET); /* HEADSET TX */
|
||||||
#endif
|
#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) {
|
} else if (devices & AudioSystem::DEVICE_IN_BLUETOOTH_SCO_HEADSET) {
|
||||||
if (btsco_samplerate == BTSCO_RATE_16KHZ)
|
if (btsco_samplerate == BTSCO_RATE_16KHZ)
|
||||||
return strdup(SND_USE_CASE_DEV_BTSCO_WB_TX); /* BTSCO TX*/
|
return strdup(SND_USE_CASE_DEV_BTSCO_WB_TX); /* BTSCO TX*/
|
||||||
|
|
Loading…
Reference in New Issue