Pirate audio no more working

I follow this installation GitHub - pimoroni/pirate-audio: Examples and documentation for the Pirate Audio range of Raspberry Pi add-ons but maybe is not up to date

Hello @bablokb
I did a fresh install and update config file as previous exchange

dpkg -l | grep -i pipewire and dpkg -l | grep -i pulse return nothing

speaker-test gives no sound…

I don’t know what to do…

Do you see any errors with speaker-test or speaker-test -Dhw? I would not rule out a hardware problem, especially since you wrote in the beginning that it used to work.

Hey @bablokb

speaker-test gives this (but no sound) :

speaker-test 1.2.4

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 8 to 131072
Period size range from 4 to 65536
Using max buffer size 131072
Periods = 4
was set period_size = 32768
was set buffer_size = 131072
 0 - Front Left
Time per period = 0.015886
 0 - Front Left
Time per period = 2.731120
 0 - Front Left

speaker-test -Dhw gives this :

speaker-test 1.2.4

Playback device is hw
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

But this gives no error but no sound

pi@raspberrypi:~ $ speaker-test -Dhw -c2

speaker-test 1.2.4

Playback device is hw
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 8 to 131072
Period size range from 4 to 65536
Using max buffer size 131072
Periods = 4
was set period_size = 32768
was set buffer_size = 131072
 0 - Front Left
 1 - Front Right
Time per period = 2.744603
 0 - Front Left
 1 - Front Right
Time per period = 5.461158
 0 - Front Left

Have exactly the same problem (have emailed support):

  • edited config.txt with:
    #dtparam=audio=off (also tried with no hash and just off set)
    dtoverlay=vc4-kms-v3d,noaudio (excellent call that one)
    dtoverlay=hifiberry-dac (under All section)
    gpio=25=op,dh

  • i2c and spi are on

  • only ‘snd_rpi_hifiberry_dac’ is shown in sound icon on desktop

  • ‘aplay -l’ lists just the ‘sndrpihifiberry’

  • alsamixer shows Pulseaudio as the initial card (this a problem?) . Pressing F6 and choosing Hifiberry shows the same message as discussed above ‘no controls’

  • tried with two different 4ohm, 3w speakers

I’m using a RPi5 - this is the only thing I can think of as an issue (apart from broken speakers/bad connections). Well, that and the OS version (am on latest Bookworm).

If anyone can think of anything else to try…

Hoping for some response from support, fingers crossed, it’s the last item for my AI assistant to get talking for itself.

Update: if I play a sound (e.g. MP3 via VLC) and put my ear against the speaker it plays very, very quiet white noise for the duration of the sound. So something’s alive.

Solved: It was loose connections on the pins. Looks like it needs soldering or using the push connectors. Leaving this here for others to see…