[LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI

  Thread Rating:
  • 8 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pricinosus Offline
Junior Member
Posts: 30
Joined: Dec 2009
Reputation: 2
Post: #431
peter10000 Wrote:Correct Code is:
...
6. Create a script for launching XBMC like "start.sh" and set the executable flag. Content of the file is:
pulseaudio -k <<<<=======
xbmc
pulseaudio --start

-k => stops pulseaudio

It could be neccesary to take "pulseaudio --start" into autostart to get OS based sound-support when booting up.


you can use your "edit" button to change that in original post here

Nerd
find quote
polkaroo Offline
Junior Member
Posts: 36
Joined: Aug 2010
Reputation: 0
Post: #432
Hi,

I’m trying to use XBMC Live via usb with an MSI N210 MD512H graphics card. I’m attempting to use audio via HDMI. So far, I am able to stream youtube and shoutcast with sound working fine (receiver indicates PCM). When I attempt to play a DVD or video file, I don’t get any sound. When attempting to see what the signal is from the receiver, it flashes, occasionally saying no signal. Will these instructions work for my MSI N210 graphics card? Has anyone seen this and if so, what can I do to correct? I am using Beta 3.

Flomaster Wrote:do you not get hdmi audio in live?

type in
alsamixer

make sure your hdmi spdif are not muted on the far right.

http://forum.xbmc.org/showpost.php?p=587...tcount=290
then copy and paste these lines of code

Code:
[LIST]
[*]sudo rm /etc/asound.conf

[*]sudo rm /usr/share/alsa/cards/HDA-Intel.conf

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

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

[*]sudo reboot
[/LIST]

also if you have a Ion 330 with Nvidia GPU you can use this
.asoundrc

file it works perfectly for me

Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

use these settings in xbmc
the perfect asound.conf http://flomaster.pastebin.com/HQtibwZ4
Audio Output: HDMI
Audio Output Device:HDMI
Passthrough: plughw:0,3
and if I want to get stereo sound to my zone two for backyard music I change to
Audio Output: plughw:0,0 and I get analog audio out of my green headphone jack.

my AAC tracks play on the correct channels.
mp3 audio is correct
DTS and Dolby Digital play as should.
all emulators play sound using this setup.

-=Jason=-
find quote
Jyujinkai Offline
Senior Member
Posts: 186
Joined: Jul 2008
Reputation: 0
Post: #433
alanwww1 Wrote:
Code:
sudo wget http://pastebin.com/pastebin.php?dl=f5f9654bb -O /etc/asound.conf
sudo dos2unix /etc/asound.conf

All these pastebin things do not work Sad

XBMC user from XMP days... love this project and many thanks to the talent that keeps it alive
find quote
myrison Offline
Donor
Posts: 301
Joined: Nov 2009
Reputation: 3
Location: Austin, TX
Post: #434
The pastebin logs are still there, you can check them in any browser: http://pastebin.com/f5f9654bb

With that said, the post you are referencing is over a year old. The methods described in the first posts were priceless at the time they were written, but they are no longer necessary using the newest versions of XBMC Live / Dharma. Check out the link in my signature for a quick run-through. My guide is for Dharma 2, but the same steps apply, just change the link to download the latest XBMC Freak version, which is currently Dharma 3. After that upgrading to Dharma 4 is quite easy.

------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
find quote
martdj Offline
Junior Member
Posts: 41
Joined: Jul 2010
Reputation: 0
Post: #435
i discovered recently that I didn't have multichannel sound (which is my case meant I didn't have a center speaker, as I currently have a 3.1 setup) when playing multichannel soundfiles. So I tried to follow this guide to correct it. After a lot of time spent on this I did fix it, but definitely not with this guide. Just a word of warning to people who read this thread. The things I found:
  • Not a single nvidia driver in the 195.x range will give you multichannel sound
  • No need to use the 185.x series though. Go newer. I currently use 260.19.26 which works fine
  • Using this driver I didn't have any problems with channels switched around. No need to swap any files like asound.conf or HDA-Intel.conf files
  • Using the test files listed in this thread, I had weird behavior with my ac3 and dts test files. All other files were fine, but when these would start to play I have my front speakers telling me they were the rear speakers. However, when I played them again they were just fine. that took me a while to realise though.

So my advice would be, use the newest nvidia driver and first check if you actually have a problem before you try any tips from this thread.
find quote
bmcclure937 Offline
Fan
Posts: 659
Joined: Dec 2010
Reputation: 5
Location: Ohio
Post: #436
Is this included in Dharma or are these steps still necessary to achieve proper sound through HDMI (I will be using a GT430)?
find quote
Post Reply