• 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

Picade Sound stuck at Max Volume

Scheduled Pinned Locked Moved Help and Support
picaderaspberry pi4soundmaximum
25 Posts 3 Posters 5.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.
  • M
    mitu Global Moderator @ULTRA-MAGNUSS
    last edited by 13 Oct 2021, 18:53

    @ultra-magnuss said in Picade Sound stuck at Max Volume:

    │ This sound device does not have any controls.

    This means there's no mixer for the snd_rpi_hifiberry_dac card, so no volume control (probably that's why amixer also returns nothing). Probably this is how this card works ?

    Can you post the contents of /etc/asound.conf and $HOME/.asoundrc ?

    U 1 Reply Last reply 13 Oct 2021, 19:00 Reply Quote 0
    • U
      ULTRA-MAGNUSS @mitu
      last edited by 13 Oct 2021, 19:00

      @mitu

      /etc/asound.conf contents:

      pcm.real {
      type hw
      card 0
      device 0
      }

      pcm.dmixer {
      type dmix
      ipc_key 1024
      ipc_perm 0666
      slave.pcm "real"
      slave {
      period_time 0
      period_size 1024
      buffer_size 8192
      rate 44100
      }
      bindings {
      0 0
      1 1
      }
      }

      ctl.dmixer {
      type hw
      card 0
      }

      pcm.softvol {
      type softvol
      slave.pcm "dmixer"
      control {
      name "PCM" # Masquerade as the default "PCM" sound device on Pi (for EmulationStation)
      card 0
      }
      }

      pcm.!default {
      type plug
      slave.pcm "softvol"
      }


      $HOME/.asoundrc output
      pi@retropie:~ $ vi .asoundrc
      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
      }

      M 1 Reply Last reply 13 Oct 2021, 19:10 Reply Quote 0
      • M
        mitu Global Moderator @ULTRA-MAGNUSS
        last edited by 13 Oct 2021, 19:10

        @ultra-magnuss From the $HOME/.asoundrc file and see if opening up alsamixer allows you to change the volume.

        U 1 Reply Last reply 13 Oct 2021, 19:43 Reply Quote 0
        • U
          ULTRA-MAGNUSS @mitu
          last edited by 13 Oct 2021, 19:43

          @mitu When I run the alsamixer, it shows "This sound device does not have any controls". It shows Functions keys 1 - 6 and the only one that doesn't immediately exit is F6 which allows me to select the sound device (Default or snd_rpi_hifiberry_dac) Whether I pick default or snd_rpi_hifiberry_dac, I don't get any other options.

          1 Reply Last reply Reply Quote 0
          • M
            mitu Global Moderator
            last edited by 14 Oct 2021, 03:24

            That's strage, since the /etc/asound.conf creates a soft mixer (since the card doesn't have a hw mixer included) and it should show a PCM volume control.
            Have you tried restarting after you removed the $HOME/.asoundrc file ?
            What does amixer contents && amixer scontents outputs this time ?

            U 2 Replies Last reply 14 Oct 2021, 03:28 Reply Quote 0
            • U
              ULTRA-MAGNUSS @mitu
              last edited by 14 Oct 2021, 03:28

              @mitu I literally just moved the /home/.asoundrc file and it did make a difference but it's temporary. I renamed the file (didn't delete) and I can now change the volume in the the amixer and alsamixer and the volume will be lower until I load a game. The moment I hit a button to add credits or anything, the volume suddenly jumps back to 100%. Strange.

              1 Reply Last reply Reply Quote 0
              • U
                ULTRA-MAGNUSS @mitu
                last edited by 14 Oct 2021, 03:36

                @mitu

                Here is the contents of amixer contents

                pi@retropie:~ $ amixer contents
                numid=1,iface=MIXER,name='PCM'
                ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
                : values=230,230
                | dBscale-min=-51.00dB,step=0.20dB,mute=0

                Here is the output from amixier scontents

                pi@retropie:~ $ amixer scontents
                Simple mixer control 'PCM',0
                Capabilities: volume
                Playback channels: Front Left - Front Right
                Capture channels: Front Left - Front Right
                Limits: 0 - 255
                Front Left: 230 [90%]
                Front Right: 230 [90%]

                alsamixer allows me to change the volume, but like I said, when a game loads and I hit a button, suddenly it jumps back to 100% volume

                M 1 Reply Last reply 14 Oct 2021, 03:48 Reply Quote 0
                • M
                  mitu Global Moderator @ULTRA-MAGNUSS
                  last edited by 14 Oct 2021, 03:48

                  Sorry, I overlooked that. Which emulator are you using ? Did you save its configuration at some point, which might have included the sound volume ?

                  U 1 Reply Last reply 14 Oct 2021, 03:53 Reply Quote 0
                  • U
                    ULTRA-MAGNUSS @mitu
                    last edited by 14 Oct 2021, 03:53

                    @mitu I've tried Mame, FBA, Flycast, Redream so far. I haven't gone through all of them but it seems like the affects them all. When it happens and I check the mixers, the volume is back to 100%. Something is kicking in an overriding the settings.

                    Where should I go to check the volume settings for each emulator?

                    M 1 Reply Last reply 14 Oct 2021, 04:02 Reply Quote 0
                    • M
                      mitu Global Moderator @ULTRA-MAGNUSS
                      last edited by 14 Oct 2021, 04:02

                      @ultra-magnuss said in Picade Sound stuck at Max Volume:

                      Where should I go to check the volume settings for each emulator?

                      I was thinking about the Libretro based emulators, which share a common configuration. Redream is not a libretro based emulator, so that excludes this possibility.
                      Is the volume slider working now in EmulationStation ?

                      Try lowering the volume, then rebooting, this will save the current volume level. Check if - after the reboot - the volume is saved.

                      U 1 Reply Last reply 14 Oct 2021, 04:12 Reply Quote 0
                      • U
                        ULTRA-MAGNUSS @mitu
                        last edited by ULTRA-MAGNUSS 14 Oct 2021, 04:12

                        @mitu So I just checked Redream and it did the same. I used putty to change the volume using the alsamixer and left it open. I would change the volume to a lower volume. It would stay that way for a while then it would jump to 90%. I would change it again and leave it and I would see and hear it jump to 90%. When I leave the emulator, it does the same for all.

                        When using the retropie volume,right now it's set to 90%. I will lower it and check and it will save it but when I launch anything, it goes back to 90%. So it's not necessarily an emulator. It's not dependent on me hitting a button. If I just let a game run, it will just jump to 90%, If I leave or launch anything it will reset. It's not really saving the settings.

                        I did try setting the volume lower and rebooting. After reboot, it went back 90% There seems to be a configuration somewhere that keeps kicking in to set the volume.

                        M 1 Reply Last reply 14 Oct 2021, 04:36 Reply Quote 0
                        • M
                          mitu Global Moderator @ULTRA-MAGNUSS
                          last edited by 14 Oct 2021, 04:36

                          Besides the configuration of EmulationStation that keeps the volume, there is the ALSA mixer configuration that's saved on reboot with alsactl store/restore.

                          U 1 Reply Last reply 14 Oct 2021, 05:06 Reply Quote 0
                          • U
                            ULTRA-MAGNUSS @mitu
                            last edited by 14 Oct 2021, 05:06

                            @mitu I figured out what is causing it to jump in volume. It's my start and coin button on the picade. The moment I press one of those buttons, it changes the volume. I don't know why. The front buttons (Coin and 1up) which I have mapped as Start and Coin seems to reset the volume to the max. No idea why. They do function properly as the Coin and Start to start a game but they also reset the volume.

                            M 1 Reply Last reply 14 Oct 2021, 05:10 Reply Quote 0
                            • M
                              mitu Global Moderator @ULTRA-MAGNUSS
                              last edited by mitu 14 Oct 2021, 05:10

                              It could be something installed by the Picade script, maybe the driver/program that handles the input via GPIO also executes some additional commands.
                              What's the name of the Picade controller in EmulationStation ?

                              U 1 Reply Last reply 14 Oct 2021, 05:12 Reply Quote 0
                              • U
                                ULTRA-MAGNUSS @mitu
                                last edited by 14 Oct 2021, 05:12

                                @mitu It's named Keyboard.

                                M 1 Reply Last reply 14 Oct 2021, 05:48 Reply Quote 0
                                • M
                                  mitu Global Moderator @ULTRA-MAGNUSS
                                  last edited by 14 Oct 2021, 05:48

                                  It's named Keyboard.

                                  Of course it is, what was I thinking.
                                  Looks like the Picade script maps the GPIO inputs to keyboard keys with an overlay, mapping start/coin to buttons Q/W (?). Do you have any other programs capturing the keyboard input and executing commands on inputs (like triggerhappy) ? Is this a new RetroPie installation or you're using an existing image ?

                                  U 1 Reply Last reply 14 Oct 2021, 06:30 Reply Quote 0
                                  • U
                                    ULTRA-MAGNUSS @mitu
                                    last edited by 14 Oct 2021, 06:30

                                    @mitu I don't have key capturing software. I guess I could download one but I've never used one. I am using an existing image. I would hate to have to rebuild this image due to the amount of work it took to get this build where I want it. I'm going to go bed for now but I will resume my work later in the day. I appreciate your efforts. This is the last thing I have to resolve and my Picade will be complete.

                                    U 1 Reply Last reply 18 Oct 2021, 11:58 Reply Quote 0
                                    • U
                                      ULTRA-MAGNUSS @ULTRA-MAGNUSS
                                      last edited by 18 Oct 2021, 11:58

                                      @ultra-magnuss I haven't looked at this in a few days. For now I have remapped my buttons to not use the start and coin up button. I leave a putty session open to turn the volume down if someone hits it but I would like to figure out how to fix it. It's not as urgent for now since I have a kind of workaround but I would like to figure this out. I'm sure it's a configuration somewhere but don't know where.

                                      1 Reply Last reply Reply Quote 0
                                      • S SignedUp referenced this topic on 14 Apr 2022, 14:58
                                      • S
                                        Spinjunkey 0
                                        last edited by 7 Aug 2022, 22:06

                                        @mitu I also have the exact same issue as @ULTRA-MAGNUSS. I have gone through this thread many times and still cannot figure out the issue. My current PICADE configuration is same as his.

                                        alsamixer
                                        

                                        does the same for me. "This sound device does not have any controls".

                                        When I run

                                        amixer contents
                                        

                                        I actually get nothing. My .asoundrc file is exactly like Ultra-Magnuss' and have even renamed and deleted the file. Nada. Volume is still 100% even if I edit with the PICADE on screen controls.

                                        Interestingly, if I do an

                                        speaker-test -twav
                                        

                                        It plays the audio file for "front" and "left".

                                        I wonder if the amixer not returning anything is causing an issue.

                                        Help????

                                        Thanks,
                                        David

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mitu Global Moderator
                                          last edited by 8 Aug 2022, 03:59

                                          @Spinjunkey-0 said in Picade Sound stuck at Max Volume:

                                          [..] I actually get nothing. My .asoundrc file is exactly like Ultra-Magnuss' and have even renamed and deleted the file. Nada. Volume is still 100% even if I edit with the PICADE on screen controls. [...]

                                          Post your $HOME/.asoundrc.

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