]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: f_midi: allow a dynamic number of input and output ports
authorDaniel Mack <zonque@gmail.com>
Wed, 28 Sep 2011 14:41:34 +0000 (16:41 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:39:52 +0000 (20:39 +0300)
commit8865e6a62d73d2a3fa6517aa3db3ce5251df6f67
treef2e47dc624e9f5aa5e8e6a5b9907dc157dd0e7bb
parent69653bca666c589751db2d08beb3acbeacd9546c
USB: gadget: f_midi: allow a dynamic number of input and output ports

The code in the MIDI gadget was already sort of prepared for multi-port
configuration, so the streaming logic itself didn't need much tweaking.
However, the descriptors change when the number of ports do, and so some
rework of the the preparation algorithms were necessary.

Successfully tested on Linux and Max OS X hosts for both input and
output streams.

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
drivers/usb/gadget/gmidi.c