Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aae27d84 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

audio: usb: Invalid direction specific state on device disconnect am: 98d8c15b

am: cf03d7fe

Change-Id: I7e363bbf7ab17a182d3ed3a880d1dae41255f2cd
parents 57779299 cf03d7fe
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1088,9 +1088,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();