Sound & Volume Control with legacy-python-driver

Hi Guys,

i just got a Picade HAT and I want to use it with Raspbian Stretch and the legacy-python-drivers from Github because I only need the Power On/Off Feature and the I2S Sound Output.

I got the power functions working but I cant get the sound Output to work.

I already edited /boot/config.txt so that regular audio is disabled and i2s is enabled, like so:

dtparam=audio=off
dtparam=i2c_arm=off
dtparam=i2s=on

dtoverlay=hifiberry-dac

Also I created a little /etc/asound.conf like so:

pcm.!default  {
 type hw card 0
}
ctl.!default {
 type hw card 0
}

Now i get this when I do aplay -l

pi@raspberrypi ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

seems fine, but i still get no Sound through my connected Speaker if i do a speaker-test -c2

Any hints or ideas what I’m missing?

I can’t see anything you’ve done wrong. Is the HAT pushed firmly down upon the Pi’s GPIO header, in the right orientation etc?

aplay -l will show the sndrpihifiberry device even with no DAC connected so it’s only useful for debugging the software side of things which seems to be set up fine.

Also, what speaker are you using?

I’m using a 4 Ohm 3 Watt speaker which I already tested with a function generator. Speaker is ok. Picade Board is connected in the right way also. Like I said, the power functions are working. Only the Sound Chip isn’t working.