Merge "hal: Update TX capabilities when adding USB output device as well."

This commit is contained in:
Linux Build Service Account 2019-03-14 10:04:55 -07:00 committed by Gerrit - the friendly Code Review server
commit 58fb562f33
1 changed files with 2 additions and 0 deletions

View File

@ -1168,6 +1168,8 @@ void usb_add_device(audio_devices_t device, int card)
usb_card_info->usb_card = card; usb_card_info->usb_card = card;
usb_card_info->usb_device_type = device; usb_card_info->usb_device_type = device;
usb_get_sidetone_mixer(usb_card_info); usb_get_sidetone_mixer(usb_card_info);
if (!usb_get_device_cap_config(usb_card_info, card))
usbmod->is_capture_supported = true;
list_add_tail(&usbmod->usb_card_conf_list, &usb_card_info->list); list_add_tail(&usbmod->usb_card_conf_list, &usb_card_info->list);
goto exit; goto exit;
} }