Ok, I did test this with a first-generation Pirate-Audio-Speaker HAT using my own project “Pi-Webradio”:
- Install the latest PiOS 64bit lite on my Pi-Zero-2W (version 2024-10-22)
git clone https://github.com/bablokb/pi-webradio.gitcd pi-webradiogit switch nextsudo tools/install myusernamesudo tools/install-pirate-audiosudo reboot
It just works, i.e. after the reboot I can run speaker-test or pi-webradio.py -p 5 (play channel 5) or mpg123 http://orf-live.ors-shoutcast.at/oe1-q2a.
I don’t think you have to repeat all of this. The only difference in my configuration compared to yours that I can see is that I turned standard audio off, i.e.
dtparam=audio=off
So that is the first thing you should try.