[haiku-bugs] Re: [Haiku] #1045: USB isochronous streams

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 08 Jan 2022 09:30:18 -0000

#1045: USB isochronous streams
--------------------------+---------------------------
  Reporter:  wkornewald   |      Owner:  nobody
      Type:  enhancement  |     Status:  assigned
  Priority:  normal       |  Milestone:  R1
 Component:  Drivers/USB  |    Version:  R1/pre-alpha1
Resolution:               |   Keywords:
Blocked By:               |   Blocking:  10521, 11256
  Platform:  All          |
--------------------------+---------------------------
Comment (by rudolfc):

 I'll upload the part showing the error with default logging. You state
 nothing else runs into this problem, but I suspect that's just what you
 saw and/or what was recognized as belonging there. When you are working on
 the 'interface' between electronics and firm/software these things are
 more or less daily routine/trouble.. I lost count for instance in how many
 occasions the specs were inconclusive or just plain wrong (at my work
 place).

 Anyhow, for this case I suspect it's not just the device that is slow, it
 might also be connected to the power/ramp-up inside the host or it's local
 power supply and especially the combination of 'slow' devices with such
 host controller. As stated before, I also see a lot of trouble on my
 surface 3 which also uses the xhci driver: though at this point it remains
 to be seen if it would be solved there with the timing update we are
 looking at. (when the driver is updated I can test that since it's
 practically impossible to do that with a non-packaged solution I fear
 which seems needed on UEFI (I might be mistaken in case of usb bus
 drivers)

 BTW I did also modify/test with usb's hub.cpp where I originally suspected
 the timing error: but relaying there, or just not exec'ing the debounce
 routine did not solve the audio card problem.

 For usb_audio even the header file we have is still incomplete
 (USB_audio.h). It does not support v2 audio spec (missing pieces): I had
 to expand it a little for my tests.

 For my test (nasty test, I am learning to understand stuff piece by piece)
 indeed the usb_audio driver is loaded, buffers are created, (some)
 controls get created in Media prefs, etc. No audio yet (was to be expected
 due to new clocking mechanism at least in audio spec v2), and on top of it
 all the usb bus hangs (until I unplug and replug a few times). I'll not
 waste your time with further details and I don't dare sharing this 'code'
 currently).

 Thanks for looking at my report!
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/1045#comment:38>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: