Kodi Community Forum
[LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI (/showthread.php?tid=59877)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


- chris2922 - 2010-03-24

Ha! And i thought the problem was that the script is referencing old ALSA libraries.

So what do you suppose it would do if it was updated (at the top of the first script in the guide) to refernce the current ALSA versions?


- harryzimm - 2010-03-24

No idea. My guess is that it would probably break something... Im not certain though. Is there much to gain from it?


- chris2922 - 2010-03-25

I dont know what the improvements to the new ALSA package are. According to the guide though,

"The patched file what we will use (patch_nvhdmi.c) finally went into the kernel tree in the past days so with the next Alsa release and possibly next kernel releases will already include the most important parts."

So perhaps updating to the current release of ALSA would accomplish the same thing. In any case, it works now so im not going to mess!


- slide29 - 2010-03-27

I cant get the alsa-driver to compile with the modified patch_nvhdmi.c
it includes patch_hdmi.c which is missing for me

Quote:../../alsa-kernel/pci/hda/patch_nvhdmi.c:35:24: error: patch_hdmi.c: No such file or directory



- rbonon - 2010-03-29

slide29 Wrote:I cant get the alsa-driver to compile with the modified patch_nvhdmi.c
it includes patch_hdmi.c which is missing for me

Same for me. I am installing following XBMCBuntu guide, using Jaunty as I need sleep to work properly.

Compilation stops with and error when patch_hdmi.c is not found.

I did the very same thing some 3 weeks ago and the compilation went OK.


- rbonon - 2010-03-29

slide29 Wrote:I cant get the alsa-driver to compile with the modified patch_nvhdmi.c
it includes patch_hdmi.c which is missing for me

Found a workaroud.

Alsa_Update.sh will not work with the latest (march/2010) versions of patch_nvdmi.c, even when downloading the missing patch_hdmi.c from Alsa's git server.

The workaround is to edit Alsa_update.sh so that instead of it downloading the latest patch_nvhdmi.c, it fetchs the last "know-to-work" version of it, which is from 2009-11-13.

For doing that:

1. edit Alsa_Update.sh

2. Find this line:
Code:
wget "http://git.alsa-project.org/?p=alsa-kernel.git;a=blob_plain;f=sound/pci/hda/patch_nvhdmi.c;hb=HEAD" -O sound/pci/hda/patch_nvhdmi.c

3. Change it for this:
Code:
wget "http://git.alsa-project.org/?p=alsa-kernel.git;a=blob_plain;f=sound/pci/hda/patch_nvhdmi.c;h=6afdab09bab77ae9e81737b12f1f81d3d476b9ce" -O sound/pci/hda/patch_nvhdmi.c

Here is the history of changes from Alsa's git server:
http://git.alsa-project.org/?p=alsa-kernel.git;a=history;f=sound/pci/hda/patch_nvhdmi.c;h=3c10c0b149f4c682d683a6ae21ae837b3fe18f4d;hb=HEAD


- slide29 - 2010-03-29

thanks! going to check that when I got home tonight


- karmark - 2010-03-30

I have a problem...
when i start a movie it say "audio device not..." and i dont have the "hdmi" option in the system>audio setup. tryied diffrent custom settings but nothing works. I'v even tryied reinstalling ubuntu and xbmc but no luck.

But when i watch a movie i can change the sound settings in the audio/ subtitels setting from digital to analog and back again and it works with multichannel sound. I have to do that every time i start a movie.

Anybody knows what my problem is?

Please help me...


- rbonon - 2010-03-30

slide29 Wrote:thanks! going to check that when I got home tonight

I manage to compile it, but I could not get any IEC device, and so, no audio over HDMI. Some weeks ago, on the same machine, I had no issues at all. The last changes really broke something.

Anybody more knowledgeable could help us here?


- rbonon - 2010-03-31

After compilation I got no sound.

Then this worked for me: http://ubuntuforums.org/showthread.php?p=6589810

Follow the instructions to install, and then after it is installed, copy these two files

Code:
sudo apt-get install tofrodos

sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf

sudo dos2unix /etc/asound.conf

sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf

sudo dos2unix /usr/share/alsa/cards/HDA-Intel.conf

Multichannel HDMI working like a charm for me now.


- slide29 - 2010-04-01

the script is working fine with the old patch_nvhdmi.c for me, like it did a few months ago

lpcm/dts/dd, everythings working perfectly fine (thanks to you Big Grin )


Karmic + Alsa 1.0.22 = No Multichannel? - rbonon - 2010-04-05

While I was able to get Multi-Channel HDMI working under Jaunty, I tried under Karmic without success (need Karmic to get the latest XBMC SVN as the XBMC Jaunty repo does not work Sad).

Hardware specs:
- Mobo: Gigabyte GA-E7AUM-DS2H
- Using on-board NVidia 9400 card
- PC is connected to Onkyo TX SR606 via HDMI

Here is what I did so far:

- I installed Karmic from Minimal CD;

- Installed the rest of the needed packages for having standalone XBMC following XBMCBuntu wiki (http://wiki.xbmc.org/?title=XBMCbuntu), using XBMC SVN.

- Download installed and compiled Alsa 1.0.22 following this: http://ubuntuforums.org/showthread.php?p=6589810

- Used Alan's config file (not sure If I need them)
/etc/asound.conf
/usr/share/alsa/cards/HDA-Intel.conf

- After testing and not having sound, I downloaded/compiled/installed the latest ALSA snapshot (-s version on the script), as per instructions from Soundcheck at Ubuntuforums


What I am getting (more details can be found on the alsa-info.sh output on the link at the end of this post)

- cat /proc/asound/version reports ALSA loaded and the right version
- aplay -L and aplay -l report my card accordingly
- alsamixer report the controls right, and I unmutted all of the,
- speaker-test -Dhdmi -c6 runs fine, it finds the card, loops through the speakers, but no sound come out of them.
- I re-checked several times cable connections, volumes, etc, so I am sure no audio is coming over HDMI.

I am kind of a flying blind, blindly follow how-to instructions as I am very newbie to advanced sound config and the whole ALSA setup.

I would thank very much if any of you could help me with this? Please let me know If I failed to provide any other relevant info. I do not know if this is just a channel mapping issue or something more serious.

Here is alsa-info.sh output:
http://www.alsa-project.org/db/?f=7ce79d54dd353e437a42d5fdf4490e2c855b0418

PS: Alan, I happen to have the very same Mobo as you, could you point any extra tips/tricks on getting ALSA running on that particular mobo with Karmic? Thanks a lot.


- rbonon - 2010-04-06

rbonon Wrote:While I was able to get Multi-Channel HDMI working under Jaunty, I tried under Karmic without success (need Karmic to get the latest XBMC SVN as the XBMC Jaunty repo does not work Sad)

Solved!

I re-installed Karmic and XBMCbuntu from scracth. This time using the envy utility to make sure NVidia was properly installed. Upgraded ALSA to 1.0.22 using the AlsaUpgrade script, and finally got HDMI MultiChannel on Karmic working Nod


Stereo soundtracks - ClarkyCat - 2010-04-09

Hi,

I've got this all working very well on my ASUS AT3N7A-I based HTPC (thanks!).

I have a slight problem when playing videos with stereo soundtracks, like those from iPlayer (stereo AAC in this case):

My amp receives a 5.1 MPCM stream, with all but the main left and right channels silent, which sounds a bit strange due to lack of centre channel.

Is there something I can do to force 2-channel soundtracks to either be up-converted to 5.1, or to be sent to the amp as stereo PCM?

Cheers.


- rodercot - 2010-04-10

Hey All,

just an fyi, I am testing with element on my ion-330 zotac. I installed it updated to 195.36.15 from nvidia/ppa and updated to 1.0.22 alsa from the script and installed the latest driver snapshot as well. kernel is karmic (xubuntu-xfce 2.6.31.20)

This is with XBMC 9.11 pre-installed in Element. I have working Tru-hd and PCM downmix and 6 channel without any other patches or work and channel mapping seems OK. I do not use any aac files so I cannot test those. but all my .ts pcm encoded files are fine and my .mkv tru-hd files are being decoded as TRUHD in xbmc.

just thought I would post my findings.