MIDI Gadget

modulename: g_midi.ko

configname: CONFIG_USB_MIDI_GADGET

Linux Kernel Configuration
└─>Device Drivers
└─>USB support
└─>USB Gadget Support
└─>USB Gadget precomposed configurations
└─>Advanced Linux Sound Architecture
└─>MIDI Gadget
In linux kernel since version 2.6.20 (release Date: 2007-02-04)  
The MIDI Gadget acts as a USB Audio device, with one MIDI
input and one MIDI output. These MIDI jacks appear as
a sound "card" in the ALSA sound system. Other MIDI
connections can then be made on the gadget system, using
ALSA's aconnect utility etc.

Say "y" to link the driver statically, or "m" to build a
dynamically linked module called "g_midi".

source code: