Opened 11 years ago
Closed 10 months ago
#10521 closed enhancement (fixed)
enable usb_audio in nightly builds
Reported by: | tidux | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta5 |
Component: | Drivers/Audio/USB | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | #1045, #18497 | Blocking: | #15387, #18320 |
Platform: | All |
Description
I have successfully built, booted, and run a @nightly-anyboot gcc2h target with the USB Audio driver enabled. It works with a C-Media Electronics, Inc. Audio Adapter (USB ID 0d8c:000c), and produces sound (although not the right sounds) with a Turtle Beach Amigo II (USB UD: 10f5:0211). Other than hotplug and compatibility fixes for specific models like the Amigo II, the driver is ready to use, and the remaining bugs will be found much more easily with a wider user base to test them. On a more personal note, the USB audio devices are much simpler to use than the nightmarish complexities of getting my Conexant HDA chipset into working with Haiku.
Attached is a patch to enable USB Audio.
Attachments (1)
Change History (21)
by , 11 years ago
Attachment: | usb_audio.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
comment:2 by , 11 years ago
Blocked By: | 1045 added |
---|
comment:3 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 5 years ago
Blocking: | 15387 added |
---|
comment:6 by , 4 years ago
Milestone: | R1 → R1.1 |
---|
comment:7 by , 20 months ago
Blocking: | 18320 added |
---|
comment:8 by , 20 months ago
Using usb_audio with such controller types crashes the system.
I think this is not true anymore. So maybe we could enable this driver? Even if it's not working perfectly, as long as it doesn't crash, we can have it in the nightlies and let people test it on a wider variety of devices?
comment:9 by , 20 months ago
I have the opportunity to test the driver on three different devices: one device is built into the motherboard of the minicomputer, two external devices. I need a driver’s binary file and testing instructions. I hope to help from the developers of the operating system.
https://dev.haiku-os.org/ticket/18320
https://dev.haiku-os.org/attachment/ticket/18320/screenshot127.png
https://dev.haiku-os.org/attachment/ticket/18320/screenshot119.png
https://dev.haiku-os.org/attachment/ticket/18320/photo_2023-03-12_21-10-58.jpg
comment:10 by , 20 months ago
The driver causes extremely frequent stuttering, if it even works at all. Additionally, due to #12776 and #12777, hot-plugging new audio outputs and switching to them requires *two* media_server restarts done in just the right way, so it's very easy to not even manage to get anything sent to the driver at all, and think it's more broken than it actually is.
Thus, I don't think it should be added to the nightlies until some of those issues are resolved.
comment:11 by , 20 months ago
Well, usb_audio
driver is some kind of working and nightly images are intended for testing so why not include it?
comment:12 by , 20 months ago
Because "testing" only makes sense when problems are not known or not understood. In this case, the problems are known, easily reproduced, and enough to preclude actual usage of the driver; further, users may be confused about which of the 3 issues in question are being triggered when using it. So, we should not enable it, because at this time, no further "testing" is needed; instead someone who understands or wants to try to understand the driver and the media system needs to take the time to fix it.
comment:14 by , 19 months ago
please don't paste links to random share sites, they may go down. instead copy the text or add it as an attachment.
In this case however I don't see what your text has to do with this issue
follow-ups: 16 17 comment:15 by , 19 months ago
It's an example of one of the devices that may be supported by the usb_audio driver. There is no way to know if it will work or not until the driver is enabled.
I will have a test on my machine (my docking station has USB audio) and if the driver doesn't make the system unstable and manage to at least output silence when no one tries to play sound, I will add it to the nightly image.
comment:16 by , 19 months ago
Replying to pulkomandy:
It's an example of one of the devices that may be supported by the usb_audio driver. There is no way to know if it will work or not until the driver is enabled.
I will have a test on my machine (my docking station has USB audio) and if the driver doesn't make the system unstable and manage to at least output silence when no one tries to play sound, I will add it to the nightly image.
ОК
comment:17 by , 19 months ago
Replying to pulkomandy:
It's an example of one of the devices that may be supported by the usb_audio driver. There is no way to know if it will work or not until the driver is enabled.
I will have a test on my machine (my docking station has USB audio) and if the driver doesn't make the system unstable and manage to at least output silence when no one tries to play sound, I will add it to the nightly image.
??
comment:18 by , 17 months ago
Blocked By: | 18497 added |
---|
It does not work on my hardware, see #18497. The high CPU usage and syslog spam means it may not be such a good idea to enable the driver by default yet, until that is solved.
comment:19 by , 10 months ago
After more XHCI fixes, the driver seems to work and doesn't appear to cause CPU usage spikes here. I will test it a bit more and then enable it on the nightlies.
comment:20 by , 10 months ago
Milestone: | R1.1 → R1/beta5 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Enabled in hrev57560.
Thanks for feedback. You just lucky owner of the OHCI USB controller. Haiku has correct implementation of isochronous transfers for it. UHCI, EHCI and XHCI need to be refactored as described in #1045. Using usb_audio with such controller types crashes the system. That's why it is not in the image yet.