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

    On-board audio disabled or not present

    Scheduled Pinned Locked Moved Help and Support
    pi4bnoaudiospeakerbonnet
    15 Posts 2 Posters 3.9k 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
      krullbeast @mitu
      last edited by

      @mitu thank you for the feedback!
      it says that doesn't exist..could i ask how do i find out the mixer's name of my card? i apologize, i'm not very good at linux yet..i'm trying.
      after i do find it, can i just launch ES and set it under the start menu settings? i'll try default in the meantime.

      I really appreciate the help!

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

        @krullbeast said in On-board audio disabled or not present:

        it says that doesn't exist..could i ask how do i find out the mixer's name of my card? i apologize, i'm not very good at linux yet..i'm trying.

        Run the command I posted and look at the output. You can also run alsamixer and look for the name of the mixer, it's shown under the volume slider.

        K 2 Replies Last reply Reply Quote 0
        • K
          krullbeast @mitu
          last edited by

          @mitu when i type these commands and press enter here is what i get..

          pi@barreltoo:~ $ alsamixer
          cannot open mixer: No such file or directory
          pi@barreltoo:~ $ amixer scontrols device=sndrpihifiberry
          amixer: Mixer attach default error: No such file or directory
          pi@barreltoo:~ $

          mituM 1 Reply Last reply Reply Quote 0
          • K
            krullbeast @mitu
            last edited by mitu

            @mitu this is part of my config...do you think anything here could be causing the speaker bonnet not to play? thank you if you have any ideas..

            # Uncomment some or all of these to enable the optional hardware interfaces
            #dtparam=i2c_arm=on
            dtparam=i2s=on
            #dtparam=spi=on
            
            # Uncomment this to enable infrared communication.
            #dtoverlay=gpio-ir,gpio_pin=17
            #dtoverlay=gpio-ir-tx,gpio_pin=18
            
            # Additional overlays and parameters are documented /boot/overlays/README
            
            # Enable audio (loads snd_bcm2835)
            #dtparam=audio=on
            dtparam=audio=off
            dtoverlay=hifiberry-dac
            dtoverlay=i2s-mmap
            
            [pi4]
            # Enable DRM VC4 V3D driver on top of the dispmanx display stack
            dtoverlay=vc4-fkms-v3d
            max_framebuffers=2
            
            [all]
            #dtoverlay=vc4-fkms-v3d
            #overscan_scale=1
            
            # Disable under-voltage warning
            avoid_warnings=1
            
            dtoverlay=hifiberry-dac
            dtoverlay=i2s-mmap
            
            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @krullbeast
              last edited by

              @krullbeast said in On-board audio disabled or not present:

              pi@barreltoo:~ $ alsamixer
              cannot open mixer: No such file or directory

              Looks like the card/mixer is not found. If you have a $HOME/.asoundrc file, remove it. Run

              aplay -l
              

              and post the output (use code tags to surround the output - ``` ).

              K 2 Replies Last reply Reply Quote 0
              • K
                krullbeast @mitu
                last edited by krullbeast

                @mitu how can i check if i have that $HOME file? thank you for your input!! here is my aplay result

                pi@barreltoo:~ $ aplay -L
                null
                    Discard all samples (playback) or generate zero samples (capture)
                jack
                    JACK Audio Connection Kit
                pulse
                    PulseAudio Sound Server
                speakerbonnet
                dmixer
                softvol
                default
                output
                sysdefault:CARD=sndrpihifiberry
                    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
                    Default Audio Device
                dmix:CARD=sndrpihifiberry,DEV=0
                    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
                    Direct sample mixing device
                dsnoop:CARD=sndrpihifiberry,DEV=0
                    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
                    Direct sample snooping device
                hw:CARD=sndrpihifiberry,DEV=0
                    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
                    Direct hardware device without any conversions
                plughw:CARD=sndrpihifiberry,DEV=0
                    snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
                    Hardware device with all software conversions
                usbstream:CARD=sndrpihifiberry
                    snd_rpi_hifiberry_dac
                    USB Stream Output
                
                mituM 1 Reply Last reply Reply Quote 0
                • K
                  krullbeast @mitu
                  last edited by

                  @mitu said in On-board audio disabled or not present:

                  $HOME/.asoundrc

                  how do I remove this file? I came up with this

                  pi@barreltoo:~ $ sudo nano $HOME/.asoundrc
                    GNU nano 3.2                                                               /home/pi/.asoundrc
                  
                  pcm.!default {
                    type asym
                    playback.pcm {
                      type plug
                      slave.pcm "output"
                    }
                    capture.pcm {
                      type plug
                      slave.pcm "input"
                    }
                  }
                  pcm.output {
                    type hw
                    card 1
                  }
                  ctl.!default {
                    type hw
                    card 1
                  }
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @krullbeast
                    last edited by

                    @krullbeast said in On-board audio disabled or not present:

                    @mitu how can i check if i have that $HOME file? thank you for your input!! here is my aplay result

                    No, that's tha aplay -L (uppercase l (ell)). The command I was asking is aplay -l (lowercase L). Remove or rename the .asoundrc file and try again running the commands I posted earlier (amixer ... and alsamixer).

                    K 2 Replies Last reply Reply Quote 0
                    • K
                      krullbeast @mitu
                      last edited by

                      @mitu said in On-board audio disabled or not present:

                      .asoundrc

                      ok!
                      this time it let me in to the mixer!!
                      b6284bb7-47cb-4793-908a-eb2229bc398c-image.png

                      1 Reply Last reply Reply Quote 0
                      • K
                        krullbeast @mitu
                        last edited by

                        @mitu here is my aplay lowercase l

                        pi@barreltoo:~ $ aplay -l
                        **** List of PLAYBACK Hardware Devices ****
                        card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
                          Subdevices: 0/1
                          Subdevice #0: subdevice #0
                        
                        1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator
                          last edited by

                          Based on the output, you'll need to choose Default as Audio Card and PCM as Audio device in EmulationStation.

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            krullbeast @mitu
                            last edited by

                            @mitu YOU DID IT! I LOVE YOU!!!!
                            donated

                            1 Reply Last reply Reply Quote 0
                            • J Jackslayerr referenced this topic on
                            • 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.