This no longer works quite right with the 2021.08-1 release. On Kodi 18.9 I had these options for the Audio Output Device:
ALSA: DEFAULT (BCM2835 ALSA BCM2835 ALSA)
ALSA BCM 2835 ALSA, BCM 2835 ALSA
PI: HDMI AND ANALOGUE
With the Kodi output set to PI: HDMI.
Now in Kodi 19.1, my stock audio output devices are as follows:
DEFAULT (VC4-HDMI MAI PCM VC4-HDMI-HIFI-0)
VC4-HDMI, MAI PCM VC4-HDMI-HIFI-0
VC4-HDMI, VIZ E472VLE on HDMI
And with the /etc/asound.conf file above (or with ~/.asoundrc), my options are as follows:
None of those, of course, send any audio out via HDMI. So it’s pretty clear that the asound.conf file is just overriding everything else. Not quite sure how to proceed here, although for the time being I’ve just deleted the asound.conf file. Were the PI outputs listed in 18.9 something to do with PulseAudio?