Picade X HAT sound volume too high

I have the nice picade x hat USB C connected to a R Pi 4B.
It is in that nice Cabinet with the 10" screen.

I am running Raspbian GNU/Linux 10, fully updated.
Retropi fully updated (now will work from console and not just from the desktop).

I have reinstalled the picade script with the curl command.
My /etc/asound.conf is the one the picade script installed.

The sound works, but it is too loud.

I see errors about
lv:10: Volume control::init() - Failed to find mixer elements!

alsamixer shows the sound device as
snd_rpi_hifiberry_dac

This sound device does not have any controls.

i2s is disabled in /boot/config.txt
and there are no dtoverlay= and dacs
only
dtoverlay=picade

I can turn the audio off with dtoverlay=picade,noaudio

But I would like to be able to change the volume someother way, preferably to reduce it.
Could just stuff something over it to muffle it but that seems crude!

I have read around and am confused about the different versions of the hats etc.

Can anyone confirm that they have some sort of volume control with this hat?

Thanks

Obvious question first, have you tried changing the volume using the ‘Sound settings’ in the Emulation Station menu?

Yes.

No change there.

Tried all the different settings.

Strange though the volume always shows up as 0% no matter what I set it to the last time I changed it and the speaker will belt out at full volume no matter what the setting in the emulation station sound settings.

The retro pi audio setting throws up alsamixer with the no controls message in my post.

I’m using the previous version of the XHAT, but I think the driver is the same.

All the settings that you mention are the same on my setup - alsamixer shows snd_rpi_hifiberry_dac; in config.txt the i2s lines are commented out, and the only dtoverlay line is the picade one.

I have a line in config.txt that you don’t mention: dtparam=audio=off. This gets added by the picade xhat script, so it should be there.

Try running the picade script using the automatic method (details on the github site https://github.com/pimoroni/picade-hat). This shows you on screen what it does, so it should show you any installation errors.

FYI, in the sounds settings in Emulation Station, the Audio Card should be Default, and the Audio Device shpuld be PCM.

Yes I have dtparam=audio=off

I did the GitHub download and sudo ./install.sh
No errors.

Reboot

Tried with those settings in Emulation station sound menu.

Same result volume always on at full.
When I go back to the es sound settings the volume is always 0 no matter what I set it to the last time.

I see the same error about
lv:10: Volume control::init() - Failed to find mixer elements!

Flash on screen when I start a game.

Are you using a pi 4 with the usb C powered picade xhat? Are you using retro pi on raspbian buster?

I’m using a Pi 3 with a micro USB powered XHAT, and I installed RetroPie 4.5.1 using the pre-made image.

I guess you’re using RetroPie v4.6, but are you using the pre-made image, or installing Raspbian first, then RetroPie manually?

I installed retro pie manually on top of raspbian. That was the only hack to get it running on the pi 4 prior to the recent release of retro pie.

I guess the only thing left to try is the retro pie image install.

Thanks for your suggestions. I will post back when I have tried with the retro pie image. To be honest I am not optimistic :-)

Yippee.
Works with retro pie image. But not with manual install of retro pie on buster.

Now I can reduce volume with Audio menu in emulation station. Wonder what the problem is. Some software issue.

Mark this as mostly solved. Many thanks.

Our of curiosity, have you done an update of the system after this installation using the retropie image?

No update since I downloaded it yesterday. AFAIRecall
Download
Edit config.txt to put in HDMI hotplug.
Put in pi and, plug up and press power (I use pi power socket as the socket on the XHat had broken off before.
Booted up and did the resizing of the partition
Reboot with my keyboard attached
Set input or exit with F4 and use keyboard and console
Set network with sudo raspi-config
curl the picade installation script (it does some apt calls but I can’t remember what they were but there were no errors.)
Reboot
Set input with buttons on cabinet

Pew pew pew (with volume control via es sound menu)