1. 19 10月, 2011 2 次提交
  2. 14 10月, 2011 3 次提交
    • D
      USB: gadget: f_midi: allow a dynamic number of input and output ports · c8933c3f
      Daniel Mack 提交于
      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: NDaniel Mack <zonque@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c8933c3f
    • D
      USB: gadget: midi: refactor the device code · 2672eea5
      Daniel Mack 提交于
      Make use of the newly added MIDI function in f_midi.c and strip down
      the MIDI gadget code radically. Also use the generic framework function
      to avoid code duplication and rename some symbols to bring them in sync
      with other code in the gadget framework.
      
      [ balbi@ti.com : fix Section mismatch warnings.
      	rebased on top of usb_speed_string() patch to
      	avoid conflicts. ]
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      2672eea5
    • D
      USB: gadget: midi: add midi function driver · d5daf49b
      Daniel Mack 提交于
      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: NDaniel Mack <zonque@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d5daf49b