From: Hartmut Geissbauer <nwgbh@swissonline.ch>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: Mathieu Geli <geli@enseirb.fr>, Takashi Iwai <tiwai@suse.de>,
alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: snd-usb-audio and midisport1x1 little hack fixes hotplug pb
Date: Tue, 16 Mar 2004 18:51:14 +0100 [thread overview]
Message-ID: <1079459473.2579.7.camel@chief.local> (raw)
In-Reply-To: <Pine.HPX.4.33n.0403161750550.9632-100000@studcom.urz.uni-halle.de>
Clemens Ladisch wrote:
> Apparently, snd_usb_audio_disconnect hangs before returning. Please
> try to insert printk's in snd_usbmidi_disconnect as Takashi suggestes.
>
I removed the quick hack from Mathieu and inserted snd_printk's in snd_usbmidi_disconnect.
The new function:
void snd_usbmidi_disconnect(struct list_head* p, struct usb_driver *driver)
{
snd_usb_midi_t* umidi;
int i;
umidi = list_entry(p, snd_usb_midi_t, list);
snd_printk(KERN_INFO "after list_entry\n");
// usb_driver_release_interface(driver, umidi->iface);
for (i = 0; i < MIDI_MAX_ENDPOINTS; ++i) {
snd_printk(KERN_INFO "in for with i=%d\n",i);
snd_usb_midi_endpoint_t* ep = &umidi->endpoints[i];
if (ep->out && ep->out->urb)
usb_unlink_urb(ep->out->urb);
snd_printk(KERN_INFO "usb_unlink_urb out\n");
if (ep->in && ep->in->urb)
usb_unlink_urb(ep->in->urb);
snd_printk(KERN_INFO "usb_unlink_urb in\n");
}
usb_driver_release_interface(driver, umidi->iface);
snd_printk(KERN_INFO "after usb_driver_release_interface\n");
}
The output from dmesg I got:
ohci_hcd 0000:00:02.0: urb e2e2b4c0 path 2.4 ep1in 5e160000 cc 5 --> status -110
hub 1-2:1.0: port 4, status 100, change 1, 12 Mb/s
usb 1-2.4: USB disconnect, address 5
usb 1-2.4: usb_disable_device nuking all URBs
usb 1-2.4: unregistering interface 1-2.4:1.0
ALSA sound/usb/usbaudio.c:2924: snd_usb_audio_disconnect called, refcount = 1
ALSA sound/usb/usbmidi.c:710: after list_entry
ALSA sound/usb/usbmidi.c:714: in for with i=0
usb 1-2.4: hcd_unlink_urb e2e2b640 fail -22
ALSA sound/usb/usbmidi.c:719: usb_unlink_urb out
usb 1-2.4: hcd_unlink_urb e2e2b4c0 fail -22
ALSA sound/usb/usbmidi.c:723: usb_unlink_urb in
ALSA sound/usb/usbmidi.c:714: in for with i=1
usb 1-2.4: hcd_unlink_urb e2e2b3c0 fail -22
ALSA sound/usb/usbmidi.c:719: usb_unlink_urb out
ALSA sound/usb/usbmidi.c:723: usb_unlink_urb in
ALSA sound/usb/usbaudio.c:2924: snd_usb_audio_disconnect called, refcount = 0
Remember this is the output for a 4x4. (If this matters)
Kindly regards, Hartmut
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
next prev parent reply other threads:[~2004-03-16 17:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-11 14:16 snd-usb-audio hang when rmmoding after unplugging midisport1x1 Mathieu Geli
2004-03-11 15:46 ` Clemens Ladisch
2004-03-11 19:46 ` Mathieu Geli
2004-03-11 20:31 ` Mathieu Geli
2004-03-12 0:17 ` Hartmut Geissbauer
2004-03-12 12:17 ` Clemens Ladisch
2004-03-13 3:32 ` snd-usb-audio and midisport1x1 little hack fixes hotplug pb Mathieu Geli
2004-03-15 18:43 ` Hartmut Geissbauer
2004-03-16 15:59 ` Takashi Iwai
2004-03-16 17:03 ` Clemens Ladisch
2004-03-16 17:51 ` Hartmut Geissbauer [this message]
2004-03-17 8:03 ` Clemens Ladisch
2004-03-23 18:24 ` [fixed] " Hartmut Geissbauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1079459473.2579.7.camel@chief.local \
--to=nwgbh@swissonline.ch \
--cc=alsa-devel@lists.sourceforge.net \
--cc=clemens@ladisch.de \
--cc=geli@enseirb.fr \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.