No sound over HDMI [solved]


68 posts   Page 2 of 3   1, 2, 3
by hearnia_2k » Fri Jul 13, 2012 7:42 pm
Ah, I had not realized it had already become official! In that case, no problem. Although, I would still be interested to know what you think of my edid dump, since I am having to use the audio force option? I mean, my device clearly does DD and DTS, so why is it only showing 8 ch audio in TV Service without the extra option?
Posts: 3
Joined: Thu Jun 28, 2012 8:58 pm
by PaulCheffus » Fri Jul 13, 2012 8:35 pm
dom wrote:
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.


Hi

Though it didn't fix my sound. I've tried the troubleshooting page and hello_audio.bin 1 works but aplay is silent unless I send it to the Jack socket. I can get sound in Scratch over HDMI by doing this
viewtopic.php?f=26&t=5903&p=112695&hilit=Sound+scratch#p82680

I really would like to get sound over HDMI working but nothing seems to cure it.

Cheers

Paul
Procrastination - The Thief of Time.
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK
by pholy » Sun Jul 15, 2012 1:49 am
dom wrote:
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.


Unfortunately, Dom, I can't find where it is documented in the Wiki - not in Troubleshooting, nor in the config.txt - those are the two places I go to look first. It may get mentioned somewhere in the fora, but it's pretty hard to read that whole thing.

And I don't have alsa .wav outout over hdmi right now, although it used to work some days ago... The hello_audio works both ways, and alsa aplay outputs to the analog jack. I'm mystified, because I haven't seen any changes to the alsa driver recently, and we never know what changes in start.elf files - which I update fairly regularly.
Posts: 43
Joined: Sun Jun 24, 2012 11:29 pm
by strawberry » Fri Dec 28, 2012 10:20 am
I suddenly can't get audio to work over HDMI anymore :?:
It used to work perfect for months and since about 1 week it doesn't work anymore :?
TV type is a JVC LT-32A70BU.
I've tried everything mentioned above (hdmi_drive=2,...) but nothing helps.
I've used an SD card with Raspbian (with omxplayer -o hdmi) and another with Raspbmc image in both cases no sound over HDMI.
I've tried on another TV and there is works perfect :roll:
Replaced HDMI cable but still no sound...
I don't think the TV is in DVI mode because then it's supposed to take sound from the EXT3 analog input and it doesn't do that either.

Anyone has another thing I could try?
Posts: 29
Joined: Tue Oct 30, 2012 10:44 am
by flassiman » Sat Dec 29, 2012 12:35 pm
Having the same HDMI sound problem after trying all the config options posted.
I have successfully shown that the pi can drive HDMI in a test using /opt/vc/src/hello_pi/hello_audio/hello_audio.bin 1 which works. But no other sound seems to work with HDMI, incuding:
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
Analogue tests work fine.
Target device is a TV rather than monitor.
I have tried to attach the EDID dump in case that helps but all extensions (including no extension) are rejected?

Thanks
Posts: 3
Joined: Sat Dec 29, 2012 12:10 pm
by dom » Sat Dec 29, 2012 1:09 pm
flassiman wrote:Having the same HDMI sound problem after trying all the config options posted.
I have successfully shown that the pi can drive HDMI in a test using /opt/vc/src/hello_pi/hello_audio/hello_audio.bin 1 which works. But no other sound seems to work with HDMI, incuding:
sudo aplay /usr/share/sounds/alsa/Front_Center.wav
Analogue tests work fine.
Target device is a TV rather than monitor.
I have tried to attach the EDID dump in case that helps but all extensions (including no extension) are rejected?

Thanks

You've tried:
Code: Select all
sudo amixer cset numid=3 2

http://elinux.org/R-Pi_Troubleshooting# ... MI_monitor

before running aplay?
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4836
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by flassiman » Sat Dec 29, 2012 1:49 pm
Apologies I should have added that too - I did set
sudo amixer cset numid=3 2 prior to trying it
Posts: 3
Joined: Sat Dec 29, 2012 12:10 pm
by strawberry » Sun Dec 30, 2012 5:56 pm
my EDID file:
HDMI:EDID version 1.3, 1 extensions, screen size 22x9 cm
HDMI:EDID features - videodef 0x80 !standby !suspend active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is FPDEUFT2
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 49-61 Hz, horizontal is 15-46 kHz, max pixel clock is 80 MHz
HDMI:EDID monitor range does not support GTF
HDMI:EDID found preferred CEA detail timing format: 1920x1080i @ 50 Hz (20)
HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
HDMI:EDID established timing I/II bytes are 00 00 00
HDMI:EDID standard timings block x 8: 0x0101 0101 0101 0101 0101 0101 0101 0101
HDMI:EDID parsing v3 CEA extension 0
HDMI:EDID monitor support - underscan IT formats:no, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:2
HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)
HDMI:EDID found CEA detail timing format: 720x576p @ 50 Hz (17)
HDMI:EDID found CEA detail timing format: 720x576p @ 50 Hz (17)
HDMI:EDID found CEA detail timing format: 720x480p @ 60 Hz (2)
HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz (native)
HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz
HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
HDMI:EDID found CEA format: code 17, 720x576p @ 50Hz
HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
HDMI:EDID found CEA format: code 1, 640x480p @ 60Hz
HDMI:EDID found CEA format: code 6, 1440x480i @ 60Hz
HDMI:EDID found CEA format: code 7, 1440x480i @ 60Hz
HDMI:EDID found CEA format: code 21, 1440x576i @ 50Hz
HDMI:EDID found CEA format: code 22, 1440x576i @ 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 6
HDMI:EDID HDMI VSDB has physical address 1.0.0.0
HDMI:EDID HDMI VSDB supports AI:no, dual link DVI:no
HDMI:EDID HDMI VSDB deep colour support - 48-bit:no 36-bit:no 30-bit:no DC_yuv444:no
HDMI:EDID HDMI VSDB has no latency information
HDMI:EDID adding mandatory support for DMT (4) 640x480p @ 60Hz
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID best score mode initialised to CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 18432)
HDMI:EDID best score mode is now CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 61864)
HDMI:EDID best score mode is now CEA (2) 720x480p @ 60 Hz with pixel clock 27 MHz (score 2066472)
HDMI:EDID CEA mode (3) 720x480p @ 60 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID best score mode is now CEA (4) 1280x720p @ 60 Hz with pixel clock 74 MHz (score 3635592)
HDMI:EDID DMT mode (4) 640x480p @ 60 Hz with pixel clock 25 MHz has a score of 18432
HDMI:EDID best score mode is now CEA (5) 1920x1080i @ 60 Hz with pixel clock 74MHz (score 4773832)
HDMI:EDID CEA mode (6) 1440x480i @ 60 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (7) 1440x480i @ 60 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (17) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 3066472
HDMI:EDID CEA mode (18) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 66472
HDMI:EDID CEA mode (19) 1280x720p @ 50 Hz with pixel clock 74 MHz has a score of 4117160
HDMI:EDID best score mode is now CEA (20) 1920x1080i @ 50 Hz with pixel clock 74MHz (score 5336040)
HDMI:EDID CEA mode (21) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (22) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID preferred mode remained as CEA (20) 1920x1080i @ 50 Hz with pixel clock 74 MHz
HDMI:EDID has HDMI support and audio support
edid_parser exited with code 0

Seems like the TV supports audio still nothing coming out of the speakers :evil:
Posts: 29
Joined: Tue Oct 30, 2012 10:44 am
by flassiman » Mon Dec 31, 2012 8:49 am
I have further tried hdmi_force_hotplug=1 from another thread in same forum , no change to HDMI sound unfortunately.

Out of all the config options tried I currently just have hdmi_drive=2 as an added line to default config.txt

My EDID is here if anyone can offer advice:

HDMI:EDID version 1.3, 1 extensions, screen size 160x90 cm
HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is nativ
e; does not support GTF
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is SONY_TV
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 48-62 Hz, horizontal is 14-48 kHz, max pixel clock is 90 MHz
HDMI:EDID monitor range does not support GTF
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 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: 0x0101 0101 0101 0101 0101 0101 0101 0101
HDMI:EDID parsing v3 CEA extension 0
HDMI:EDID monitor support - underscan IT formats:no, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:0
HDMI:EDID found CEA detail timing format: 1920x1080i @ 50 Hz (20)
HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)
HDMI:EDID found CEA detail timing format: 720x576p @ 50 Hz (17)
HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz
HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz
HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
HDMI:EDID found CEA format: code 17, 720x576p @ 50Hz
HDMI:EDID found CEA format: code 22, 1440x576i @ 50Hz
HDMI:EDID found CEA format: code 21, 1440x576i @ 50Hz
HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
HDMI:EDID found CEA format: code 2, 720x480p @ 60Hz
HDMI:EDID found CEA format: code 7, 1440x480i @ 60Hz
HDMI:EDID found CEA format: code 6, 1440x480i @ 60Hz
HDMI:EDID found CEA format: code 1, 640x480p @ 60Hz
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 6
HDMI:EDID HDMI VSDB has physical address 3.0.0.0
HDMI:EDID HDMI VSDB supports AI:yes, dual link DVI:no
HDMI:EDID HDMI VSDB deep colour support - 48-bit:no 36-bit:no 30-bit:no DC_yuv444:no
HDMI:EDID HDMI VSDB has no latency information
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID best score mode initialised to DMT (4) 640x480p @ 60 Hz with pixel clock 25 MHz (score 18432)
HDMI:EDID best score mode is now CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 43432)
HDMI:EDID best score mode is now CEA (2) 720x480p @ 60 Hz with pixel clock 27 MHz (score 45736)
HDMI:EDID CEA mode (3) 720x480p @ 60 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID best score mode is now CEA (4) 1280x720p @ 60 Hz with pixel clock 74 MHz (score 4580296)
HDMI:EDID DMT mode (4) 640x480p @ 60 Hz with pixel clock 25 MHz has a score of 36864
HDMI:EDID CEA mode (5) 1920x1080i @ 60 Hz with pixel clock 74 MHz has a score of 3649416
HDMI:EDID CEA mode (6) 1440x480i @ 60 Hz with pixel clock 27 MHz has a score of 35368
HDMI:EDID CEA mode (7) 1440x480i @ 60 Hz with pixel clock 27 MHz has a score of 35368
HDMI:EDID DMT mode (9) 800x600p @ 60 Hz with pixel clock 40 MHz has a score of 57600
HDMI:EDID DMT mode (16) 1024x768p @ 60 Hz with pixel clock 65 MHz has a score of 94370
HDMI:EDID CEA mode (17) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 2045736
HDMI:EDID CEA mode (18) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (19) 1280x720p @ 50 Hz with pixel clock 74 MHz has a score of 3071080
HDMI:EDID CEA mode (20) 1920x1080i @ 50 Hz with pixel clock 74 MHz has a score of 4128680
HDMI:EDID CEA mode (21) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 35368
HDMI:EDID CEA mode (22) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 35368
HDMI:EDID best score mode is now DMT (39) 1360x768p @ 60 Hz with pixel clock 85 MHz (score 5125336)
HDMI:EDID preferred mode remained as DMT (39) 1360x768p @ 60 Hz with pixel clock 85 MHz
HDMI:EDID has HDMI support and audio support
edid_parser exited with code 0
Posts: 3
Joined: Sat Dec 29, 2012 12:10 pm
by allend66 » Fri Jan 18, 2013 7:47 am
great!
to confirm, I got mine to work by adding:

hdmi_drive=2

to the config.txt (sudo nano /boot/config.txt). thanks all!
Posts: 3
Joined: Tue Jan 15, 2013 8:10 pm
by Raspberrypiglitch » Sat Mar 23, 2013 1:54 am
I have the same problem and what do you mean config.txt

Do I write that in terminal
Posts: 4
Joined: Sat Mar 23, 2013 1:47 am
by svennefenne » Sat Jun 22, 2013 10:46 pm
Hey guys!

First post here...

After having lots of problems getting sound to work via HDMI I finally found the solution for me atleast. Big thanks to everyone who contributed to this thread!

The trick was to force HDMI with the following command:
Code: Select all
sudo amixer cset numid=3 2
The 2 can be changed to:
0 - Auto
1 - Headphone jack
2 - HDMI

I have also edited the /boot/config.txt.
Code: Select all
sudo nano /boot/config.txt
And then add or uncomment the following:
hdmi_drive=2
hdmi_group=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1

CTRL+O to save
CTRL+X to exit
And to reboot:
Code: Select all
sudo shutdown -r now
Thanks for all the help! =)
Posts: 1
Joined: Tue Jun 11, 2013 9:58 pm
by strawberry » Sun Jun 23, 2013 8:06 am
I've also found a solution to my audio problem. It turned out that there was a problem with the software in the TV. I had to pull the power plug to reset the TV. Then audio started working again :roll:
Posts: 29
Joined: Tue Oct 30, 2012 10:44 am
by analog_guy » Wed Mar 25, 2015 6:37 pm
Just got new pi model b and going through demos.
Couldn't get audio on hdmi .
I fixed the problem by by editing config file - removed the # in front of the hdmi_drive=2.
Thing not mentioned - had to re-boot the pi.
New at this linux, but brings back memories of ms-dos commands!
Posts: 2
Joined: Wed Mar 25, 2015 6:21 pm
by Claudio Amoretti » Fri Apr 03, 2015 6:47 am
I've the same problem, just bought Rapsberry Pi 2 model B and no sound using HDMI. I've tried normal tricks as using /boot/config.txt to force use of audio via hdmi, but no way. The monitor I'm using is a LG TV.
Below the parsing of the dump obtained using the tvservice command
Thanks in advance for your help

Enabling fuzzy format match...
Parsing ediddump...
HDMI:EDID version 1.3, 1 extensions, screen size 115x65 cm
HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 58-62 Hz, horizontal is 31-70 kHz, max pixel clock is 160 MHz
HDMI:EDID monitor range does not support GTF
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is LG_TV
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 IT formats:yes, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:1
HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
HDMI:EDID failed to find a matching detail format for 1280x720p hfp:64 hs:128 hbp:192 vfp:3 vs:5 vbp:4 pixel clock:74 MHz
HDMI:EDID calculated refresh rate is 61 Hz
HDMI:EDID guessing the format to be 1280x720p @60 Hz
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 detail timing format: 1920x1080p @ 60 Hz (16)
HDMI:EDID found CEA detail timing format: 1920x1080i @ 50 Hz (20)
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
HDMI:EDID HDMI VSDB has physical address 1.0.0.0
HDMI:EDID HDMI VSDB has no extension fields
HDMI:EDID adding mandatory support for CEA (17) 720x576p @ 50Hz
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID best score mode initialised to DMT (4) 640x480p @ 60 Hz with pixel clock 25 MHz (score 0)
HDMI:EDID best score mode is now CEA (1) 640x480p @ 60 Hz with pixel clock 25 MHz (score 43432)
HDMI:EDID best score mode is now CEA (2) 720x480p @ 60 Hz with pixel clock 27 MHz (score 3045736)
HDMI:EDID CEA mode (3) 720x480p @ 60 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID best score mode is now CEA (4) 1280x720p @ 60 Hz with pixel clock 74 MHz (score 4607944)
HDMI:EDID DMT mode (4) 640x480p @ 60 Hz with pixel clock 25 MHz has a score of 61864
HDMI:EDID CEA mode (5) 1920x1080i @ 60 Hz with pixel clock 74 MHz has a score of 4149416
HDMI:EDID DMT mode (9) 800x600p @ 60 Hz with pixel clock 40 MHz has a score of 82600
HDMI:EDID CEA mode (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz has a score of 2649416
HDMI:EDID DMT mode (16) 1024x768p @ 60 Hz with pixel clock 65 MHz has a score of 119370
HDMI:EDID CEA mode (17) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (18) 720x576p @ 50 Hz with pixel clock 27 MHz has a score of 45736
HDMI:EDID CEA mode (19) 1280x720p @ 50 Hz with pixel clock 74 MHz has a score of 71080
HDMI:EDID CEA mode (20) 1920x1080i @ 50 Hz with pixel clock 74 MHz has a score of 2128680
HDMI:EDID CEA mode (21) 1440x576i @ 50 Hz with pixel clock 27 MHz has a score of 35368
HDMI:EDID CEA mode (31) 1920x1080p @ 50 Hz with pixel clock 148 MHz has a score of 128680
HDMI:EDID CEA mode (32) 1920x1080p @ 24 Hz with pixel clock 74 MHz has a score of 74766
HDMI:EDID CEA mode (33) 1920x1080p @ 25 Hz with pixel clock 74 MHz has a score of 76840
HDMI:EDID CEA mode (34) 1920x1080p @ 30 Hz with pixel clock 74 MHz has a score of 87208
HDMI:EDID best score mode is now DMT (39) 1360x768p @ 60 Hz with pixel clock 85 MHz (score 5188004)
HDMI:EDID DMT mode (85) 1280x720p @ 60 Hz with pixel clock 74 MHz has a score of 135592
HDMI:EDID preferred mode remained as DMT (39) 1360x768p @ 60 Hz with pixel clock 85 MHz
HDMI:EDID has HDMI support and audio support
edid_parser exited with code 0
Posts: 2
Joined: Thu Apr 02, 2015 8:56 pm
by strawberry » Fri Apr 03, 2015 4:10 pm
Something you can try:
Disconnect the power from your TV for a few minutes and the plug it back in and try again.
This solved a sound over HDMI problem for me a while ago, the problem was the TV not the configuration of the Raspberry. After a power reset it worked again.
Posts: 29
Joined: Tue Oct 30, 2012 10:44 am
by Claudio Amoretti » Sat Apr 04, 2015 9:23 am
I've tried. In my case It doesn't work. :(
Posts: 2
Joined: Thu Apr 02, 2015 8:56 pm
by Yesil » Tue Oct 27, 2015 8:17 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!

Solution above helped me. Thanx!!!
Posts: 1
Joined: Tue Oct 27, 2015 8:14 pm
by kburgessa » Wed Oct 28, 2015 7:11 pm
Hi Yesil, Your suggestion solved my lack of HDMI sound. Thank you
Posts: 1
Joined: Sat Jun 02, 2012 2:22 pm
by bbc0 » Sun Dec 27, 2015 2:25 am
I am having a similar problem. I can't get HDMI sound with Rasbian Jessie.
When I edit config.txt and add the line hdmi_drive=2 I do then get sound, but then the screen is too big for my TV. There seems to be interaction between the hdmi video and the sound. It is the same if I remove the comment # from the #hdmi_drive=2. The sound works but the picture is too big. I don't think I had this problem with plain old Raspian wheezy.
Any ideas?
Any help would be appreciated.
Posts: 8
Joined: Fri May 02, 2014 7:05 am
by DougieLawson » Sun Dec 27, 2015 9:30 am
Get it running the display how you like it (no sound) and run these commands

tvservice -m CEA
tvservice -m DMT
tvservice -s

Then set it up for sound and do the same again. You should be able to find a group/mode setting that works with hdmi_drive=2

Once you've found group/mode that works add
Code: Select all
hdmi_group=x
hdmi_mode=y
hdmi_drive=2
to your config.txt, reboot and grab a beer to celebrate a job well done.

Details here: https://www.raspberrypi.org/documentati ... fig-txt.md
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
RPi owner since '12.
Twitter: @DougieLawson

2B, B+, A+, 5Bs, zero, 3B

Please post ALL technical questions on the forum.Do not send private messages.
User avatar
Posts: 22299
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
by Shazzam12z » Fri Feb 05, 2016 11:07 pm
Ok go ahead and call me a newbie but i just got my pi the other day and I have no idea what to put into the terminal. I tried the first post and it didn't work. I am using and hdmi cable to a TV; so what should I put in?
Posts: 1
Joined: Fri Feb 05, 2016 10:59 pm
by dmason » Sun Mar 13, 2016 5:05 am
Just entered the Pi world via a couple of B2s. I am trying to use HDMI via a Pioneer home theatre box with OpenElec. If I connect the Pi directly to the Benq projector, sound comes through the HDMI fine, but if I run it via the Pioneer there is no sound via the HDMI (but a Sony BluRay player, an Apple TV, and a WII have no problem). I presume it is because the Pi can't figure out which sound to use, and I don't see any way to tell it.

Here are diffs of the EDID parses:
Code: Select all
2c2
< Parsing benq-direct.edid...
---
> Parsing benq-pioneer.edid...
35,38c35,37
< 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: 1920x1080i @ 50 Hz (20)
< HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
---
> HDMI:EDID found CEA detail timing format: 1440x576i @ 50 Hz (21)
> HDMI:EDID found CEA detail timing format: 1440x480i @ 60 Hz (6)
> HDMI:EDID found CEA detail timing format: 1920x1080p @ 50 Hz (31)
54c53,60
< HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16|20|24 bits
---
> HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48|88|96|176|192 kHz, sample size: 16|20|24 bits
> HDMI:EDID found audio format 8 channels PCM, sample rate: 32|44|48|88|96|176|192 kHz, sample size: 16|20|24 bits
> HDMI:EDID found audio format 6 channels AC3, sample rate: 32|44|48 kHz, bitrate: 640 kbps
> HDMI:EDID found audio format 7 channels DTS, sample rate: 44|48 kHz, bitrate: 1536 kbps
> HDMI:EDID found audio format 6 channels One Bit Audio, sample rate: 44 kHz, codec define: 0
> HDMI:EDID found audio format 8 channels Dobly Digital+, sample rate: 44|48 kHz, codec define: 0
> HDMI:EDID found audio format 8 channels DTS-HD, sample rate: 32|44|48|88|96|176|192 kHz, codec define: 1
> HDMI:EDID found audio format 8 channels MLP, sample rate: 32|44|48|88|96|176|192 kHz, codec define: 0
56,57c62,63
< HDMI:EDID HDMI VSDB has physical address 1.0.0.0
< HDMI:EDID HDMI VSDB supports AI:no, dual link DVI:no
---
> HDMI:EDID HDMI VSDB has physical address 1.2.0.0
> HDMI:EDID HDMI VSDB supports AI:yes, dual link DVI:no


I have the following setup in config.txt:
Code: Select all
# hdmi_force_hotplug=1
hdmi_force_edid_audio=1
hdmi_drive=2
#  hdmi_ignore_cec_init=1

I've tried most permutations of these to no effect.

Thanks for any help, ../Dave
Posts: 2
Joined: Sun Mar 13, 2016 4:44 am
by razpi » Fri Apr 01, 2016 10:11 pm
Hi, my sound on my pi2 works. Its just i grt cutting off noise afrer every few seconds. I am new to this. Please give me dome detailed info if possible. Thanks in advance
Posts: 1
Joined: Mon Mar 21, 2016 4:07 pm
by dambodd » Fri Jul 01, 2016 11:31 am
tried it all and it didn't solve the same problem as you all have.
long story short, this solved my problem:
add this line: "dtparam=audio=on". to bottom of the /boot/config.txt file.
reboot. done.

BTW on README file it says ALSA is OFF by default (no clue why).

now my HDMI audio is working nice.
hopes this solve the problem to you .

thanks
Posts: 1
Joined: Fri Jul 01, 2016 11:25 am