• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Audio problems on RPI3B

Scheduled Pinned Locked Moved Help and Support
hdmi audioraspberry pi 3b
14 Posts 3 Posters 1.6k 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.
  • Y
    yaksha42
    last edited by 5 Jun 2020, 15:01

    I made the changes in EmulationStation to match above. The "Invalid CTL hdmi" error went away but I am still getting the "Failed to attach to default card!" error message and the audio is still not working correctly.

    M 1 Reply Last reply 5 Jun 2020, 15:06 Reply Quote 0
    • M
      mitu Global Moderator @yaksha42
      last edited by 5 Jun 2020, 15:06

      @yaksha42 Did you entered hdmi in the configuration file ? Try to enter it as uppercase - HDMI.

      1 Reply Last reply Reply Quote 0
      • Y
        yaksha42
        last edited by 5 Jun 2020, 15:15

        I entered it all in caps when I did the initial change.

        <string name="AudioDevice" value="HDMI" />

        1 Reply Last reply Reply Quote 0
        • Y
          yaksha42
          last edited by 5 Jun 2020, 19:03

          I just tried.

          sudo apt update
          sudo apt full-upgrade
          

          And now I have no sound at all. I checked all the configs and everything still seems to be set correctly. It's a fairly new install of RetroPie so maybe it's a good idea to just re-image the SD card and start again?

          1 Reply Last reply Reply Quote 0
          • M
            mitu Global Moderator
            last edited by 5 Jun 2020, 19:04

            Can you run

            aplay -l
            

            and post the output ?

            1 Reply Last reply Reply Quote 0
            • Y
              yaksha42
              last edited by 5 Jun 2020, 19:06

              **** List of PLAYBACK Hardware Devices ****
              card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
              Subdevices: 4/4
              Subdevice #0: subdevice #0
              Subdevice #1: subdevice #1
              Subdevice #2: subdevice #2
              Subdevice #3: subdevice #3
              card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
              Subdevices: 4/4
              Subdevice #0: subdevice #0
              Subdevice #1: subdevice #1
              Subdevice #2: subdevice #2
              Subdevice #3: subdevice #3

              1 Reply Last reply Reply Quote 0
              • M
                mitu Global Moderator
                last edited by 5 Jun 2020, 19:38

                Ok, so this shows you're using the latest Raspbian updates, which changed the audio setup. If you've chosen HDMI in the Audio menu, then a configuration file should have been created in $HOME/.asoundrc, where HDMI should be set as default audio card. The contents of the file should look like this:

                pcm.!default {
                  type asym
                  playback.pcm {
                    type plug
                    slave.pcm "output"
                  }
                  capture.pcm {
                    type plug
                    slave.pcm "input"
                  }
                }
                pcm.output {
                  type hw
                  card 0
                }
                ctl.!default {
                  type hw
                  card 0
                }
                

                If you don't have this file, then update RetroPie-Setup to the latest version and re-configure the Audio menu from in the RetroPie system (not in EmulationStation). Try again and see if your games have sound.

                1 Reply Last reply Reply Quote 0
                • Y
                  yaksha42
                  last edited by 5 Jun 2020, 19:54

                  I didn't have the file so I updated the RetroPie-Setup. I configued the Audio menu in RetroPie to be "HDMI 1". I am still getting no sound in any games.

                  1 Reply Last reply Reply Quote 0
                  • M
                    mitu Global Moderator
                    last edited by 5 Jun 2020, 20:49

                    Does speaker-test produce any sound ? Make sure the volume is up (use alsamixer to check/modify it). If that doesn't work, then I don't think is a software/configuration issue.

                    1 Reply Last reply Reply Quote 0
                    • Y
                      yaksha42
                      last edited by 5 Jun 2020, 21:50

                      I couldn't get speaker-test to work, or aplay. alsamixer had volume.

                      I ended up just re-imaging the SD card with a fresh copy of RetroPie. This fixed my issue. All ROMs I've played have had appropriate audio.

                      1 Reply Last reply Reply Quote 0
                      14 out of 14
                      • First post
                        14/14
                        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.

                        This community forum collects and processes your personal information.
                        consent.not_received