Skip to content

Commit c8933c3

Browse files
zonqueFelipe Balbi
authored and
Felipe Balbi
committed
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 <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 2672eea commit c8933c3

File tree

2 files changed

+191
-108
lines changed

2 files changed

+191
-108
lines changed

0 commit comments

Comments
 (0)