The audio via HDMI for Youtube.com videos (played via the chrome browser) was working on my raspberry pi 4/raspbian until I started experimenting with a microphone for zoom meetings. (This USB microphone seems to be working now.).
Now, however, I can no longer hear any audio when playing youtube videos.
We can hear sound via the HDMI with this command:
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
I also discovered that I can record and playback sound (via HDMI) with audacity and omxplayer. This works:
omxplayer -o hdmi hello.wav
I tried making HDMI the default:
amixer cset numid=3 2
This did not seem to help.
I was surprised I did not see my audio output. Should numbid=3 be the 'Mic Capture Volume'? I was expecting it to be the control for my HDMI audio.
amixer controls | sort
numid=1,iface=PCM,name='Capture Channel Map'
numid=2,iface=MIXER,name='Mic Capture Switch'
numid=3,iface=MIXER,name='Mic Capture Volume'
numid=4,iface=MIXER,name='Auto Gain Control'
numid=5,iface=CARD,name='Keep Interface'
uname -a says:
Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Can anyone help me play you tube vidoes (with audio!) again via my HDMI port?
Thank you
Siegfried