I've been messing around with switching my OS on my RPI 3B+ to aarch64 since the performance seems much better for 3d applications, however, I've been struggling to get audio over HDMI.
$this->bbcode_second_pass_code('', '# /boot/config.txt
dtparam=krnbt=on,audio=on
dtoverlay=vc4-kms-v3d
enable_uart=1
gpu_mem=256
max_usb_current=1
hdmi_drive=2')
Using snd_bcm2835.enable_compat_alsa=1 in /boot/boot.txt cmdline, which I believe is default, results in no audio at all, both over HDMI and the headphone port.
However, if I use the following below..
$this->bbcode_second_pass_code('', 'snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0')
I CAN get audio out of the headphone jack using..
$this->bbcode_second_pass_code('', 'aplay -D sysdefault:CARD=Headphones /usr/share/sounds/alsa/Front_Center.wav')
But using..
$this->bbcode_second_pass_code('', 'aplay -D sysdefault:CARD=HDMI /usr/share/sounds/alsa/Front_Center.wav')
remains silent. I'm at a loss here, so if anyone has any ideas or suggestions I'd appreciate it.