• 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

On-board audio disabled or not present

Scheduled Pinned Locked Moved Help and Support
pi4bnoaudiospeakerbonnet
15 Posts 2 Posters 3.8k 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 @krullbeast
    last edited by 24 Apr 2021, 16:49

    @krullbeast i tried installing and uninstalling pulseaudio,. that didn't work. i don't know why it WOULD have, but i saw it work for some people. i also tried setting the audio in emulation station to master, but it resets to 0 when i exit out. I assume this is because i somehow have the on-board audio disabled now. I've tried the guide at https://retropie.org.uk/docs/Sound-Issues/ to no avail. and i have installed the script it says it requires from the pinout page here https://pinout.xyz/pinout/speaker_bonnet my soundcard settings look like this
    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

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator @krullbeast
      last edited by 25 Apr 2021, 18:01

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

      I'm trying to install the adafruit speaker bonnet and when I go into Audio in the retropie menu, it is giving me the "on-board audio disabled or not present" message.

      That's normal, since the Audio setting will only work with the on-board audio. If you modified the /boot/config.txt file and disabled the on-board audio, then the message is correct.

      sysdefault:CARD=sndrpihifiberry

      What does

      amixer scontrols device=sndrpihifiberry
      

      show ?
      You need to find out the mixer's name for your card and fill in the AudioDevice option in EmulationStation's configuration. Setting the AudioCard to default is ok.

      K 1 Reply Last reply 25 Apr 2021, 20:00 Reply Quote 0
      • K
        krullbeast @mitu
        last edited by 25 Apr 2021, 20:00

        @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!

        M 1 Reply Last reply 26 Apr 2021, 03:20 Reply Quote 0
        • M
          mitu Global Moderator @krullbeast
          last edited by mitu 26 Apr 2021, 03:20

          @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 26 Apr 2021, 12:57 Reply Quote 0
          • K
            krullbeast @mitu
            last edited by 26 Apr 2021, 12:57

            @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:~ $

            M 1 Reply Last reply 26 Apr 2021, 13:34 Reply Quote 0
            • K
              krullbeast @mitu
              last edited by mitu 26 Apr 2021, 13:12

              @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
              • M
                mitu Global Moderator @krullbeast
                last edited by 26 Apr 2021, 13:34

                @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 26 Apr 2021, 13:38 Reply Quote 0
                • K
                  krullbeast @mitu
                  last edited by krullbeast 26 Apr 2021, 13:38

                  @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
                  
                  M 1 Reply Last reply 26 Apr 2021, 13:49 Reply Quote 0
                  • K
                    krullbeast @mitu
                    last edited by 26 Apr 2021, 13:44

                    @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
                    • M
                      mitu Global Moderator @krullbeast
                      last edited by 26 Apr 2021, 13:49

                      @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 26 Apr 2021, 13:54 Reply Quote 0
                      • K
                        krullbeast @mitu
                        last edited by 26 Apr 2021, 13:54

                        @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 26 Apr 2021, 13:55

                          @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
                          • M
                            mitu Global Moderator
                            last edited by 26 Apr 2021, 13:57

                            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 26 Apr 2021, 14:02 Reply Quote 0
                            • K
                              krullbeast @mitu
                              last edited by 26 Apr 2021, 14:02

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

                              1 Reply Last reply Reply Quote 0
                              • J Jackslayerr referenced this topic on 22 Aug 2022, 23:49
                              15 out of 15
                              • First post
                                15/15
                                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