PHATDAC error with Retropie

Ok, so I built my Picade…check

I decided to upgrade my audio using a PHATDAC, managed to solder the header Ok and installed into the Picade.

I ran the automated setup script as instructed.

But I’m getting an error message when I boot into Emulationstation saying…

Lvl10 can’t find mixer elements.

I can see that the PhatDAC is seen in the Elsa mixer screen but can’t get it working?

It also says this Soundcard does not have any controls

I don’t have any OS loaded, just Retropie if that makes sense. Any help would be truly appreciated.

Thanks

Scott

Hi

I got exactly the same and in the end removed the Phat DAC. I think the issue is with the Retropie software? I raised this with the developers via I think it was GitHub but so far there has not been any updates.

Cheers

Paul

Did you have an OS installed Paul like Pixel is Raspian? Mine doesn’t have anything under startx if that makes sense and was wondering if that is a requirement?

Hi

Retropie uses Raspbian as its OS.

Cheers

Paul

Ok, so I have sound. Trouble is its on full volume all the time? The Picade controls aren’t doing anything.

This seems to be the gist of the sound issue: https://github.com/Aloshi/EmulationStation/issues/433

The bug still exists in the code here: https://github.com/Aloshi/EmulationStation/blob/646bede3d9ec0acf0ae378415edac136774a66c5/es-app/src/VolumeControl.cpp#L6-L13

Where it’s basically assuming the mixer is called “PCM” and ignores anything else.

It looks like this doesn’t actually affect sound output for emulators, though, just volume control in EmulationStation? (And irritating error messages) Reports in the issue above seem to suggest that anyway.

Which version of the Picade firmware are you using @badboybubby?

Hi,

Not sure what firmware I’m using I’ll try and figure it out.

I’m still pretty much a noob all things pi but fancy trying this…but (see below)

Open up a terminal prompt, and run:

amixer -l
Note the name of your mixer. Mine was named “Speaker”.

Now run:

git clone https://github.com/Aloshi/EmulationStation.git
nano EmulationStation/es-app/src/VolumeControl.cpp
Change line 8 from:

const char * VolumeControl::mixerName = “PCM”;
to match the name of your mixer (“Speaker” in my case):

const char * VolumeControl::mixerName = “Speaker”;
Press Ctrl+O and Enter to save the file, then Ctrl+X to exit Nano.

Then, follow the instructions for building the code from the main Github page:

sudo apt-get install libsdl2-dev libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libboost-locale-dev libfreeimage-dev libfreetype6-dev libeigen3-dev libcurl4-openssl-dev libasound2-dev libgl1-mesa-dev build-essential cmake fonts-droid

cd EmulationStation
cmake .
make
make install

The amixer command doesn’t work!

Any ideas? Thanks Scott