From: Daniel Mack Date: Wed, 28 Sep 2011 14:41:34 +0000 (+0200) Subject: USB: gadget: f_midi: allow a dynamic number of input and output ports X-Git-Tag: v3.2-rc1~183^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8933c3f79568263c90a46f06cf80419e6c63c97;p=pandora-kernel.git 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 Cc: Greg Kroah-Hartman Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed