Loading hal/audio_extn/usb.c +7 −3 Original line number Diff line number Diff line Loading @@ -1087,9 +1087,13 @@ void audio_extn_usb_remove_device(audio_devices_t device, int card) free(node_to_item(node_i, struct usb_card_config, list)); } } if (audio_is_usb_in_device(device)) { // XXX not sure if we need to check for card usbmod->is_capture_supported = false; supported_sample_rates_mask[USB_PLAYBACK] = 0; supported_sample_rates_mask[USB_CAPTURE] = 0; } else { supported_sample_rates_mask[USB_PLAYBACK] = 0; } exit: if (usb_audio_debug_enable) usb_print_active_device(); Loading Loading
hal/audio_extn/usb.c +7 −3 Original line number Diff line number Diff line Loading @@ -1087,9 +1087,13 @@ void audio_extn_usb_remove_device(audio_devices_t device, int card) free(node_to_item(node_i, struct usb_card_config, list)); } } if (audio_is_usb_in_device(device)) { // XXX not sure if we need to check for card usbmod->is_capture_supported = false; supported_sample_rates_mask[USB_PLAYBACK] = 0; supported_sample_rates_mask[USB_CAPTURE] = 0; } else { supported_sample_rates_mask[USB_PLAYBACK] = 0; } exit: if (usb_audio_debug_enable) usb_print_active_device(); Loading