Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: lbalas on February 08, 2014, 10:42:10 PM

Title: Sound on HDMI on Linux?
Post by: lbalas on February 08, 2014, 10:42:10 PM
Hi,

I bought an A20 board and I tested the sound with mplayer. I heard the sound at 3.5 jack socket but I would get it on HDMI.
How can I forward it to HDMI? Is it possible?
Please help me!

Thanks in advance

Balas
Title: Re: Sound on HDMI on Linux?
Post by: Mouchon on February 09, 2014, 01:04:17 PM
Hi,

You can may be try to add

extraargs= hdmi.audio=EDID:0

in uEnv.txt placed on boot part

this worked form me.

Regards

Title: Re: Sound on HDMI on Linux?
Post by: lbalas on February 10, 2014, 12:42:28 PM
Hi,

thank your answer.

I use the official debian release 5.
I didn't find this file (uEnv.txt) on boot partition.
I created it but it didn't influence the sound output.

Do you use the same release?

thanks in advance:
Balas
Title: Re: Sound on HDMI on Linux?
Post by: JohnS on February 10, 2014, 08:44:13 PM
It's an optional file.

John
Title: Re: Sound on HDMI on Linux?
Post by: lbalas on February 11, 2014, 11:54:47 PM
Yes, it is an optional file. I understand. But it doesn't influence the sound output.

Can you please help me how I can take the sound to HDMI port? I have an A10 Lime board and  it plays the sound via HDMI port under Linux.
Did somebody meet with this problem?

Please help me!

Thanks in advance:

lbalas
Title: Re: Sound on HDMI on Linux?
Post by: Javier on March 12, 2014, 03:47:52 AM
Hi lbalas,

Mouchon's suggestion should add hdmi.audio=EDID:0 to the kernel command line.  Since it seems to be having no effect for you, you could look at /proc/cmdline on the running system to verify that Linux has received that string, and if not, try one of the other ways to make U-boot pass it to Linux.  There is some documentation at http://linux-sunxi.org/Kernel_arguments (http://linux-sunxi.org/Kernel_arguments).

That page also documents the hdmi.audio parameter itself, saying that you can specify simply hdmi.audio=1 to enable audio to HDMI unconditionally, so that might be worth a try.

Another thing to try is the latest official image, release 7, that was announced a few days ago. The link is on https://www.olimex.com/wiki/A20-OLinuXino-MICRO#Official_Images_from_OLIMEX (https://www.olimex.com/wiki/A20-OLinuXino-MICRO#Official_Images_from_OLIMEX).

Let us know how you get on...
Javier.