I'm having problems getting sound to work on my RPi. I'm running raspbian, and I want the sound to play over HDMI.
I've tried omxplayer -o hdmi path/to/myfile.mp3
with the HDMI cable, and omxplayer path/to/myfile.mp3
over analogue. None of them works.
The system is updated and upgraded to the latest packages, I've also done modprobe snd_bcm2835
which as I understand enables audio?
Is sound supposed to work out of the box or do I have to get any packages or something?
amixer cset numid=3 2
, which should force audio be go through HDMI.