[LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- 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)
- Ooblivion - 2009-11-06 06:50
Thanks again, alan, for the help!
Quote:Sure you have these custom files ?
It turns out I didn't have the /etc/asound.conf custom file. I must have accidentally skipped that line in the tutorial. I added it. Good call!
But...it didn't seem to do anything, as after a reboot I still don't have any sound.
Quote:In PA manager could you please check the sink device pulseaudio uses ?The PA manager showed:
Default Sink: alsa_output.hw_0_3
or "HOA NVidia - NVIDIA HDMI"
I retried xbmc and also other things in gnome and still no sound.
I'm using XBMCLive, it turns out. Not a full Ubuntu install. (although I hope that doesn't make a difference).
I just want to have gui sounds along with the sound from xbmc and other programs (like hulu desktop).
Can I get this if I use the ALSA method? Maybe I should abandon the PulseAudio attempt.
Thanks again for the help and feedback!
- alanwww1 - 2009-11-06 09:35
Ooblivion Wrote:I'm using XBMCLive, it turns out. Not a full Ubuntu install. (although I hope that doesn't make a difference).I just want to have gui sounds along with the sound from xbmc and other programs (like hulu desktop).
In Pulseaudio everything seems to be ok. (just one thing came into my mind. Check
If not working than Alsa can not use the 44100khz sampling rate. This case you have not done the Alsa upgrade steps correctly.)
Why are you using XBMC_Live if you want to use also Gnome desktop ?
XBMC_live missing a lot of packages and settings, focusing only the necessary things for running xbmc. I am not really sure what else is missing now, which make things not working.
Tha Alsa way is perfectly good for xbmc_live, but in this case you can not have two apps using the soundcard at the same time. If i were you, i'd rather install a full Ubuntu Desktop version and install xbmc over it, with Pulseaudio way. But before that you could try the Alsa way. Just remember to change the gnome sound setup to Alsa.
- Ooblivion - 2009-11-06 16:36
The 44100khz sampling rate test didn't work. So there is something wrong with that. I think it was 48k sample rate that did work.
I had a question. Since my TV is only 2 channel (left and right), do I need to update the daemon.conf file and the default.pa file to only use 2 channel, instead of the 6 channel that was set in your tutorial?
How do I set the system to use 44100khz sample rate correctly?
Who knew that audio would be such an issue for me!
Thanks again for all your help and support!
- alanwww1 - 2009-11-06 17:31
Ooblivion Wrote:The 44100khz sampling rate test didn't work. So there is something wrong with that. I think it was 48k sample rate that did work.
Now i see your problem. I think that your problem is that your TV does not support 44100hz. As pulseaudio's default sampling rate is 44100 that's why you can not hear anything on your tv. Speaker test without the -r option defaults to 48khz, this is why it worked for you previously.
What we can do is modify pulseaudio configuration to use 48khz frequency, with 2 channels.
Sorry but my guide was for multichannel audio, with the capable av receiver.
Now change in default.pa:
And in daemon.conf
This way it should work.
- Ooblivion - 2009-11-06 19:45
Wooo Hooo! Success!
It all works now! Great catch, alan. And I thank you so much for all the help!
Now I just need to setup my system again so xbmc starts on bootup. It got messed up when I installed gnome. .... but that's for another forum topic.
- Ooblivion - 2009-11-06 22:35
I did some messing around and got xbmc to start at bootup.
But I think my kludge isn't too good - since my audio is gone when xbmc is up. I guess I need to run pulseaudio somewhere in the xbmc startup scripts?
I was thinking about installing the new xbmc-live 9.11 alpha..... but my guess is that this will screw up the pulseaudio setup....
- alanwww1 - 2009-11-06 22:53
Ooblivion Wrote:I was thinking about installing the new xbmc-live 9.11 alpha..... but my guess is that this will screw up the pulseaudio setup....
I'd rather suggest installing Ubuntu Desktop Karmic than install xbmc over it. Because you don't need multichannel sound nor 44100hz support you can skip the alsa upgrade part.
You will have a perfectly set up gnome system WITH pulseaudio. This case you just need to modify these two files as i wrote in my last post and you are all set up. Sure and easy thing.
Karmic is really great. Give it a try !
- durandal2401 - 2009-11-07 16:49
I tried your method over a clean install of XBMC Live 9.11 on a ASRock ION 330 with the alsa way, but when trying speaker-test I only get audio from the front left and right speakers. I also tried some other things I found in this forum, but I can't seem to get multichannel audio working.
Any help would be appreciated.
- alanwww1 - 2009-11-07 17:06
Not too much information about your system, setup, alsa output etc.
I can't help this way.
Anyway i will try to add a new part to the guide focusing the new XBMC_Live 9.11 as a lot of people will use this. So stay tuned till i prepare this guide.
- durandal2401 - 2009-11-07 18:57
I started from scratch now, this time with a ubuntu minimal install, but same problem again.
I did the following steps
Installed ubuntu minimal 9.10
Installed nvidia driver 190
Setup alsa with your method
installed xbmc 9.11
alsamixer shows 1.0.21 and master, front, line, mic, S/PDIF, S/PDIF Default PCM, S/PDIF 1
when doing this step:
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?
- alanwww1 - 2009-11-07 22:44
durandal2401 Wrote:when doing this step: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.
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: