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
(Fix preformatted text blocks.)
>Paoleary
(Improved disclaimer; formatting.)
Line 2: Line 2:
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.
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 there are still significant limitations to the current method.  The GT240, while it becomes recognized, does not yet work.  Channel mapping is known to be incorrect.
Note that this is a work in progress and there are still significant limitations to the current method.  The GT240, while it becomes recognized, does not yet work.  Channel mapping is known to be incorrect.


== Getting ALSA ==
== 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 [http://ubuntuforums.org/showthread.php?p=6589810 ALSA Upgrade Script].  Alternatively, you can download the sources from the [http://www.alsa-project.org/main/index.php/Download 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/.
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 [http://ubuntuforums.org/showthread.php?p=6589810 ALSA Upgrade Script].  Alternatively, you can download the sources from the [http://www.alsa-project.org/main/index.php/Download ALSA Project].  If using the upgrade script, only complete the first (<tt>-d</tt>) step.  If using downloaded sources, this how-to assumes that you've unpacked them to <tt>/usr/src/Alsa-1.0.22.1/</tt>.


== Patching ALSA ==
== Patching ALSA ==
First, [http://pastebin.com/pastebin.php?dl=f685b419a 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:
First, [http://pastebin.com/pastebin.php?dl=f685b419a 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/sound < ~/alsa_nvidia.patch
Line 15: Line 15:


== Compiling and Installing ALSA ==
== Compiling and Installing ALSA ==
If using the upgrade script, run the -c and -i steps now (hint for the adventurous: [http://ubuntuforums.org/showpost.php?p=8782075&postcount=640 make the -c step faster on multicore systems]).  Otherwise, follow the standard ALSA configure, make, and install process, but do not reboot.
If using the upgrade script, run the <tt>-c</tt> and <tt>-i</tt> steps now (hint for the adventurous: [http://ubuntuforums.org/showpost.php?p=8782075&postcount=640 make the <tt>-c</tt> step faster on multicore systems]).  Otherwise, follow the standard ALSA configure, make, and install process, but do not reboot.


== Setting Module Options ==
== Setting Module Options ==
Line 23: Line 23:
  $  
  $  


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.
Where there is a single "<tt>0xffff,</tt>" for each card that appears before the nVidia device in <tt>`aplay -l'</tt>.  In the example, the nVidia device is Card 1.


== Finishing Installation ==
== 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!
Now, reboot your system.  Using <tt>`alsamixer'</tt>, select your nVidia card (select it from the F6 menu, or use the <tt>-c</tt> option) and unmute the S/PDIF output (press "m"; the box should change from "MM" to "OO".)  Enjoy!

Revision as of 03:48, 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, does not yet work. Channel mapping is known to be incorrect.

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/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!