Re: [linux-audio-dev] USB-MIDI Transfer rate

From: Jens M Andreasen <jens.andreasen@email-addr-hidden>
Date: Thu Sep 22 2005 - 08:28:07 EEST

On Fri, 2005-09-16 at 17:10 +0200, Clemens Ladisch wrote:

>
>
> It would be interesting to know what the maximum data rate is.
>

Well, as said elsewhere; (in this case) it is 16 times higher than you
(by default) allow for in usbmidi.c

While trying to catch up, I noticed that there is a "FIXME" in

---------------------
   static void snd_usbmidi_standard_output
                      (snd_usb_midi_out_endpoint_t* ep)
    ...

   // FIXME: lower-numbered ports can starve higher-numbered ports
------------------------

Uhmm ... I have been meditating on this function all evening. There are
implications surrounding it.

You have decided to go for the worst case scenario where an USB
4byte-frame == a 3byte-midi-msg == 1 milisecond. The obvious anvantage
is that this will not break.

Although, for a physical cable there are best case scenarioes where you
can get 3 messages across/milisecond (ie: channel aftertouch)

I also noticed that the driver envestigates quite a few vendor/product
IDs to get around various "quirks". This route might be a way to go?

mvh // Jens M Andreasen

>
> Regards,
> Clemens
>

-- 
Received on Thu Sep 22 12:15:04 2005

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 12:15:05 EEST