]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: midi: add midi function driver
authorDaniel Mack <zonque@gmail.com>
Wed, 28 Sep 2011 14:41:32 +0000 (16:41 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:39:49 +0000 (20:39 +0300)
commite1b5dd01c38ed871e3ee256c3f4952b54a9144a9
treede8eeeda54aa36144208d4add536b94f0d121607
parent20a9af55197b13f2ce2487b2827de14e5c442254
USB: gadget: midi: add midi function driver

This patch adds f_midi.c to implement a USB gadget function that works
with the composite framework, so it can be combined with other USB
functions.

The code for the ALSA/MIDI logic was taken from the midi device gadget,
other parts have been rewritten to benefit from the dynamic descriptor
allocation features.

This was successfully tested on an OMAP3 board.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_midi.c [new file with mode: 0644]