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

    No sound - GPi Case - Failed to attached default card

    Scheduled Pinned Locked Moved Help and Support
    audio issueno sound
    8 Posts 3 Posters 3.4k 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.
    • G
      gts197
      last edited by

      Hello,

      I did some searching and did find posts that had no sound issues etc but I was unable to find anything that matched exactly what I am dealing with and alot of the fixes require access to the "Audio" menu that I cannot even get access to. Attached are images of the error I am getting when I try to adjust the settings in the "Audio" menu. I am unable to get any sound working on my Retro Pi install in my GPi Case. Any help would be greatly appreciated. I am trying to avoid needing to reinstall everything.

      Screen Shot 2021-09-07 at 8.40.24 AM.jpg Screen Shot 2021-09-07 at 8.40.32 AM.jpg

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

        Please add some info about your setup as detailed in https://retropie.org.uk/forum/topic/3/read-this-first.
        How is the GPI case outputting sound ? Does it use an I2S hat ? Judging by the 1st message from the screenshot (from the Audio settings), looks like the onboard sound is disabled via config.txt.

        G 1 Reply Last reply Reply Quote 0
        • G
          gts197 @mitu
          last edited by

          @mitu Thanks for the reply. See below information:

          Pi Model or other hardware: (PI 0 W)
          Power Supply used: (n/a)
          RetroPie Version Used (4.7.18):
          Built From: (retropie-buster-4.7.1-rpi1_zero)
          USB Devices connected: (IO conversion board included with GPi Case - https://www.retroflag.com/GPi-CASE.html)

          With regards to the config file I never edited it. I am unable to get access to it at the moment but I could upload if needed.

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

            Looking at the support site, it doesn't look like it's going to work OOB with the RetroPie image - the video needs configuring and it looks like there's some configuration added for the audio also. Are you sure you're using the stock RetroPie image ? Post your config.txt.

            G 1 Reply Last reply Reply Quote 0
            • G
              gts197 @mitu
              last edited by mitu

              @mitu All the patches that are required for the case were installed. The only thing that is not working is the audio.

              I am 100% sure that the image used was downloaded directly from the official site for the Pi 0.

              Below is the text of the config file. It would not allow me to upload the actual file.

              # For more options and information see
              # http://www.raspberrypi.org/documentation/configuration/config-txt.md
              # Some settings may impact device functionality. See link above for details
              
              # uncomment if you get no picture on HDMI for a default "safe" mode
              #hdmi_safe=1
              
              # uncomment this if your display has a black border of unused pixels visible
              # and your display can output without overscan
              #disable_overscan=1
              
              # uncomment the following to adjust overscan. Use positive numbers if console
              # goes off screen, and negative if there is too much border
              #overscan_left=16
              #overscan_right=16
              #overscan_top=16
              #overscan_bottom=16
              
              # uncomment to force a console size. By default it will be display's size minus
              # overscan.
              #framebuffer_width=1280
              #framebuffer_height=720
              
              # uncomment if hdmi display is not detected and composite is being output
              #hdmi_force_hotplug=1
              
              # uncomment to force a specific HDMI mode (this will force VGA)
              #hdmi_group=1
              #hdmi_mode=1
              
              # uncomment to force a HDMI mode rather than DVI. This can make audio work in
              # DMT (computer monitor) modes
              #hdmi_drive=2
              #hdmi_force_hotplug=1
              #hdmi_force_edid_audio=1
              
              # uncomment to increase signal to HDMI, if you have interference, blanking, or
              # no display
              #config_hdmi_boost=4
              
              # uncomment for composite PAL
              #sdtv_mode=2
              
              #uncomment to overclock the arm. 700 MHz is the default.
              #arm_freq=800
              
              # 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 the lirc-rpi module
              #dtoverlay=lirc-rpi
              
              # Additional overlays and parameters are documented /boot/overlays/README
              
              # Enable audio (loads snd_bcm2835)
              dtparam=audio=on
              
              #config_hdmi_boost=0
              
              # force hdmi while the tv can take time before sending the signal on the hdmi output
              #hdmi_force_hotplug=1
              
              # uncomment for composite PAL
              #sdtv_mode=2
              
              # uncomment for lirc-rpi
              #dtoverlay=lirc-rpi
              
              # if you plug your tv at the same time as your rpi and that the rpi switches from the hdmi or give a low resolution because tv had no enough time to initialize it
              boot_delay=3
              
              # uncomment if you don't want the rainbow at startup
              disable_splash=1
              
              # default CEC name
              cec_osd_name=recalbox
              
              # Overclock
              gpu_mem_256=128
              gpu_mem_512=256
              gpu_mem_1024=512
              
              avoid_safe_mode=1
              
              kernel=zImage
              
              #dtparam=audio=on
              display_rotate=1
              dtoverlay=dpi24
              overscan_left=0
              overscan_right=0
              overscan_top=0
              overscan_bottom=0
              framebuffer_width=320
              framebuffer_height=240
              enable_dpi_lcd=1
              display_default_lcd=1
              dpi_group=2
              dpi_mode=87
              dpi_output_format=0x6016
              #hdmi_timings=320 0 28 18 28 480 0 2 2 4 0 0 0 60 0 32000000 6
              hdmi_timings=240 1 38 10 20 320 1 20 4 4 0 0 0 60 0 6400000 1
              dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2
              disable_pvt=1
              disable_audio_dither=1
              dtoverlay=pwm-audio-pi-zero
              
              1 Reply Last reply Reply Quote 0
              • G
                gts197
                last edited by

                @mitu So I did some digging and found a post here talking about this and I was able to get sound going in games only…doesn’t seem to be working in the menus but thats ok.

                Here is a link to that post (https://retropie.org.uk/forum/topic/28809/no-in-game-sound-after-the-dec-2020-raspberry-pi-os-updates/6)

                I added this to the first line in /boot/cmdline.txt and it did the trick.

                snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_compat_alsa=1

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

                  @gts197 Glad you got it sorted.

                  RetroFlag should update their scripts to work with newer Raspberry Pi OS releases or at least have some more details explanations on how the sound works with their overlay.

                  2Play2 1 Reply Last reply Reply Quote 0
                  • 2Play2
                    2Play @mitu
                    last edited by

                    @mitu I agree with you.
                    I was experimenting recently on pi0 and checked the RetroFlag "patch" for their GPi Case and it has by default disabled#dtparam=audio=on applied to the config .txt which causes the exact error posted
                    If the # is removed and reboot the sound is back to normal.

                    They should update their scripts/info rather users get troubles and need to apply cmdline alsa or edit sudo nano /usr/share/alsa/alsa.confand change

                    defaults.ctl.card 0
                    defaults.pcm.card 0
                    to
                    defaults.ctl.card 1
                    defaults.pcm.card 1
                    

                    Your friend,
                    2Play!

                    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.