Trouble with sound over HDMI

Hello, I’ve been bashing my head on this problem for a while, and just can’t seem to get it figured out. I set up a Lakka installation on an older Foxconn nanopc (nT-a3700 to be specific) and everything has gone well (runs fantastically compared with a Windows install I had previously). However, I seem entirely unable to get any sound output over HDMI. I’ve followed the official guides, and tried every audio device listed (some of which successfully emit sound through the tiny speaker inside the PC), with no luck. What am I doing wrong? I’ve remembered to stop Retroarch while editing the config, tried every device listed from aplay -L, checked that all connections are physical secure… Furthermore, all this has interrupted my wife’s Chrono Trigger playthrough, which will certainly not be tolerated for much longer.

Any help will be appreciated!

Can you try to make a test with the latest nightly buildavailable ?

Can you paste somewhere the output of dmesg ?

Moreover, can you try to give the output :

 cat /proc/asound/cards 

0 [HDMI ]: HDA-Intel - HDA Intel HDMI HDA Intel HDMI at 0xf7134000 irq 46 1 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xf7130000 irq 44


amixer contents -c [B]0[/B] | grep -A2 HDMI

numid=1,iface=CARD,name=‘HDMI/DP,pcm=3 Jack’ ; type=BOOLEAN,access=r-------,values=1 : values=on numid=7,iface=CARD,name=‘HDMI/DP,pcm=7 Jack’ ; type=BOOLEAN,access=r-------,values=1 : values=off numid=13,iface=CARD,name=‘HDMI/DP,pcm=8 Jack’ ; type=BOOLEAN,access=r-------,values=1 : values=off

Thank you for your tests.

Hi Gouchi, thanks for the response! I’ll endeavor to provide what you requested.

dmesg: http://www.hastebin.com/halesixixi.coffee

/proc/asound/cards: http://www.hastebin.com/eciyeluyup.vhdl

amixer: http://www.hastebin.com/josarujara.vhdl

Not sure if I generated the logs correctly, please let me know if you need something more!

Thanks again.

I don’t see something wrong…

Can you try this ? But first stop retroarch before doing the test.

 systemctl stop retroarch

I tried that, but am accessing my Lakka machine via SSH, so I don’t think I should be surprised that I did not hear anything, correct? It did not give any errors when playing, at least.

Ok, tried that locally and still no sound or errors produced when manually playing a wav file via HDMI. I could again get it to play through the little internal speaker in the PC itself, but not over HDMI.

Could this be important? http://www.hastebin.com/fexuyaraha.coffee

Not really sure what “no speaker allocation for ELD” means. Significant or just a red herring…

According to this bugreport there is a workaround :

xrandr --output HDMI-0 --set audio on

But we can’t use it as we don’t use Xorg.

By the way, what is your bios version, it seems there are some updates for your device (Tech Support tab).

“Support new HD Audio Codec chipset and combine the new & old HD Audio Codec Table.”

Not sure it will fix your issue but it is related to audio.

Even if we are using kernel 4.x, try to add to boot parameters radeon.audio=1

Also “If aplay does not output any errors, but still no sound is heared, “reboot” the receiver, monitor or tv set. Since the HDMI interface executes a handshake on connection, it might have noticed before that there was no audio stream embedded, and disabled audio decoding. If you are using a standalone window manager, you may need to have sound playing while plugging in the HDMI cable.” Source

Hi

Sorry for reopening the post, but I have the same issue.

I just installed lakka stable x86_68 in a usb.

When I boot in a desktop pc, connected over hdmi to a television, I can’t get no sound.

I tried what u said, listed all my audio cards and try to play a wav file. I can get sound over the card in the motherboard with speakers connected: aplay -D plughw:PCH,0 sound.wav

but when I try to reproduce de file over HDMI, can’t get no sound, although I get no error. aplay -D plughw:NVidia,3 sound.wav

I tryed to change the audio frequency with the same result, and even to force hdmi on boot, adding to extlinux.con the following: hdmi_drive=2, but the sound is going by defect over hdmi so it has no effect.

EDIT: hotplugin or restarting tv does not change things

Do you have any idea? Thanks