No sound over HDMI [solved]


38 posts   Page 2 of 2   1, 2
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: 372
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: 42
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: 16
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: 4067
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: 16
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: 16
Joined: Tue Oct 30, 2012 10:44 am