Audio not working on Pirate Audio 3w amp

Hello,
I just bought a Pi 3 A+ and a Pirate Audio 3w amp.

I installed Mopidy, everything is working fine ( including pirate audio screen ), except I can’t use the pirate-audio line out.
( mopidy plays music thru HDMI , but not thru the pirate audio board )

I’m new to raspberries, I guess I forgot something…

aplay -l says :

**** Liste des p�riph�riques mat�riels PLAYBACK ****
carte 0 : vc4hdmi [vc4-hdmi], p�riph�rique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Sous-p�riph�riques : 1/1
  Sous-p�riph�rique #0 : subdevice #0
carte 1 : Headphones [bcm2835 Headphones], p�riph�rique 0 : bcm2835 Headphones [bcm2835 Headphones]
  Sous-p�riph�riques : 8/8
  Sous-p�riph�rique #0 : subdevice #0
  Sous-p�riph�rique #1 : subdevice #1
  Sous-p�riph�rique #2 : subdevice #2
  Sous-p�riph�rique #3 : subdevice #3
  Sous-p�riph�rique #4 : subdevice #4
  Sous-p�riph�rique #5 : subdevice #5
  Sous-p�riph�rique #6 : subdevice #6
  Sous-p�riph�rique #7 : subdevice #7

boot/config.txt says :

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=off

...
gpio=25=op,dh
dtoverlay=hifiberry-dac

/etc/mopidy.conf is :

[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250
bcm24 = volume_up,active_low,250

...

[audio]
mixer_volume = 40
output = alsasink device=hw:sndrpihifiberry

Can someone guess what could be wrong ?
The pirate-audio board is not listed by aplay, so I guess the OS cant see the audio interface.
Thanks

sudo systemctl status mopidy :

* mopidy.service - Mopidy music server
     Loaded: loaded (/lib/systemd/system/mopidy.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-04-15 19:08:01 CEST; 3min 20s ago
    Process: 873 ExecStartPre=/bin/mkdir -p /var/cache/mopidy (code=exited, status=0/SUCCESS)
    Process: 877 ExecStartPre=/bin/chown mopidy:audio /var/cache/mopidy (code=exited, status=0/SUCCESS)
   Main PID: 878 (mopidy)
      Tasks: 16 (limit: 370)
        CPU: 7.664s
     CGroup: /system.slice/mopidy.service
             `-878 /usr/bin/python3 /usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf

avril 15 19:08:13 raspberrypi mopidy[878]: INFO     [IrisFrontend-7 (_actor_loop)] mopidy_iris.core Starting Iris 3.69.3
avril 15 19:08:14 raspberrypi mopidy[878]: INFO     [Audio-2 (_actor_loop)] mopidy.audio.actor Audio output set to "alsasink device=hw:sndrpihifiberry"
avril 15 19:08:14 raspberrypi mopidy[878]: INFO     [HttpFrontend-11 (_actor_loop)] mopidy.http.actor HTTP server running at [::ffff:0.0.0.0]:6680
avril 15 19:08:14 raspberrypi mopidy[878]: INFO     [MainThread] mopidy.commands Starting GLib mainloop
avril 15 19:09:55 raspberrypi mopidy[878]: ERROR    [MainThread] mopidy.audio.gst GStreamer error: Could not open audio device for playback.
avril 15 19:09:55 raspberrypi mopidy[878]: WARNING  [Audio-2 (_actor_loop)] mopidy.audio.actor Setting GStreamer state to GST_STATE_PLAYING failed
avril 15 19:09:55 raspberrypi mopidy[878]: WARNING  [Core-6 (_actor_loop)] mopidy.core.tracklist Track is not playable: local:track:test2.mp3
avril 15 19:10:57 raspberrypi mopidy[878]: ERROR    [MainThread] mopidy.audio.gst GStreamer error: Could not open audio device for playback.
avril 15 19:10:57 raspberrypi mopidy[878]: WARNING  [Audio-2 (_actor_loop)] mopidy.audio.actor Setting GStreamer state to GST_STATE_PLAYING failed
avril 15 19:10:57 raspberrypi mopidy[878]: WARNING  [Core-6 (_actor_loop)] mopidy.core.tracklist Track is not playable: local:track:test2.mp3

Fixed !

The pirate-audio does not work on Raspberry OS Wormbook,
…but it does on Bullseye !

Just FYI, boot/config.txt is not the correct location in Bookworm.
It’s boot/firmware/config.txt

I have a Pi Zero with bookworm on it, and a PirateAudio board sat on top working just fine. Like alphanumeric says, the location of the config.txt file has changed.

Ok I understand, I was not aware of this new file location.

So the install script should be updated here : pirate-audio/mopidy/install.sh at master · pimoroni/pirate-audio · GitHub