Haiku cannot find any audio device

Hello, Everyone.

I try to using Haiku in Chatreey AN2P 5625u.

It is not bad machine. But It cannot play any sound.

So, I searched some articles in this forum. and I installed open sound system. but nothing is happen.

I suppouse that open sound system does not support radeon. is it true?

I don’t know what can I do.

1 Like

Open sound is a solution for old hardware. It is still there because it allows to make old (proprietary) drivers that were available for BeOS work . But really, development has stopped for 15 years now.
So, it is definitely not an option in your case. Better remove opensound package and blacklist entries.

On modern hardware, either your ‘card’ is supported by Haiku HDA driver or you should fill an enhancement ticket on Haiku bug tracker Trac.

3 Likes

Buy a cheap USB-Audio Sound stick…

1 Like

USB audio chip ?
In Teminal
listusb

0573:1573 /dev/bus/usb/1/2 “Zoran Co. Personal Media Division (Nogatech)” “USB Audio and HID” ver. 8007

Here it is.

1 Like

It is probably a USB 2.0 device, which the current USB Audio driver prevents from Initializing.

It is confusing… there is USB Audio codec 1.0, and 2.0. And then there is USB 1.1, and USB 2.0, USB 3.0 interfaces, etc.

The Haiku USB Audio driver currently only supports the USB Audio codec 1.0, and it intends to block initialization for USB Audio codec 2.0. But the driver blocks any audio device using USB 2.0 interface.

So that device, probably is a USB Audio codec 1.0, but reports itself as using a USB 2.0 interface, which our driver blocks it from initializing expecting it to be incompatible.

More information would be given if you did a:
listusb -v

1 Like
[Device /dev/bus/usb/1/2]
    Class .................. 0x00 (Defined at Interface level) ()
    Subclass ............... 0x00 (Defined at Interface level) ()
    Protocol ............... 0x00 (Defined at Interface level) ()
    Max Endpoint 0 Packet .. 64
    USB Version ............ 2.0
    Vendor ID .............. 0x0573 (Zoran Co. Personal Media Division (Nogatech))
    Product ID ............. 0x1573
    Product Version ........ 0x8007
    Manufacturer String .... "CSCTEK"
    Product String ......... "USB Audio and HID"
    Serial Number .......... "A34004801402"
    [Configuration 0]
        Configuration String . ""
        [Interface 0]
            [Alternate 0 active]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x01 Audio (Control Device)
                Protocol ........... 0x00 Audio (Control Device)
                Interface String ... ""
                [Descriptor 0]
                    Type .............. 0x24
                    Subtype ........... 0x01 (Header)
                    ADC Release ....... 1.0
                    Total Length ...... 70
                    Interfaces ........ 1, 2, 
                [Descriptor 1]
                    Type .............. 0x24
                    Subtype ........... 0x02 (Input Terminal)
                    Terminal ID ....... 1
                    Terminal Type ..... 0x0101 (USB Streaming)
                    Associated Terminal 0
                    Nr Channels ....... 2
                    Channel Config .... 0x3
                       Front .......... Left Right 
                    Channel Names ..... 0
                    Terminal .......... 0
                [Descriptor 2]
                    Type .............. 0x24
                    Subtype ........... 0x06 (Feature Unit)
                    Unit ID ........... 5
                    Source ID ......... 4
                    Control Size ...... 1
                       Master Channel . Mute Volume 
                    Feature ........... 0
                [Descriptor 3]
                    Type .............. 0x24
                    Subtype ........... 0x03 (Output Terminal)
                    Terminal ID ....... 2
                    Terminal Type ..... 0x0101 (USB Streaming)
                    Associated Terminal 0
                    Source ID ......... 5
                    Terminal .......... 0
                [Descriptor 4]
                    Type .............. 0x24
                    Subtype ........... 0x06 (Feature Unit)
                    Unit ID ........... 6
                    Source ID ......... 1
                    Control Size ...... 1
                       Master Channel . Mute 
                       Channel 1 ...... Volume 
                       Channel 2 ...... Volume 
                    Feature ........... 0
                [Descriptor 5]
                    Type .............. 0x24
                    Subtype ........... 0x03 (Output Terminal)
                    Terminal ID ....... 3
                    Terminal Type ..... 0x0301 (Speaker)
                    Associated Terminal 0
                    Source ID ......... 6
                    Terminal .......... 0
                [Descriptor 6]
                    Type .............. 0x24
                    Subtype ........... 0x02 (Input Terminal)
                    Terminal ID ....... 4
                    Terminal Type ..... 0x0201 (Microphone)
                    Associated Terminal 0
                    Nr Channels ....... 1
                    Channel Config .... 0x1
                       Front .......... Left 
                    Channel Names ..... 0
                    Terminal .......... 0
        [Interface 1]
            [Alternate 0 active]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
            [Alternate 1]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1x 100 bytes
                    Interval ......... 1
                    Type ............. Isochronous
                    Direction ........ Input
                [Descriptor 0]
                    Subtype ........... 1 (AS_GENERAL)
                    Terminal link ..... 2
                    Delay ............. 1
                    Format tag ........ 1
                [Descriptor 1]
                    Subtype ........... 2 (FORMAT_TYPE)
                    Format Type ....... 1 (FORMAT_TYPE_I)
                    Channels .......... 1
                    Subframe size ..... 2
                    Bit resolution .... 16
                    Sampling Freq ..... 8000, 16000, 48000, 
                [Descriptor 2]
                    Type .............. 0x25 (CS_ENDPOINT)
                    Subtype ........... 0x01 (EP_GENERAL)
                    Attributes ........ 0x01 Sampling Frequency 
                    Lock Delay Units .. 0 (Undefined)
                    Lock Delay ........ 0
        [Interface 2]
            [Alternate 0 active]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
            [Alternate 1]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1x 192 bytes
                    Interval ......... 1
                    Type ............. Isochronous
                    Direction ........ Output
                [Descriptor 0]
                    Subtype ........... 1 (AS_GENERAL)
                    Terminal link ..... 1
                    Delay ............. 1
                    Format tag ........ 1
                [Descriptor 1]
                    Subtype ........... 2 (FORMAT_TYPE)
                    Format Type ....... 1 (FORMAT_TYPE_I)
                    Channels .......... 2
                    Subframe size ..... 2
                    Bit resolution .... 16
                    Sampling Freq ..... 8000, 16000, 48000, 
                [Descriptor 2]
                    Type .............. 0x25 (CS_ENDPOINT)
                    Subtype ........... 0x01 (EP_GENERAL)
                    Attributes ........ 0x01 Sampling Frequency 
                    Lock Delay Units .. 0 (Undefined)
                    Lock Delay ........ 0
        [Interface 3]
            [Alternate 0 active]
                Class .............. 0x03 Human Interface Device (No Subclass, None)
                Subclass ........... 0x00 Human Interface Device (No Subclass, None)
                Protocol ........... 0x00 Human Interface Device (No Subclass, None)
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1x 64 bytes
                    Interval ......... 1
                    Type ............. Interrupt
                    Direction ........ Output
                [Descriptor 0]
                    Length............ 0x09
                    Type ............. 0x21
                    Data ............. 10 01 00 01 22 1b 00 

Here it is.

and I bought a usb sound stick. Haiku recognized that. but cannot output any sound. I think that it is not matched with Haiku. I’ll search for other usb sound stick.

2 Likes

Looks like you already have two tickets for enhancement to fill, one for the Realtek chipset and another for this device. Don’t forget to add a link to this thread.

1 Like

Sorry. I don’t know what ticket is and How to use ticket.
Is there some kind of document I should read?

1 Like

Yes, here. Welcome to Haiku!

2 Likes

Yes, the USB ADC codec is 1.0, but the USB Version is 2.0. It should work in theory with our driver. Since it is USB Version 2.0, it is blocked. It would be interesting to see if it would work.

https://dev.haiku-os.org/ticket/18320


miniPC i7-1165G7 ----
device Serial bus controller (USB controller, XHCI) [c|3|30]
vendor 8086: Intel Corporation device
a0ed: Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller

:smiling_face_with_tear:

[Device /dev/bus/usb/1/0]
    Class .................. 0x00 (Defined at Interface level) ()
    Subclass ............... 0x00 (Defined at Interface level) ()
    Protocol ............... 0x00 (Defined at Interface level) ()
    Max Endpoint 0 Packet .. 8
    USB Version ............ 1.16
    Vendor ID .............. 0x08bb (Texas Instruments)
    Product ID ............. 0x2902 (PCM2902 Audio Codec)
    Product Version ........ 0x0100
    Manufacturer String .... "C-Media Electronics Inc.      "
    Product String ......... "USB PnP Sound Device"
    Serial Number .......... ""
    [Configuration 0]
        Configuration String . ""
        [Interface 0]
            [Alternate 0 active]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x01 Audio (Control Device)
                Protocol ........... 0x00 Audio (Control Device)
                Interface String ... ""
                [Descriptor 0]
                    Type .............. 0x24
                    Subtype ........... 0x01 (Header)
                    ADC Release ....... 1.0
                    Total Length ...... 100
                    Interfaces ........ 1, 2, 
                [Descriptor 1]
                    Type .............. 0x24
                    Subtype ........... 0x02 (Input Terminal)
                    Terminal ID ....... 1
                    Terminal Type ..... 0x0101 (USB Streaming)
                    Associated Terminal 0
                    Nr Channels ....... 2
                    Channel Config .... 0x3
                       Front .......... Left Right 
                    Channel Names ..... 0
                    Terminal .......... 0
                [Descriptor 2]
                    Type .............. 0x24
                    Subtype ........... 0x02 (Input Terminal)
                    Terminal ID ....... 2
                    Terminal Type ..... 0x0201 (Microphone)
                    Associated Terminal 0
                    Nr Channels ....... 1
                    Channel Config .... 0x1
                       Front .......... Left 
                    Channel Names ..... 0
                    Terminal .......... 0
                [Descriptor 3]
                    Type .............. 0x24
                    Subtype ........... 0x03 (Output Terminal)
                    Terminal ID ....... 6
                    Terminal Type ..... 0x0301 (Speaker)
                    Associated Terminal 0
                    Source ID ......... 9
                    Terminal .......... 0
                [Descriptor 4]
                    Type .............. 0x24
                    Subtype ........... 0x03 (Output Terminal)
                    Terminal ID ....... 7
                    Terminal Type ..... 0x0101 (USB Streaming)
                    Associated Terminal 0
                    Source ID ......... 8
                    Terminal .......... 0
                [Descriptor 5]
                    Type .............. 0x24
                    Subtype ........... 0x05 (Selector Unit)
                    Unit ID ........... 8
                    Source IDs ........ 10, 
                    Selector .......... 10
                [Descriptor 6]
                    Type .............. 0x24
                    Subtype ........... 0x06 (Feature Unit)
                    Unit ID ........... 9
                    Source ID ......... 15
                    Control Size ...... 1
                       Master Channel . Mute 
                       Channel 1 ...... Volume 
                       Channel 2 ...... Volume 
                    Feature ........... 0
                [Descriptor 7]
                    Type .............. 0x24
                    Subtype ........... 0x06 (Feature Unit)
                    Unit ID ........... 10
                    Source ID ......... 2
                    Control Size ...... 1
                       Master Channel . Mute Volume Automatic Gain 
                    Feature ........... 0
                [Descriptor 8]
                    Type .............. 0x24
                    Subtype ........... 0x06 (Feature Unit)
                    Unit ID ........... 13
                    Source ID ......... 2
                    Control Size ...... 1
                       Master Channel . Mute Volume 
                    Feature ........... 0
                [Descriptor 9]
                    Type .............. 0x24
                    Subtype ........... 0x04 (Mixer Unit)
                    Unit ID ........... 15
                    Source IDs ........ 1, 13, 
                    Channels .......... 2
                    Channel Config .... 0x3
                       Front .......... Left Right 
                    Channel Names ..... 0
                    Bitmap Control .... 0x00 
                    Mixer ............. 0
        [Interface 1]
            [Alternate 0]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
            [Alternate 1 active]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1x 200 bytes
                    Interval ......... 1
                    Type ............. Isochronous
                    Direction ........ Output
                [Descriptor 0]
                    Subtype ........... 1 (AS_GENERAL)
                    Terminal link ..... 1
                    Delay ............. 1
                    Format tag ........ 1
                [Descriptor 1]
                    Subtype ........... 2 (FORMAT_TYPE)
                    Format Type ....... 1 (FORMAT_TYPE_I)
                    Channels .......... 2
                    Subframe size ..... 2
                    Bit resolution .... 16
                    Sampling Freq ..... 48000, 44100, 
                [Descriptor 2]
                    Type .............. 0x25 (CS_ENDPOINT)
                    Subtype ........... 0x01 (EP_GENERAL)
                    Attributes ........ 0x01 Sampling Frequency 
                    Lock Delay Units .. 1 (Milliseconds)
                    Lock Delay ........ 1
        [Interface 2]
            [Alternate 0]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
            [Alternate 1 active]
                Class .............. 0x01 Audio ()
                Subclass ........... 0x02 Audio (Streaming)
                Protocol ........... 0x00 Audio (Streaming)
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1x 100 bytes
                    Interval ......... 1
                    Type ............. Isochronous
                    Direction ........ Input
                [Descriptor 0]
                    Subtype ........... 1 (AS_GENERAL)
                    Terminal link ..... 7
                    Delay ............. 1
                    Format tag ........ 1
                [Descriptor 1]
                    Subtype ........... 2 (FORMAT_TYPE)
                    Format Type ....... 1 (FORMAT_TYPE_I)
                    Channels .......... 1
                    Subframe size ..... 2
                    Bit resolution .... 16
                    Sampling Freq ..... 48000, 44100, 
                [Descriptor 2]
                    Type .............. 0x25 (CS_ENDPOINT)
                    Subtype ........... 0x01 (EP_GENERAL)
                    Attributes ........ 0x01 Sampling Frequency 
                    Lock Delay Units .. 0 (Undefined)
                    Lock Delay ........ 0
        [Interface 3]
            [Alternate 0 active]
                Class .............. 0x03 Human Interface Device (No Subclass, None)
                Subclass ........... 0x00 Human Interface Device (No Subclass, None)
                Protocol ........... 0x00 Human Interface Device (No Subclass, None)
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1x 4 bytes
                    Interval ......... 2
                    Type ............. Interrupt
                    Direction ........ Input
                [Descriptor 0]
                    Length............ 0x09
                    Type ............. 0x21
                    Data ............. 00 01 00 01 22 3c 00 

I bought a new usb sound stick. Haiku recognized that. but It cannot play any sound. very interesting.

1 Like

xHCI Host Controller USB 3.1 and USB 3.2 - not supported usb_audio driver.
USB 3.0/2.0 work fine.

1 Like

This time, I bought three usb sound sticks as cheap as possible, but when I connected the three one by one and booted Haiku, media_addon_server crashed. I don’t know if all three devices are strange or if something else is needed.

1 Like

If someone were use a usb sound stick, Can you recommand that?

As mentioned before, have you already removed OpenSound and blacklisted it ?

1 Like

I have tested an Audio Technica ATR2x-USB with Haiku when USB Audio support was fixed recently and it works fine. I just tested it again with the latest nightly and it still works. If it’s not detected initially, you may need to click ‘Restart Media Services’ in the Media preferences for it to come up. With this particular adapter though it seems to be detected fine on boot. Link to the adapter here, it’s readily available to purchase online and not too expensive: https://www.audio-technica.com/en-au/3-5-mm-to-usb-digital-audio-adapter

1 Like

Unfortunately having a working adapter won’t change anything, if like stated kim1963 usb_audio is not working on XHCI 3.2. Probably some that dsscrolls already bought would work fine on another machine.
So better try to make the internal Radeon Renoir chipset work. But one thing is certain, if there are no bug report for non-working devices, support for them won’t appear magically.

2 Likes

Yes that appears to be the issue given multiple the likely compliant devices that have been purchased do not work. Which would be easier to implement in this instance though, adding USB 3.2 support or supporting the internal audio chipset?

1 Like