AirborneUnicorn
Posts: 4
Joined: Tue Aug 14, 2012 10:59 pm

Audio Over HDMI Inconsistency

Tue Aug 14, 2012 11:10 pm

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.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Audio Over HDMI Inconsistency

Tue Aug 14, 2012 11:28 pm

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.

AirborneUnicorn
Posts: 4
Joined: Tue Aug 14, 2012 10:59 pm

Re: Audio Over HDMI Inconsistency

Wed Aug 15, 2012 12:52 am

Oh, alright. So, if ALSA is not auto detecting the correct thing, how can I fix this?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Audio Over HDMI Inconsistency

Wed Aug 15, 2012 9:19 am

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

AirborneUnicorn
Posts: 4
Joined: Tue Aug 14, 2012 10:59 pm

Re: Audio Over HDMI Inconsistency

Wed Aug 15, 2012 5:45 pm

Yes, when manually forcing it. But un-commenting the line hdmi_drive=2 does not fix it.

fredjam
Posts: 83
Joined: Thu Jul 19, 2012 3:19 am
Location: London UK

Re: Audio Over HDMI Inconsistency

Thu Aug 16, 2012 4:16 am

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

AirborneUnicorn
Posts: 4
Joined: Tue Aug 14, 2012 10:59 pm

Re: Audio Over HDMI Inconsistency

Thu Aug 16, 2012 7:16 am

Thank you! I'll try it in the morning, and report the results afterwords.

Return to “Troubleshooting”