[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)
- srv1973 - 2010-05-26 21:22
srv1973 Wrote:Yeah, can somebody update this page, cos it mentions you need to set the audio to "custom" with "hdmi:CARD=NVidia", and that didn't work for me. I just selected "internal stereo audio over HDMI" and "hdmi" and it's working fine.
So, actually it's not working. Seems that the 5.1 files I thought I was testing with weren't actually 5.1.
So last night I had perfect audio in 5.1 over HDMI to my Harman Kardon receiver with SMPlayer. Didn't notice any swapped center/left-rear channels either.
Today I applied the asound.conf and HDA-Intel.XXX file mentioned here, but apparently tested with the wrong video files, so it was just outputting in stereo over HDMI. So when tonight I started to show off my shiny setup to my wife, XBMC gave "failed to initialize audio" on a 5.1 track. She wanted to see the show anyways, so back to SMPlayer, but now that one has the swapped channels!
I moved the asound.conf and HDA-Intel file out of the way and rebooted, but that didn't help. Alsamixer on my system still doesn't give IEC958 channels, so nothing to unmute either.
Furthermore, even in normal Ubuntu Preferences->Sound I am now lacking the HDMI option. I moved the asound.conf and that HDA file back and rebooted, same result.
So now I can get correct stereo sound from SMPlayer and XBMC, wrong 5.1 sound sfrom SMPlayer, no 5.1 sound from XBMC, and my Ubuntu system sounds (like the logon tune) are gone as well
And the evening started so well... s'pose I'll wait for the weekend to try again (which starts on Friday here).
- blazini - 2010-05-26 21:36
That killed my sound and pavcontrol. I redid the 2 .conf files and got sound back then reinstalled pavcontrol, now I'm back where I started.
I'm still trying to figure out where the the profiles in pavcontrol come from and why I only get Digital stereo HDMI
- srv1973 - 2010-05-27 10:13
See my earlier rant about not being able to get this working.... Would purging pulseaudio and upgrading alsa from this ppa do any good?
- harryzimm - 2010-05-27 14:25
Here are the exact steps i took to enable 5.1 multi-channel audio via hdmi with xbmc. I use the latest pvr-testing branch
ppa from yavdr running on lucid mini. I suspect some of you are getting problems due to running a full desktop,
since i only run a minimal install i have no clue how to fix this.
download the lucid mini image from here.
Download unetbootin to install via usb. Open unetbootin and select diskimage and browse to the mini.iso.Choose ur usb drive and hit ok.
Once unetbootin has copied the files to usb, go to the root of the usb drive and open syslinux.cfg with a text editor and replace
Boot from the usb stick and select default from the menu. Go through the install process choosing xbmc as user and password. When it asks what software to install choose openssh only.
3)After the reboot, you should have ubuntu installed and have a command line promt on the screen. You can continue the install via ssh if you know how.
login using the user pass from installation.
Quote:sudo apt-get install python-software-properties pkg-config
If you get the nvidia.ko error, refer to here for the fix.
Unmute all iec and spdif (Hit m so they turn green)
Test if xbmc works
If it works
In xbmc so to system-system-audio output. change output to digital, speaker config to 5.1 and audio output device and passthrough to hdmi.
Hopefully that will help some of you. This was done on a acer revo 3610.
- srv1973 - 2010-05-27 15:09
Wow, what a detailed description. Some people will be really happy with this one. You should include it in the wiki!
For me, I think the problem is the point above: alsamixer doesn't show any iec devices.
Tonight I'm going to apt-get purge pulseaudio and give this another shot. Who knows...
Realized I have SSH access, so I went ahead with the purge and rebooted. Logged on to the system again, ran alsamixer. No IEC devices.
I did notice that I can select a different sound card with F6, so it now shows me the Nvidia MCP7A HDMI sound card. That one doesn't have IEC either, it has S/PDIF, S/PDIF Default PCM and S/PDIF 1 (all unmuted btw).
Now the aplay -L output looks a bit suspicious to me. It doesn't show any digital audio device. Also, I think I've seen aplay -L output on this forum for an ION system that did look different.
Just to put all the info in here, dmesg reports:
So that should be the correct driver version.
It also shows however:
Not sure if that "Disable MSI for Nvidia chipset" does any harm...
Hmmm, 1.0.21. But:
1.0.22.... is that just a mistake? Which driver version am I actually using?!?!
- The Chef - 2010-05-27 23:31
Great writeup Harry.
When I get home I think I'll do you exact same steps and get Lucid mini. Does the mini form of Lucid have Firefox installed or anything or is it completely bare bones? I like having the ability to use the OS for some things.
- harryzimm - 2010-05-27 23:48
Its completely bare. That means no desktop no firefox, pretty much like xbmc-live it just boots straight to xbmc. There are guides on the forum to install and use firefox via the launcher plugin though.
- Roelio - 2010-05-28 09:01
What doest the line append vga=normal initrd=initrd.gz -- quiet in syslinux.cfg do?
- srv1973 - 2010-05-28 13:25
Completely bare, but essentially still the same basis as Lucid Desktop, right? So on the kernel/driver level I'd expect Lucid Mini and Lucid Desktop to be the same.
I just upgraded to ALSA 1.0.23 via the ubuntu-audio-dev ppa, and /proc/asound/version now shows the latest version. Also, aplay -L is now showing the hdmi device. However, I'm still not getting any sound, which is I suspect because the hdmi channels are muted.
alsamixer is still at version 1.0.22 and is NOT showing me any IEC958 devices to unmute
XBMC doesn't complain about "failed to initialize audio", so that's a good sign. I'm kinda hoping that this means all I need to do is to unmute the thing somehow.
- harryzimm - 2010-05-28 13:36
What exact setup are you using. Do you have a reciever or is it tv audio you want.