I was able to reproduce the issue without the X server running,
although it wasn't easy. Specifically, mpv-0.35.0p3 wouldn't trigger
it with --keep-open=no.
> Could you try to see if initializing the device without playing
> anything triggers the problem: stop sndiod and just open the device in
> full-duplex:
>
> cat <>/dev/audio1
Running:
# rcctl stop xenodm
xenodm(ok)
# rcctl stop sndiod
sndiod(ok)
# cat <>/dev/audio1
^C
#
printed nothing in the kernel message buffer, and playback was normal
once I restarted sndiod.
I'll start hunting through the code like you suggested.