RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    USB audio not recognized

    Scheduled Pinned Locked Moved Help and Support
    usb audio
    23 Posts 4 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      KBert
      last edited by

      Hi,

      This is likely going to be a hardware question...

      I have a Raspberry Pi Zero W set up with retropie 4.5.1. I am using an old five volt three amp power supply. I am in the process of breadboarding a portable game machine. It is set up to run a DPI screen and an Arduino Micro as the game controller. I am trying to set up USB audio. I had a cheap plug in module that does work fine, but I intend to build my own board for everything to be mounted to. So I used a breakout board to mount a PCM2706 DAC. I plugged this into my Windows desktop and it is automatically recognized and works fine, well, the bread boarding introduces some noise.

      When I plug it into my Pi Zero, through a powered D-Link seven port USB hub that has my Arduino Micro and keyboard connected, nothing happens. I did the "lsusb" and it isn't listed. I plugged it back into the desktop and reconfirmed that is works.

      Anybody know if I am missing a step or if I am doing something wrong?

      Thanks!

      KB

      1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde
        last edited by Clyde

        For further diagnosis, you could check the output of these commands:

        A. Before you plug the board in:

        tail -f /var/log/syslog
        

        Then plug it in and you should see system messages about it appearing. You can stop the tail command by pressing Ctrl+C.

        B. Right after you plugged it in:

        dmesg
        

        The last couple of messages should be about the device you just plugged in.

        1 Reply Last reply Reply Quote 0
        • K
          KBert
          last edited by

          Thank you for your quick reply.

          I followed your instructions and nothing happened after I plugged in the USB audio.

          Nothing.jpg

          Any idea what I should try next?

          Thanks
          KB

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @KBert
            last edited by mitu

            @KBert said in USB audio not recognized:

            Any idea what I should try next?

            Run dmesg right after you've plugged in the device (audio) and see if you see any detection lines at the end. Here's how it looks like for a gamepad

            [...]
            [    4.294986] usbcore: registered new interface driver brcmfmac
            [    4.347439] input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.3/0003:054C:09CC.0001/input/input1
            [    4.352890] input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.3/0003:054C:09CC.0001/input/input2
            [    4.378253] usbcore: registered new interface driver snd-usb-audio
            [    4.422258] input: Sony Interactive Entertainment Wireless Controller as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.3/0003:054C:09CC.0001/input/input0
            [    4.422695] sony 0003:054C:09CC.0001: input,hidraw0: USB HID v81.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-0000:01:00.0-1.2/input3
            [...]
            

            You should get something similar, but the messages should show an USB Audio device.

            1 Reply Last reply Reply Quote 0
            • K
              KBert
              last edited by

              Done, and I'm afraid it doesn't show up:
              dmesg.jpg

              KB

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                Try unplugging the other USB devices (well, l guess you can leave the keyboard) and plug in just the USB Audio card, for testing. Or maybe switch some ports around in the hub and see if something comes up.

                1 Reply Last reply Reply Quote 0
                • B
                  backstander
                  last edited by

                  How is the D-Link seven port USB hub powered? I wonder if it is not pushing enough power to power the USB audio device.

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    KBert
                    last edited by

                    Well I tried plugging my USB Audio circuit into a different Raspberry Pi. This one is a Pi 3 Model B V1.2 running an older version of Retropie (Sorry I don't have the exact release right not). This one is powered by the power supply that came in its kit. This one acknowledged that something is plugged in:
                    Pi2.jpg

                    Sorry, I don't have this one networked so the best I can do is a shot of the screen using my cell phone.

                    KB

                    1 Reply Last reply Reply Quote 0
                    • K
                      KBert @backstander
                      last edited by

                      @backstander said in USB audio not recognized:

                      How is the D-Link seven port USB hub powered? I wonder if it is not pushing enough power to power the USB audio device.
                      The seven port has a separate power supply, however, I built the circuit to take power from the five volts that is powering everything, which is a 5V 3A power supply.

                      KB

                      1 Reply Last reply Reply Quote 0
                      • K
                        KBert
                        last edited by

                        Just to let you know of another thing I tried: I removed the separate power supply for testing and just let the circuit be powered by the USB 5V. On the Pi 2 it still has the error message and is "unable to enumerate USB device". I plugged it back into my Windows desktop to ensure that it is still working and it is, and sounds much better. With my headphones it sounds just as good as the audio jack on the PC. I did a google search and found that often times an incorrect clock frequency on the device can be the cause. I checked and I am using a 12.0000MHz crystal.

                        Thanks!
                        KB

                        1 Reply Last reply Reply Quote 0
                        • K
                          KBert
                          last edited by

                          Well I feel like I am getting closer. Again I can confirm that this is working on my Windows machine. First of all I was incorrect in what chip I am using. I stated a PCM2606 and in reality it is a PCM2707CPJTR. The circuit is essentially the same. I did find out that the pull up resistor I had on D+ was setup incorrectly. This needs to go to the USB five volts and not just any five volts. With this in mind I actually removed all external power from the circuit and ran all the power and ground to just the USB. It now sounds great with the Windows desktop. I tried it in the Pi Zero W and again nothing showed up in the syslog and all I can hear is an electronic whine. So I tried it in the Pi 2 as it is easier to play with.

                          Now it still gives me an error, but it at least recognizes what is plugged in and not that something is attached:
                          USBsep.jpg

                          I am going to do some more searching and see if I can get any further on this tonight, but if anyone has any more ideas I am more than open to hearing them.

                          Thanks everyone!
                          KB

                          1 Reply Last reply Reply Quote 0
                          • K
                            KBert
                            last edited by KBert

                            Just an update: it is working on the Pi 2. There is a horrible buzzing which is probably caused by a grounding issue somewhere, but it works. I have a game in Retropie playing sound now.

                            Now I just need to figure out why the Pi Zero does not see it.

                            KB

                            EDIT: Buzzing sound was from headphone jack ground coming out of breadboard. Sounds great now. Works just fine on Pi 2 but still not recognized on Pi Zero W. I have tried in various ports on the USB hub.

                            Any more ideas?

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              backstander @KBert
                              last edited by

                              @KBert

                              Any more ideas?

                              Test with another/different powered USB hub? Maybe borrow one from a friend?

                              Also maybe get a Bluetooth keyboard to pair with the Pi Zero W and try the USB audio connected without a USB hub.

                              ClydeC 1 Reply Last reply Reply Quote 0
                              • ClydeC
                                Clyde @backstander
                                last edited by

                                @backstander said in USB audio not recognized:

                                Also maybe get a Bluetooth keyboard to pair with the Pi Zero W and try the USB audio connected without a USB hub.

                                Or enable SSH in Retropie, install Putty in Windows, and control the Pi via network, making the keyboard obsolete.

                                K 1 Reply Last reply Reply Quote 1
                                • K
                                  KBert @Clyde
                                  last edited by

                                  @Clyde

                                  I am SSHed into the Pi Zero, but not over wifi. Instead I have a USB to Ethernet adapter. I haven't successfully managed to get wifi working in the lab (not my private network). I need to enter a username and password instead of just a password to make it work. I have tried a few times, but no luck. I also can not connect to the Pi using the second ethernet port on the wall. The IT guys seem to block any Raspberry Pi. I have a router that connects to my Pi that I also have my desktop connected as well.

                                  I am trying to hunt down another USB hub. Failing that I will grab a wireless router and try and set the Pi up on that so I can connect from my desktop and then plug the USB audio in directly.

                                  I will let you know what happens.

                                  Thanks!
                                  KB

                                  ClydeC 1 Reply Last reply Reply Quote 0
                                  • ClydeC
                                    Clyde @KBert
                                    last edited by

                                    @KBert If you are using the Pi via SSH, could you please post any shell output in a code block instead of a picture? Like this:

                                    It really helps with readability, and the forum search can find the text within it if someone else looks for it. :) (Syntax highlighting looks funny in normal sentences.)
                                    

                                    I'm eager to hear any progress from you.

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      KBert
                                      last edited by

                                      My apologies for not putting things in proper form while posting. I will try to behave better in the future.

                                      Also I have run into another issue. I could not find another USB hub and my Pi is insisting that there is "No wireless interface found". I have a wireless router ready to go so as soon as I get this Pi online I will be able to update on my audio issue. I probably won't have an update until tomorrow or later in the week depending on how time goes. Sorry to make you wait.

                                      Thanks!
                                      KB

                                      1 Reply Last reply Reply Quote 0
                                      • ClydeC
                                        Clyde
                                        last edited by

                                        Take your time, I don't think anyone here will go crazy due to some days of waiting. Patience is a virtue. ;)

                                        Good luck!

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          KBert @Clyde
                                          last edited by

                                          @Clyde

                                          Indeed. In fact it's time to go home and spend some time with my wife and son.

                                          Thanks!
                                          KB

                                          1 Reply Last reply Reply Quote 0
                                          • mituM
                                            mitu Global Moderator
                                            last edited by

                                            Make sure the Wifi adapter isn't blocked - run sudo rfkill unblock all before trying again to connect to Wifi.

                                            K 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.