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


- s_Fanous - 2009-12-06 12:34

alanwww1 Wrote:PART 1 SETTING UP ALSA

Requirements:
- You need to have Nvidia hdmi audio integrated codec on your motherboard. Like the IONs or 9300 9400 integrated motherboard chipsets.
- You need Ubuntu Jaunty (or Karmic)
- You need the Nvidia drivers 185 series. IMPORTANT: the 190 series driver breaks lpcm hdmi output totally or partially
- At last both not least, you must have a HDMI 1.1 compatibe HDMI AV receiver (Like Onkyo TX-SR605 what i have) connected with hdmi cable

I have a simple question. Would this work without the first requirement, or does the nVIDIA HDMI audio integrated codec must be on the motherboard?

I've got an Acer 5930G with an Intel chipset. The laptop has an nVIDIA 9600M GT card with an HDMI out. I'm running Ubuntu Karmic, and the 185 series drivers.

I really want to get this working the ALSA way, as I don't need this Ubuntu installtion for anything other than XBMC.

Thanks


ION and sony receiver - Kaaino - 2009-12-06 14:07

Hi all,

I have followed all the steps in this post but still no audio to my receiver via HDMI. Note that if I plug the HDMI to the TV I have got stereo audio. But if I plug the HDMI to my receiver I have video but not audio (with and without pass-through enabled). I have tried with MP3 stereo, 5.1, Dolby Digital, AC3, and I have also run speaker-test but without any luck so far.

My set up is:
-HTPC based on ION ASUS AT3N7A-I
-Sony STR-DH800 receiver
-Sony BRAVIA lcd tv
-XBMC 9.11 over Ubuntu 9.10, 185 NVida driver, alsa 1.21

Any suggestion is well appreciated

Thanks


- Kali - 2009-12-06 18:51

remove
/etc/modprobe.d/alsa-base.conf
run alsaconf select hda-intel and reboot


- s_Fanous - 2009-12-06 20:11

s_Fanous Wrote:I have a simple question. Would this work without the first requirement, or does the nVIDIA HDMI audio integrated codec must be on the motherboard?

I've got an Acer 5930G with an Intel chipset. The laptop has an nVIDIA 9600M GT card with an HDMI out. I'm running Ubuntu Karmic, and the 185 series drivers.

I really want to get this working the ALSA way, as I don't need this Ubuntu installtion for anything other than XBMC.

Thanks

Well I went ahead and took the dip

The end result is that it is not working, but I think it is close, so maybe someone can help me

Code:
sfanous@Torres:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Dec  6 2009 for kernel 2.6.31-16-generic (SMP).

Code:
sfanous@Torres:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
sfanous@Torres:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
sfanous@Torres:~$ alsamixer
[Image: alsamixers.png]


Code:
speaker-test -Dhdmi -c2 -r48000 -FS16_LE
This command works perfectly. The Front Left, followed by the Front right speakers output the sound

Code:
speaker-test -Dhdmi -c6 -r192000 -FS32_LE
This command doesn't work as expected. Sound can only be heard coming from the front left, and front right speakers. No sound can be heard from the center, rear left, rear right, or subwoofer.

Sometimes this command leads to broken pipe errors


Can someone please help me

Thanks


- alanwww1 - 2009-12-07 00:42

s_Fanous Wrote:
Code:
speaker-test -Dhdmi -c2 -r48000 -FS16_LE
This command works perfectly. The Front Left, followed by the Front right speakers output the sound

Code:
speaker-test -Dhdmi -c6 -r192000 -FS32_LE
This command doesn't work as expected. Sound can only be heard coming from the front left, and front right speakers. No sound can be heard from the center, rear left, rear right, or subwoofer.
Thanks

Sorry guys but i have so much work nowadays that i can't keep up with the posts.

Your problem is that i think that graphic card does not do multichannel lpcm. Only motherboard integrated codecs and the new g210, gt220 cards (not yet supported on linux)


- Kaaino - 2009-12-07 12:14

Kali Wrote:remove
/etc/modprobe.d/alsa-base.conf
run alsaconf select hda-intel and reboot

Thanks for the suggestion,

I have reset the .conf but still no sound. It is as if the receiver cannot recognize the audio signal from XBMC

Another clue:
if I try to play some mp3 music or a movie with mp3 audio I just do not get any sound. Instead if I play a movie with dolby digital or where it is supposed to use pass-through I get a "failed to initialized audio device" message.


- samanoske - 2009-12-09 23:10

It is really hard to decide between pulse and alsa way.
On one hand alsa way give perfect sound but pulse will transform e.g. DTS Neo to LPCM and thus my receiver can then play nicely the normally unsupported codecs. Even MP3 are resampled to play on all 5 speakers ( and I luv it Smile)

On the other hand Pulse is too much for my acer atom if a flash movie is watched via firefox and ugly cracking occur during playback Sad
I am using resample-method = ffmpeg.

Something in between would be perfect Smile Alsa for standard things (Firefox and XBMC if movies are using codecs that are supported by the receiver and pulse otherwise.

I guess such a setup is not possible ?


dmixer instead of PulseAudio? - pashdown - 2009-12-09 23:27

Is there a reason to use PulseAudio over ALSA's normal dmixer? The following asound.conf works well for me (it is just analog over HDMI):

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

pcm.!remap-surround71 {
  type route
  slave.pcm "dmixer"
  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
  }
}

pcm.!default {
    type plug
    slave.pcm "dmixer"
}
pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,3"
        #period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        rate 44100
     }
     bindings {
        0 0
        1 1
     }
}
ctl.mixer0 {
    type hw
    card 0
}



- alanwww1 - 2009-12-10 01:06

samanoske Wrote:It is really hard to decide between pulse and alsa way.
On one hand alsa way give perfect sound but pulse will transform e.g. DTS Neo to LPCM and thus my receiver can then play nicely the normally unsupported codecs. Even MP3 are resampled to play on all 5 speakers ( and I luv it Smile)

You don't need pulse for this !!!!!

You just need to untick the dts,ac3 capable receiver options in xbmc.


my fight.... - bitlisz - 2009-12-10 12:37

Yesterday I finished with the configuration, and it seems working.
I used Ubuntu Karmic + Nvidia drivers 185 series + XBMC 9.11beta1.
The mainboard is Point Of View ION330-1
Im not finished with the full test, but at least the speaker tests are working, and maps the correct channel. Also worked the DTS too.
But i cant find this configuration panel.
I can see only in the alsa mixer the NVIDIA HDMI. (is this ok?)

Today I get some multi channel flac files from here. And found some tool with to convert DTS-MA/DDTrueHD. Maybe this is ok (Clown_BD v0.75, tsMuxeR v1.10.06, eac3to v3.17, BDSup2Sub v3.98,Aften x86).

This remote also works somehow, except playback keys not (Play, Stop Pause...).
The mouse function works tooSmile

BTW I just seen that the new 2nd beta of XBMC 9.11 released. Smile
My question is how can I update and can I loose anything?
Maybe the same way like before:
Code:
$ sudo add-apt-repository ppa:team-xbmc
     $ sudo apt-get update
     $ sudo apt-get install xbmc
     $ sudo apt-get update
Offtopic, but...
Comments for the video quality: I get tearing always, and m2ts file playback not really good (mkv ok). I enabled vsync in xbmc settings, but nothing happened. I read somewhere that there is a bug in the nvidia driver...have to set in the driver pane the vsync , but only works if one monitor connected.

It is possible to test ffmpeg for HD Audio passthrough somehow?
(Without the needed conversion to FLAC...sorry for this question...)
Will be possible the passthrough with ION under Linux?