Mathieu Geli wrote: > I'm trying to plug/unplug the midisport1x1 from M-Audio. The plug > works like a charm, hotplug does its job, load the firmware > (fxload) and snd-usb-audio, if not inserted, is auto-loaded. But > <hen I unplug the device, and I want to plug it again, the usb > just hang, trying to rmmoding snd-usb-audio or anything else usb > related will just hang.
There was a bug which has been fixed three days ago (after 1.0.3 came out). Either get the latest version from the CVS, or apply the patch below. HTH Clemens -- --- alsa-kernel/usb/usbmidi.c 3 Mar 2004 11:35:15 -0000 1.24 +++ alsa-kernel/usb/usbmidi.c 8 Mar 2004 09:34:05 -0000 1.25 @@ -453,8 +453,16 @@ usbmidi_out_port_t* port = (usbmidi_out_port_t*)substream->runtime->private_data; port->active = up; - if (up) + if (up) { + if (port->ep->umidi->chip->shutdown) { + /* gobble up remaining bytes to prevent wait in + * snd_rawmidi_drain_output */ + while (!snd_rawmidi_transmit_empty(substream)) + snd_rawmidi_transmit_ack(substream, 1); + return; + } tasklet_hi_schedule(&port->ep->tasklet); + } } static int snd_usbmidi_input_open(snd_rawmidi_substream_t* substream) ------------------------------------------------------- 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 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel