[haiku-bugs] Re: [Haiku] #4463: Add multi-ports support to USB MIDI driver

  • From: "Pete" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Feb 2011 06:50:06 -0000

#4463: Add multi-ports support to USB MIDI driver
--------------------------+-----------------------------
  Reporter:  Pete         |        Owner:  nobody
      Type:  enhancement  |       Status:  assigned
  Priority:  normal       |    Milestone:  R1
 Component:  Drivers/USB  |      Version:  R1/pre-alpha1
Resolution:               |     Keywords:
Blocked By:               |  Has a Patch:  1
  Platform:  All          |     Blocking:
--------------------------+-----------------------------

Comment (by Pete):

 Replying to [comment:15 Pete]:
 > However, the title of this ticket is still not addressed, because I can
 still only process MIDI on the first of the two ports on the 2x2.  I can't
 find any sign of the second port, either reported by debug printouts on
 the driver or from listusb!

 Well it didn't take long to find out how multi-ports ''are'' handled, now
 that the connection is actually working.  All the packets are sent over
 the ''same'' endpoints, distinguished by the first nibble in the packet.

 So, as the current usb_midi simply ignores that number, you can currently
 ''receive'' on any port, but only ''send'' on the first.

 I'll start studying the reorganization needed to handle that port ID
 properly.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/4463#comment:16>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: