My audio settings window (Ubuntu 16.04.6 LTS) does not show the HDMI audio output, thus I cannot select it. I only see the regular analogue stereo output, which works fine.
However, I know that HDMI output works, as I can reproduce audio from the monitor-speaker which I connected via the HDMI, using one of these commands:
speaker-test --channels 2 --rate 48000 --device hw:1,3
aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
The HDMI audio device is also always listed in the output of these commands:
aplay -l
lspci | grep -i audio
cat /proc/asound/cards
None of the solutions proposed in this very related question worked for me.
Can anybody help?