No sound over HDMI [solved]


38 posts   Page 1 of 2   1, 2
by cperrin88 » Sat Apr 21, 2012 3:08 pm
Hey,

I have sound over headphone plug but not over HDMI.

If I enable the alsa driver I have to force output via headphone plug and the hello_sound demo works only over headphone as well.

I don"t know how to search for the culprit.
Posts: 5
Joined: Thu Apr 19, 2012 8:49 pm
by dom » Sat Apr 21, 2012 3:26 pm
What is the display? HDMI or DVI? Is it a computer monitor?

My guess is its a computer monitor which reports its preferred mode is a DMT mode. DMT is only well defined in DVI mode, and DVI can't do audio.

Try hdmi_drive=2 in config.txt to force HDMI mode.

If not you could try

hdmi_group=1

hdmi_mode=4

to force a CEA mode.

If none of this works, post your EDID dump (with tvservice -d)
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by cperrin88 » Sat Apr 21, 2012 3:34 pm
It's a TV over HDMI. Should I still try the config settings?
Posts: 5
Joined: Thu Apr 19, 2012 8:49 pm
by dom » Sat Apr 21, 2012 3:56 pm
Try them, but if it doesn't work post your EDID dump.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by cperrin88 » Sat Apr 21, 2012 4:05 pm
It worked!! Yay!
Posts: 5
Joined: Thu Apr 19, 2012 8:49 pm
by dom » Sat Apr 21, 2012 4:09 pm
Which one?

The EDID could still be useful - we can see why it is choosing DMT mode.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by cperrin88 » Sat Apr 21, 2012 4:11 pm
Posts: 5
Joined: Thu Apr 19, 2012 8:49 pm
by dom » Sat Apr 21, 2012 4:26 pm
Well, we are behaving as expected. Your TV reports:

HDMI:EDID found preferred DMT detail timing format: 1360x768p @ 60 Hz (39)

So the preferred mode is 1360x768 DMT. And you can't guarantee a display will show anything when a DMT mode is driven in HDMI mode (some don't). So we drive it in DVI mode, which doesn't support audio.

I think manually adding "hdmi_drive=2" is the corrrect solution.

This might be suitable for the FAQ.

edid_main tv.edid

HDMI:EDID version 1.3, 1 extensions, screen size 115x65 cm

HDMI:EDID found monitor range descriptor tag 0xfd

HDMI:EDID monitor range: vertical is 58-62 Hz, horizontal is 31-70 kHz, max pixel clock is 160 MHz

HDMI:EDID found monitor name descriptor tag 0xfc

HDMI:EDID found preferred DMT detail timing format: 1360x768p @ 60 Hz (39)

HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)

HDMI:EDID established timing I/II bytes are A1 08 00

HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II

HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II

HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II

HDMI:EDID standard timings block x 8: 0x81C0 6140 4540 3140 0101 0101 0101 0101

HDMI:EDID found DMT format: code 85, 1280x720p @ 60 Hz (16:9) in standard timing 0

HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz (4:3) in standard timing 1

HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz (4:3) in standard timing 2

HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz (4:3) in standard timing 3

HDMI:EDID parsing v3 CEA extension 0

HDMI:EDID monitor support: underscan 1, audio 1, yuv444 1, yuv422 1

HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)

HDMI:EDID found unknown timing format: 1280x720p hblank 384 vblank 12

HDMI:EDID found CEA detail timing format: 720x480p @ 60 Hz (2)

HDMI:EDID found CEA detail timing format: 1920x1080p @ 60 Hz (16)

HDMI:EDID found unknown timing format: 1920x1080i hblank 720 vblank 23

HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz

HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz

HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz (native)

HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz

HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz

HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz

HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz

HDMI:EDID found CEA format: code 2, 720x480p @ 60Hz

HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz

HDMI:EDID found CEA format: code 32, 1920x1080p @ 24Hz

HDMI:EDID found CEA format: code 33, 1920x1080p @ 25Hz

HDMI:EDID found CEA format: code 34, 1920x1080p @ 30Hz

HDMI:EDID found CEA format: code 21, 1440x576i @ 50Hz

HDMI:EDID found CEA format: code 1, 640x480p @ 60Hz

HDMI:EDID found audio format 6 channels AC3, sample rate: 32|44|48 kHz, bitrate: 640 kbps

HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48|96|192 kHz, sample size: 16|20|24 bits

HDMI:EDID found HDMI VSDB length 5
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by davidm » Thu Apr 26, 2012 2:17 pm
I have the same problem. I'm using hello_audio.bin. It works fine for the analog output. Monitor is a new LG IPS226, with an HDMI input and headphone output. I've tried hdmi_drive=2, still no audio. Tried hdmi_group=1 and hdmi_mode=16 and that didn't work either. I've tested the audio through the monitor with a blu-ray player (using the same HDMI cable and everything) and it does work, so the monitor is capable of doing it!

EDID blob is at http://davidmonro.net/misc/edidblob

Where did you get your edid parser (wrote it yourself)? Might be a useful tool to make available...
Posts: 5
Joined: Wed Apr 25, 2012 10:26 am
by dom » Thu Apr 26, 2012 2:53 pm
@davidm

Yes, the edid parser will be made available when it's made a bit more self contained.

Your problem is different. The preferred mode is CEA 1080p60, and the monitor reports it supports audio, so I'd expect it to work.

Are you running with anything in config.txt? You shouldn't need anything in there.

I'll forward your EDID to our hdmi guy (rpi_newbie) to see if he has any ideas.

HDMI:EDID version 1.3, 1 extensions, screen size 48x27 cm

HDMI:EDID found monitor range descriptor tag 0xfd

HDMI:EDID monitor range: vertical is 56-61 Hz, horizontal is 30-83 kHz, max pixel clock is 150 MHz

HDMI:EDID found monitor name descriptor tag 0xfc

HDMI:EDID found monitor S/N descriptor tag 0xff

HDMI:EDID found preferred CEA detail timing format: 1920x1080p @ 60 Hz (16)

HDMI:EDID established timing I/II bytes are 21 08 00

HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II

HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II

HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II

HDMI:EDID standard timings block x 8: 0x7140 8180 8140 B300 0101 0101 0101 0101

HDMI:EDID unknown standard timing 1152x864 @ 60 Hz aspect ratio (4:3)

HDMI:EDID found DMT format: code 35, 1280x1024p @ 60 Hz (5:4) in standard timing 1

HDMI:EDID found DMT format: code 32, 1280x960p @ 60 Hz (4:3) in standard timing 2

HDMI:EDID found DMT format: code 57, 1680x1050p @ 60 Hz (16:10) in standard timing 3

HDMI:EDID parsing v3 CEA extension 0

HDMI:EDID monitor support: underscan 1, audio 1, yuv444 1, yuv422 1

HDMI:EDID found CEA detail timing format: 1920x1080p @ 60 Hz (16)

HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)

HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)

HDMI:EDID found CEA detail timing format: 720x480p @ 60 Hz (2)

HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz (native)

HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz

HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz

HDMI:EDID found CEA format: code 1, 640x480p @ 60Hz

HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz

HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz

HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz

HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz

HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz

HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz

HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16|20|24 bits

HDMI:EDID found HDMI VSDB length 5
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by davidm » Thu Apr 26, 2012 11:21 pm
@dom I've got disable_overscan=1 in there. So I've tried it as follows:

disable_overscan=1

------------------------------

disable_overscan=1

hdmi_drive=2

------------------------------

disable_overscan=1

hdmi_drive=2

hdmi_group=1

hdmi_mode=16

------------------------------

disable_overscan=1

hdmi_group=1

hdmi_mode=16

------------------------------

All of them behaved the same - sound on the analogue port but nothing over hdmi.
Posts: 5
Joined: Wed Apr 25, 2012 10:26 am
by dom » Fri Apr 27, 2012 12:11 am
@davidm just to confirm hello_audio defaults to analogue.
hello_audio 1
Will output over hdmi. Are you doing that?
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by davidm » Fri Apr 27, 2012 12:13 am
Doh! OK I'm an idiot, didn't realize I needed to feed it arguments. Hopefully I'll get to try it tonight when I get home (at work at the moment).
Posts: 5
Joined: Wed Apr 25, 2012 10:26 am
by dom » Fri Apr 27, 2012 12:43 am
Sorry - I should make it more obvious perhaps print out where the audio is being output.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by exfileme » Fri Apr 27, 2012 12:50 pm
I had the same problem: no sound over HDMI after connecting Raspberry Pi to my 21" HDTV (although my PlayStation 3 and Xbox 360 worked just fine). As stated above, I too had to edit the config.txt file and add the following line:

hdmi_drive=2

Config.txt is located in /boot and I edited it by loading up LXTerminal and using the following command line:

$ sudo nano /boot/config.txt

After adding the "hdmi_drive=2" line at the bottom, I typed ctrl-o to write the changes and ctrl-x to exit the nano text editor. I rebooted and the HDMI sound finally worked!
Posts: 1
Joined: Fri Apr 27, 2012 11:33 am
by bredman » Fri Apr 27, 2012 1:39 pm
This has been added to the troubleshooting wiki.

http://elinux.org/R-Pi_Trouble.....MI_monitor
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by celestrium » Sat Apr 28, 2012 6:05 am
Hi, I"m having issues with sound through my HDMI connected TV. I"m getting nothing! I"ve tried setting the config directly base on the posts I"ve seen here but nothing happens. I"ve run tvservice and the output log is attached
Posts: 1
Joined: Sat Apr 28, 2012 4:19 am
by davidm » Sat Apr 28, 2012 12:23 pm
dom said:


Sorry - I should make it more obvious perhaps print out where the audio is being output.



OK, it works fine when I pass the right arguments to the binary, and remove all hdmi options from config.txt. Sorry for the noise :)
Posts: 5
Joined: Wed Apr 25, 2012 10:26 am
by dom » Sat May 05, 2012 5:23 pm
davidm said:

Where did you get your edid parser (wrote it yourself)? Might be a useful tool to make available...


Just pushed edid parser to firmware github.

/opt/vc/bin/edidparser edid.dat

will descibe your edid and show what mode will be chosen.

If anyone thinks they are not getting the TV mode/resolution they expect by default then post your edid.dat, and describe what mode you think you should be getting and we'll investigate.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by wallarug » Mon May 14, 2012 8:36 am
If anyone thinks they are not getting the TV mode/resolution they expect by default then post your edid.dat, and describe what mode you think you should be getting and we'll investigate.[/quote]

I think I should be getting full HD (1080p) but I am not. I also don't have sound over HDMI. The TV keeps defulting to 1360x768 resolution and registers the Raspberry Pi as a DVI device. Can you please help. Where is edid.dat located, so that I can send it to you?
Youtube Channel: http://www.youtube.com/user/CMDenterprises
Project page: http://code.google.com/p/cmd-robot/
~~ Now selling Apps on the Google Play, WP and Apple App Stores. ~~
Posts: 429
Joined: Mon May 14, 2012 8:21 am
by wallarug » Sun May 27, 2012 3:19 am
wallarug wrote:If anyone thinks they are not getting the TV mode/resolution they expect by default then post your edid.dat, and describe what mode you think you should be getting and we'll investigate.


I think I should be getting full HD (1080p) but I am not. I also don't have sound over HDMI. The TV keeps defulting to 1360x768 resolution and registers the Raspberry Pi as a DVI device. Can you please help. Where is edid.dat located, so that I can send it to you?[/quote]

Dom, If you get this post can you please reply on the Element14 forum: http://www.element14.com/community/thre ... 5?tstart=0 .

I have tried to fix this problem but nothing is working. Can you please help.
Youtube Channel: http://www.youtube.com/user/CMDenterprises
Project page: http://code.google.com/p/cmd-robot/
~~ Now selling Apps on the Google Play, WP and Apple App Stores. ~~
Posts: 429
Joined: Mon May 14, 2012 8:21 am
by Nellisvan » Tue Jun 05, 2012 7:45 pm
exfileme wrote:I had the same problem: no sound over HDMI after connecting Raspberry Pi to my 21" HDTV (although my PlayStation 3 and Xbox 360 worked just fine). As stated above, I too had to edit the config.txt file and add the following line:

hdmi_drive=2

Config.txt is located in /boot and I edited it by loading up LXTerminal and using the following command line:

$ sudo nano /boot/config.txt

After adding the "hdmi_drive=2" line at the bottom, I typed ctrl-o to write the changes and ctrl-x to exit the nano text editor. I rebooted and the HDMI sound finally worked!


Thanks, this helped me.
Sony BX300, no sound over HDMI on a standard Debian install.
I had sound coming from the analogue jack, but no sound over HDMI, however, this fixed it for me.
Thanks again.
Posts: 3
Joined: Tue Jun 05, 2012 7:10 pm
Location: Durban, ZA
by hearnia_2k » Thu Jun 28, 2012 9:07 pm
This issue is still affecting me. I've tried quite a few recent builds, but only one fairly old build ever gave me the DTS and DD output. I'm not sure what version that would have been but I would have thought somewhere around 10990 and 11100 ish.

Since somehting like 11310 ish I have not had any passthrough audio. I guess this would be about the point that the values from the tvservice started being used, rather than just user configuration?

My EDID is available here:
https://www.dropbox.com/s/2abz89xvuocoags/edid.dmp

It's from a Sony STR-DH810 amp, which is plugged into a Sony KDL-40W4500.

I don't recall where I found it, however, I am now using a modified start.elf, and then I have a config.txt with the line:

hdmi_force_edid_audio=1

This solves the issue for me, and then the throughput works fine -this makes the tvservice think I can everything. Without this trick when I run the TVService it just says I have 8 channels of PCM audio.

I have tried the information about to see if I can get it to work the hdmi_mode and hdmi_group settings, but couldn't seem to get it to work, although I'm not certain I tried every combination.

Hopefully you can help me here.

Perhaps it would possible to make the force edid audio option something in the standard build as a workaround for people in my situation? Alternatively perhaps as others have suggested we could have it initally set based on the tvservice values, but then later make it possible to override these values?

Thanks!
Posts: 3
Joined: Thu Jun 28, 2012 8:58 pm
by hearnia_2k » Thu Jul 12, 2012 4:08 pm
Bump....because I can't PM, and not sure anyone, or specifically Dom is reading this - but if I'm not the only one suffering then I think this could add value to many people.
Posts: 3
Joined: Thu Jun 28, 2012 8:58 pm
by dom » Thu Jul 12, 2012 4:14 pm
hearnia_2k wrote:Bump....because I can't PM, and not sure anyone, or specifically Dom is reading this - but if I'm not the only one suffering then I think this could add value to many people.


What's the problem? The hdmi_force_edid_audio option has been supported in official start.elf on github for a coupld of weeks.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3987
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge