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


- manovel - 2010-04-11

Hi,
nice guide,
I've a problem tough.

I also have an integrated nvidia 9400, but at the moment a AV receiver with only iec958.

aplay -l lists 3 device: analog, digital iec958, digital hdmi.

My desire is to be able to use pulseaudio to have a 5.1 multichannel 48kHz and 16 bit audio using the digital iec958 output, but at the same time keep 2 channels reserved on the analog output to play music in other parts of the home (simultanously).
The realtek alc885 should be able to handle 7.1 + 2 channels...

My problem is how to configure that in pulseaudio, with channels numbers and 2 different sample rates.
also the .asoundrc config is problematic... any hint is appreciated!

someone has any idea? thank you!


- Dortamur - 2010-04-15

rodercot Wrote: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)
I was previously using SPDIF for sound, and just tried setting up HDMI audio using the latest ALSA. I went with the nvidia 195.36.15 drivers first. All the "tests" didn't give any errors, but I was only getting sound out of the front left & right. None of the centre/rear/sub tests were audible.

I downgraded to nvidia 185 and surround worked, including 192/24x6 tests.

Edit: My system is an ASRock ION 330 w. Karmic.


- sWORDs - 2010-04-15

Dortamur Wrote:I was previously using SPDIF for sound, and just tried setting up HDMI audio using the latest ALSA. I went with the nvidia 195.36.15 drivers first. All the "tests" didn't give any errors, but I was only getting sound out of the front left & right. None of the centre/rear/sub tests were audible.

I downgraded to nvidia 185 and surround worked, including 192/24x6 tests.

Edit: My system is an ASRock ION 330 w. Karmic.

I've got the exact same problem. 185 7.1 LPCM no problem, upgrade to 195 only front, downgrade to 185 and 7.1 works again. But haven't seen anyone that has 195 + ION + multichannel HDMI working. The only ones that have it working are either running stereo or have a gtx card.


- rodercot - 2010-04-15

Dortamur Wrote:I was previously using SPDIF for sound, and just tried setting up HDMI audio using the latest ALSA. I went with the nvidia 195.36.15 drivers first. All the "tests" didn't give any errors, but I was only getting sound out of the front left & right. None of the centre/rear/sub tests were audible.

I downgraded to nvidia 185 and surround worked, including 192/24x6 tests.

Edit: My system is an ASRock ION 330 w. Karmic.


Did you use the alsa script from the ubuntu site and did you use the latest driver snapshot so the process would have been

script -d
script -s
script -c
script -i

reboot.

rgds,

Dave


- blazini - 2010-04-17

rodercot Wrote: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.
Well maybe you can help me get this working on my Acer Revo then.

I used the Alsa script from the Ubuntu forums with the -s option, running the Nvidia 195.36.15 driver on Karmic

I have my Revo hooked up to the tv through HDMI, then running from the TV to my reciever with SPDIF. My cable box is hooked up the same way and I get DD to the reciever but only F+L stereo off the Revo.

I can't use the 180.xx drivers because they don't have the option for overscan compansation.

Code:
jmoney@jmoney-revo:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
jmoney@jmoney-revo:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, ALC662 rev1 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output

Code:
jmoney@jmoney-revo:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.
Compiled on Apr 17 2010 for kernel 2.6.31-20-generic (SMP).



Huh


- The Chef - 2010-04-27

Well, when I got to this step

Code:
sudo ./Alsa_upgrade-1.0.21_hd.sh -dpi

I get an error "Syntax error: newline unexpected"

I know absolutely nothing about Linux so I am clueless here.

Any help?


- The Chef - 2010-04-27

rbonon Wrote: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.

This worked perfectly for me on my Zotac MAG. Thank you so much for this. Dark Knight sounds crazy good now. Smile


- rbonon - 2010-04-27

Here is a very detailed step-by-step guide on installing XBMC on Linux and configuring HDMI Audio. You problem is related to using windows-formatted text files under Linux. The guides explains how to deal with that. Try it.

http://forum.xbmc.org/showthread.php?tid=71609


- poofyhairguy - 2010-04-28

The Chef Wrote:Well, when I got to this step

Code:
sudo ./Alsa_upgrade-1.0.21_hd.sh -dpi

I get an error "Syntax error: newline unexpected"

I know absolutely nothing about Linux so I am clueless here.

Any help?

Yeah, the Alsa 1.0.21 script is broken. Better go with 1.0.22.

http://www.scottcraftboats.com/downloads/linux/AlsaUpgrade-1.0.22.1-2.tar


- Tyler Durden - 2010-05-05

poofyhairguy Wrote:Yeah, the Alsa 1.0.21 script is broken. Better go with 1.0.22.

http://www.scottcraftboats.com/downloads/linux/AlsaUpgrade-1.0.22.1-2.tar

I am also getting this Syntax Error issue at this point. Can you please elaborate on using 1.0.22 instead, and what alterations do I need to make to the guide in post 1 to achieve this.

Thanks


- Tyler Durden - 2010-05-05

I managed to get passed the stage above by copying and pasting the pastebin.

However I have now go to here:

Quote:We will unmute the needed channels and store these settings:
Code:

/usr/bin/amixer -q -c 0 sset 'Master',0 unmute && /usr/bin/amixer -q -c 0 sset 'Master',0 100
/usr/bin/amixer -q -c 0 sset 'IEC958 Default PCM',0 unmute
/usr/bin/amixer -q -c 0 sset 'IEC958',0 unmute && /usr/bin/amixer -q -c 0 sset 'IEC958',1 unmute
sudo alsactl store

and I get an error "Invalid Card Number"

Can anyone help?


- ZyntaX - 2010-05-06

Great guide! Helped me plenty!

Until now that i made a fresh install of lucid lynx minimal.
Seems impossible to install old Nvidia drivers anymore, it keeps installing nvidia-current that is 195.36.15 =(
Anyone able to help me? Uninstalling and running NVIDIA-Linux-x86-185.18.36-pkg1.run doesn't give me any luck anymore.


- bitlisz - 2010-05-07

The end of the month and XBMC 10.05 is coming, Im planning to upgrade (or fresh install) to 10.04 LTS...
Any joy with the new Nvidia 195.36.24 drivers?
Still breaks Multi Channel LPCM output?


- IhlieDaily - 2010-05-09

hey, i would like to link another post/question of mine if thats ok

http://forum.xbmc.org/showpost.php?p=534152&postcount=13

Quote:Hey guys,

i am wonderung if someone got a, lets say more up-to-date solution for the HDMI Problem with Lucid and 10.04.

I am using an acer revo 3610 and after a fresh install there is until now no chance of having any sound with that system. i searched a lot, tried a lot and reinstalled often... My guess is that the guide from the first post is a bit out of date, e.g. that the default alsa version is 1.0.21. or am i wrong with that?

what is the problem with the 195ers drivers and HDMI sound? is it just to tell alsa which is the default sound output device? or is it still about rebuilding alsa? or is there something deeper not working?

One hope was this here: http://bbs.archlinux.org/viewtopic.php?pid=702657
but i think u can guess...

edit: whats about downgrading to nvidia 185 drivers? i didn't managed to get this working by now (maybe because i don't know how...)



- IhlieDaily - 2010-05-09

Hey, i would like to link another post/question of mine, if thats ok (i missed something :confused2Smile

Quote:Hey guys,

i am wonderung if someone got a, lets say more up-to-date solution for the HDMI Problem with Lucid and 10.04.

I am using an acer revo 3610 and after a fresh install there is until now no chance of having any sound with that system. i searched a lot, tried a lot and reinstalled often... My guess is that the guide from the first post is a bit out of date, e.g. that the default alsa version is 1.0.21. or am i wrong with that?

what is the problem with the 195ers drivers and HDMI sound? is it just to tell alsa which is the default sound output device? or is it still about rebuilding alsa? or is there something deeper not working?

One hope was this here: http://bbs.archlinux.org/viewtopic.php?pid=702657
but i think u can guess...

edit: whats about downgrading to nvidia 185 drivers? i didn't managed to get this working by now (maybe because i don't know how...)