[alsa-devel] How to add a new MIDI device to the usbaudio driver

Daniel Mack zonque at gmail.com
Wed Aug 24 15:18:20 CEST 2011

On Wed, Aug 24, 2011 at 3:14 PM, Kristian Amlie <kristian at amlie.name> wrote:
> On 08/24/11 12:29, Daniel Mack wrote:
>> Ok - can you play around with these commands and add them to the MIDI
>> driver? The stubs are all there now, and  I think all that's missing
>> is the termios call and maybe write_latency_timer(). I could prepare
>> another patch, but I think it's faster if you just try around which
>> command sequence helps :)
> I have tried to replicate the control messages to the best of my
> ability, but I'm still getting no MIDI events. The actual values in the
> stream may still be wrong (as per Clemens' email), so is there anywhere
> I can hook into to see if I get any USB activity *at all*?

Yes, you can check for received usb packets in  snd_usbmidi_in_urb_complete().

More information about the Alsa-devel mailing list