diff options
author | Mingshu pang <mpang@codeaurora.org> | 2019-04-15 15:01:42 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-19 01:10:44 -0700 |
commit | d6f23b6af91c559df0453cfde2e33a4ecfe204b2 (patch) | |
tree | a2e540fb2715242c3a532add95be04520e766fae /hal | |
parent | 73f5d966cc65c4523324c7cd25b06b6e7af938cc (diff) | |
download | hardware_qcom_audio-d6f23b6af91c559df0453cfde2e33a4ecfe204b2.tar.gz hardware_qcom_audio-d6f23b6af91c559df0453cfde2e33a4ecfe204b2.tar.bz2 hardware_qcom_audio-d6f23b6af91c559df0453cfde2e33a4ecfe204b2.zip |
Revert "hal: fix no sound issue when using some USB headset."
This reverts "commit 8ffbcf8db48209938eb8a97fd2a4eeaf0d6bd89d".
This reverts "commit 2a5075eb47f4841941f3e104d8a5a0295a6b22c8".
CRs-Fixed: 2433092
Change-Id: I5dbcc4792ea540c721f1226747772c41c995a55b
Diffstat (limited to 'hal')
-rw-r--r-- | hal/audio_extn/usb.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hal/audio_extn/usb.c b/hal/audio_extn/usb.c index a807f031..16b3e104 100644 --- a/hal/audio_extn/usb.c +++ b/hal/audio_extn/usb.c @@ -1137,14 +1137,6 @@ void audio_extn_usb_add_device(audio_devices_t device, int card) usb_card_info->usb_card = card; usb_card_info->usb_device_type = device; usb_get_sidetone_mixer(usb_card_info); - struct usb_card_config *usb_card_info_temp = NULL; - usb_card_info_temp = calloc(1, sizeof(struct usb_card_config)); - if (usb_card_info_temp != NULL) { - list_init(&usb_card_info_temp->usb_device_conf_list); - if (!usb_get_capability(USB_CAPTURE, usb_card_info_temp, card)) - usbmod->is_capture_supported = true; - free(usb_card_info_temp); - } list_add_tail(&usbmod->usb_card_conf_list, &usb_card_info->list); goto exit; } |