Message ID | s5h1tphvq3y.wl-tiwai@suse.de (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Takashi Iwai |
Headers | show |
diff --git a/sound/usb/card.c b/sound/usb/card.c index 69725d5fa2d6..475961afc886 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c @@ -595,13 +595,13 @@ static void usb_audio_disconnect(struct usb_interface *intf) up_write(&chip->shutdown_rwsem); mutex_lock(®ister_mutex); + snd_card_disconnect(card); chip->num_interfaces--; if (chip->num_interfaces <= 0) { struct snd_usb_stream *as; struct snd_usb_endpoint *ep; struct usb_mixer_interface *mixer; - snd_card_disconnect(card); /* release the pcm resources */ list_for_each_entry(as, &chip->pcm_list, list) { snd_usb_stream_disconnect(as);