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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44


- alanwww1 - 2009-11-07 22:44

durandal2401 Wrote:when doing this step:
Code:
/usr/bin/amixer -q -c 0 sset 'Master',0 unmute && /usr/bin/amixer -q -c 0 sset 'Master',0 100
I got:
sudo alsactl storeamixer: Unable to find simple control 'Master',0

when trying speaker-test -Dhdmi -c6 -r192000 -FS32_LE
I only get sound from the front left and right speakers

Is this enough info?
You mean ALL channels sound from left or right or when speaker test tries to play sound from eg. rear left you don't hear any sound ?

Are you sure your AV receiver can do multichannel lpcm. What type of receiver do you have ?

From your info it seems to be everything ok. Something should be with your receiver.


- durandal2401 - 2009-11-08 00:20

Receiver is a pioneer vsx919, I got multichannel working before in windows.

On front left and right I hear something, on the other channels nothing.

Meanwhile I tried another setup, XBMC Live 9.04.1 with nvidia drivers 185 and then your script, now all channels work...

Anything different with XBMC 9.11 or ubuntu 9.10 that prevents this from working?


- michal - 2009-11-08 00:23

By this time next week my Pioneer VSX-919AH will arrive and I may encounter the same problem.

I hope that by that time I can use my G210 with HDMI audio but I'm not holding my breath. I've gone back to a 8600GS connected to the motherboard S/PDIF connector.

EDIT: Oh, and the receiver can DEFINITELY handle LPCM on all 7.1 channels as per this entry in the manual.


- alanwww1 - 2009-11-08 00:34

durandal2401 Wrote:Receiver is a pioneer vsx919, I got multichannel working before in windows.

On front left and right I hear something, on the other channels nothing.

Meanwhile I tried another setup, XBMC Live 9.04.1 with nvidia drivers 185 and then your script, now all channels work...

Anything different with XBMC 9.11 or ubuntu 9.10 that prevents this from working?

My guide was based on Ubuntu Jaunty. I have to investigate, what's the difference why it is not working for you.


- lloydsmart - 2009-11-08 13:07

Hi, I'm on Karmic 9.10 and I tried to follow this guide, but it didn't work for me.

I'm using an ASUS M3N78-PRO motherboard, which features the Nvidia 8300 chipset for onboard HDMI supporting AC3 and DTS passthrough, and up to 7.1 LPCM (but not bitstreaming the new Dolby THD or DTS HD-MA). My computer is connected to my Onkyo 705 receiver/amp via HDMI. This amp supports all the formats you could throw at it. It even does the HD bitstreaming, but the motherboard doesn't, so that's beside the point.

What I'd like to achieve is a situation where I can just launch XBMC and have everything play properly. My library is a mixture of stereo soundtracks (AAC, MP3, etc.) and 5.1 soundtracks (AC3 and DTS). At the moment, I seem to have broken sound on my setup alltogether, but before I started this the following was working:

I had all my OS sounds (zips and whooshes) working in Ubuntu, and sound in other applications worked fine. This was all through PulseAudio, and it was over HDMI, in stereo. When I loaded up XBMC, I could play all my stereo sources just fine, and the interface sounds worked great, but I couldn't play any DTS or AC3 tracks. I got the "cannot initialize audio device" message.

But... I was able to get AC3 and DTS bitstreamig (so the lights came on on my amp) like this:
  1. Go into System -> Preferences -> Sound in Ubuntu, click on the "Hardware" tab.
  2. Select the second device, which is labelled "Internal Audio. 1 Output. Digital Stereo (HDMI) Output."
  3. Change "Profile" from the menu from "Digital Stereo (HDMI) Output" to "Off"
  4. Press "Close".

Then when I launch XBMC, I can play AC3 and DTS tracks, but not anything else! Aaagh!

I followed your guide hoping that it would solve my problem and get everything working in XBMC, at the acceptable expense of system sounds. Now, I have no sound at all, and I'm not sure how to fix it. I've run your script with the "-r" option to remove the ALSA update, and have followed the "uninstall" instructions given in the first post, and I think I now have PulseAudio reinstalled, but even though I've set everything back to the way it was in Ubuntu's sound preferences, I get no sound now. Not from XBMC or Ubuntu.


- alanwww1 - 2009-11-08 19:47

VERY IMPORTANT NEWS guys !

Nvidia 190 series video drivers break lpcm hd audio. For some users it completely breaks sound for some users it makes 6 channels out of 8. For me it makes 2 channels out of 8 or 6.

So it is not Karmic the problem. It is the new nvidia drivers.

Check out this thread:

http://www.nvnews.net/vbulletin/showthread.php?p=2119691&posted=1#post2119691


- lloydsmart - 2009-11-09 01:03

alanwww1 Wrote:it is not Karmic the problem. It is the new nvidia drivers.

That is interesting, unfortunately I'm still having problems and I'm on the 185 drivers, so it could be Karmic at fault in some cases.


- dogk1cker - 2009-11-10 05:53

Hi,

I am having a terrible time trying to get my sound to work in XBMC. I am on Jaunty with the latest XBMC. I have a S/PDIF cable connected to my 9400GT, then a DVI to HDMI to my HD TV. I am using nvidia 185 drivers. I can play MP3 files in Linux and using the Ubuntu MP3 player and the sound from the TV is beautiful but I get no sound from XBMC. Also, I noticed that my HDMI is not listed in below:

xbmc@xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ICE1724 [ICEnsemble ICE1724], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ICE1724 [ICEnsemble ICE1724], device 1: ICE1724 IEC958 [ICE1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0

xbmc@xbmc:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Nov 9 2009 for kernel 2.6.28-16-generic (SMP).

Any help would be great. Thanx.


- toiva - 2009-11-10 09:04

dogk1cker Wrote:card 0: ICE1724 [ICEnsemble ICE1724], device 1: ICE1724 IEC958 [ICE1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0

try setting hw:0,1 as your output device in XBMC, or plughw:0,1 or something like that


- alanwww1 - 2009-11-10 09:14

dogk1cker Wrote:Hi,

I am having a terrible time trying to get my sound to work in XBMC. I am on Jaunty with the latest XBMC. I have a S/PDIF cable connected to my 9400GT, then a DVI to HDMI to my HD TV. .

Hey Dogk1cker !

Technicly you are NOT using hdmi audio device. You are using simple spdif output redirected to the hdmi cable by the videocard. So your video card does NOT have a dedicated audio hardware element. So you have to do everything as you do with normal SPDIF connection. This guide is absolutely useless for you !

Just set iec958 for both devices and you will be set.