NVidia HDMI Audio on LinuxMCE 1004

From LinuxMCE
Revision as of 00:27, 6 August 2012 by RayBe (Talk | contribs) (Start for a HOWTO on NVidia HDMI audio)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

How to setup NVidia HDMI Audio on LinuxMCE 1004

apt-get install linux-backports-modules-alsa-`uname -r`
reboot

This will get them listed (aplay -l | grep -i 'hdmi')

You will likely have hw0 devices 3,7,8, and 9. It is almost always 3 or 7 on the id41, and seems to be completely random which. Others output on 9... others output on everything. Should look something like:

card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
card 0: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
card 0: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
card 0: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]

You can test with:

speaker-test -c 2 -l 1 -t sine -D hw:0,7

etc based on the output of aplay where the 0 is the card and 7 is the device.


Now getting that to stick is another trick. In /usr/pluto/templates/asound.conf I would replace %MAIN_CARD% with 0,7 or whatever yours is.

pcm.asym_hdmi {
       type asym
       playback.pcm "hdmi_playback"
       capture.pcm "plughw:%MAIN_CARD%"
}


You may also have to add

options snd-hda-intel model=auto  or
options snd-hda-intel enable_msi=0 index=-2

to /etc/modprobe.d/alsa-base.conf to place the HDMI audo as card 0. For some reasons, it has to be card 0.

Please report back to L3top with your results.