0
On a Raspberry Pi, the Ubuntu Desktop and Ubuntu MATE operating systems output audio to the 3.5mm audio port by default. For the audio to be carried over an HDMI cable, the audio output device needs to be manually selected every time the Pi boots. The issue persists even in the latest version of the Ubuntu flavored OS for the Pi, 22.04.