Archive:Set up HDMI audio on GeForce GT210, GT220, or GT240: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Paoleary
(→‎Before You Begin/Notes: New patch version may help out GT240.)
>Paoleary
(→‎Patching ALSA: Fixed error in command line, thanks rodercot.)
Line 10: Line 10:
First, [http://pastebin.com/pastebin.php?dl=f5bfdf853 download the patch].  This how-to assumes that the patch is in your home directory and is named <tt>alsa_nvidia.patch</tt>.  This patch modifies <tt>patch_nvhdmi.c</tt> so it recognizes the G210, GT220, and GT240.  Apply the patch by entering:
First, [http://pastebin.com/pastebin.php?dl=f5bfdf853 download the patch].  This how-to assumes that the patch is in your home directory and is named <tt>alsa_nvidia.patch</tt>.  This patch modifies <tt>patch_nvhdmi.c</tt> so it recognizes the G210, GT220, and GT240.  Apply the patch by entering:


  $ sudo patch -p1 -d /usr/src/Alsa-1.0.22.1/alsa-driver/sound < ~/alsa_nvidia.patch
  $ sudo patch -p1 -d /usr/src/Alsa-1.0.22.1/alsa-driver-1.0.22.1/sound < ~/alsa_nvidia.patch
  patching file pci/hda/patch_nvhdmi.c
  patching file pci/hda/patch_nvhdmi.c
  $
  $

Revision as of 13:39, 9 February 2010

Before You Begin/Notes

This guide assumes that you have a GeForce G210, GT220, or GT240 card, are using a reasonably up-to-date system, and that you have at least the nVidia 190 series proprietary drivers installed.

Note that this is a work in progress and there are still significant limitations to the current method. The GT240, while it becomes recognized, may not work (please post feedback here!). Channel mapping is known to be incorrect. In videos, audio may occasionally drop with corresponding video stutter.

Getting ALSA

You will need to compile a patched version of ALSA 1.0.22.1 from source. An easy way to do this is with the ALSA Upgrade Script. Alternatively, you can download the sources from the ALSA Project. If using the upgrade script, only complete the first (-d) step. If using downloaded sources, this how-to assumes that you've unpacked them to /usr/src/Alsa-1.0.22.1/.

Patching ALSA

First, download the patch. This how-to assumes that the patch is in your home directory and is named alsa_nvidia.patch. This patch modifies patch_nvhdmi.c so it recognizes the G210, GT220, and GT240. Apply the patch by entering:

$ sudo patch -p1 -d /usr/src/Alsa-1.0.22.1/alsa-driver-1.0.22.1/sound < ~/alsa_nvidia.patch
patching file pci/hda/patch_nvhdmi.c
$

Compiling and Installing ALSA

If using the upgrade script, run the -c and -i steps now (hint for the adventurous: make the -c step faster on multicore systems). Otherwise, follow the standard ALSA configure, make, and install process, but do not reboot.

Setting Module Options

$ sudo cat - >> /etc/modprobe.d/sound.conf <<EOF
> options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2
> EOF
$ 

Where there is a single "0xffff," for each card that appears before the nVidia device in `aplay -l'. In the example, the nVidia device is Card 1.

Finishing Installation

Now, reboot your system. Using `alsamixer', select your nVidia card (select it from the F6 menu, or use the -c option) and unmute the S/PDIF output (press "m"; the box should change from "MM" to "OO".) Enjoy!