Pedro Lopez-Cabanillas wrote:
> El Lun 01 Jul 2002 19:24, Clemens Ladisch escribió:
> > The submit call before the unlink will toggle the D0/D1 bit in
> > dev->toggle[]. The call after the unlink will then use the toggled bit
> > although the TD of the unlinked URB hasn't been completed successfully.
> > Consequently, the next packet to be received will be lost.
> >
> > (the code may look silly, but it is the equivalent of executing
> >  insmod; ... rmmod; insmod)
> 
> As I know that you have checked out Daisuke Nagano's usb-midi driver... 
> Perhaps is this the reason of the strange losing of the first midi event after 
> closing and then reopening the /dev/midi device with that driver?

Yes.

As a workaround, closing and reopening twice will toggle the bit again
to its correct value.

> And if true, how your new ALSA usb-midi driver will be affected ?

The first packet is lost with all drivers: usb-midi, ALSA snd-usb-midi,
and my old ALSA daemon using usbdevfs.


Clemens



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to