Skip to content

Commit

Permalink
USB: gadget: f_midi: allow a dynamic number of input and output ports
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Mack authored and Felipe Balbi committed Oct 13, 2011
1 parent 2672eea commit c8933c3
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 108 deletions.
Loading

0 comments on commit c8933c3

Please sign in to comment.