Page 1 of 1
Audio Over HDMI Inconsistency
Posted: Tue Aug 14, 2012 11:10 pm
by AirborneUnicorn
Hello, I've been getting acquainted with my Raspberry Pi and Linux (Mostly through trial and error) but one thing I simply cannot figure out is my situation with the audio over HDMI. While messing with OMXPlayer, I discovered that audio works if I force it through HDMI, and the same with ./hello_audio 1. Under normal circumstances, audio seems to default to analog despite having changed the config.txt file to force HDMI. I have read as many forum posts on audio over HDMI issues as I could find, but none seem to help. Are there any settings I should look at on the HD TV I'm using? How do I make it default to audio over HDMI? Sorry if this has been posted many times over, but I can't fix this for the life of me. Any help is appreciated. Thanks.
Re: Audio Over HDMI Inconsistency
Posted: Tue Aug 14, 2012 11:28 pm
by dom
Neither omxplayer, nor hello_audio try to auto detect the audio destination. You need to choose on he command line.
ALSA is different, it does try to auto detect.
Re: Audio Over HDMI Inconsistency
Posted: Wed Aug 15, 2012 12:52 am
by AirborneUnicorn
Oh, alright. So, if ALSA is not auto detecting the correct thing, how can I fix this?
Re: Audio Over HDMI Inconsistency
Posted: Wed Aug 15, 2012 9:19 am
by dom
AirborneUnicorn wrote:Oh, alright. So, if ALSA is not auto detecting the correct thing, how can I fix this?
Des ALSA work when manually selecting HDMI output:
http://elinux.org/R-Pi_Troubleshooting#Sound
Re: Audio Over HDMI Inconsistency
Posted: Wed Aug 15, 2012 5:45 pm
by AirborneUnicorn
Yes, when manually forcing it. But un-commenting the line hdmi_drive=2 does not fix it.
Re: Audio Over HDMI Inconsistency
Posted: Thu Aug 16, 2012 4:16 am
by fredjam
Try this. Open a terminal and enter 'sudo amixer cset numid=3 2'
It is the 2 that is important here. 0=auto, 1=analog 2=hdmi
Re: Audio Over HDMI Inconsistency
Posted: Thu Aug 16, 2012 7:16 am
by AirborneUnicorn
Thank you! I'll try it in the morning, and report the results afterwords.