Creating my own MIDI device - need to write a driver
Hi,
As a hobby I'm trying to create my own Linux-compatible MIDI device. I have already build a prototype of this using an MSP430 Launchpad, which allows the creation of a virtual COM port.
I then created an application for Linux using the ALSA MIDI driver to read the COM port and convert the data into ALSA MIDI events.
However, I'd like to be able to create a Kernel module to be able to do this, so one could theoretially just plug this into USB and have it show up as a MIDI device in ALSA.
The module would do the same thing that the application does, read the COM port and create MIDI events - although I'm planning on using a UM232h to create the COM port, which can also be used in FIFO mode which is apparently more useful so I could use that instead.
I'm just wondering if anyone has any pointers or things to read about creating a driver that allows a USB device to show up as a MIDI device in ALSA.
Thanks!
|