Pi5 lr-mame audio unknown error 524

I just updated my cabinet to the latest Pi5 image with linux Denian Trixie baseline and the latest build from source of lr-mame. If I run standalone mame, the audio is fine but from EmulationStation/RetroArch when I launch with lr-mame core, there’s no audio and I get this error:

AudioManager Error - Unable to open SDL audio: ALSA: Couldn’t open audio device: Unknown error 524

I tried all variations listed in RA for audio drivers (ALSA, ALSATHREAD, SDL) and none work. ChatGPT says: this is a **common issue when moving to the new Debian “Trixie” base on a Raspberry Pi, because the sound stack and ALSA/pulseaudio defaults have changed. RetroPie/EmulationStation/lr-mame may no longer pick the correct output device, or SDL/RetroArch audio backends may fail.

But alas, the AI troubleshooting goes down a rabbit hole and gets me nowhere - go figure.

Anyone having this issue or have any insight?