Howto: working GT2XX HDMI audio out with alsa

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TycoonX Offline
Junior Member
Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #11
moep Wrote:If you absolutely can’t get your card to show up you could try the HD_AUDIO-9.10.tar.gz driver package. Google the filename and you’ll find it.

before compiling:

patch_nvhdmi.c: replace all occurrences of 10de000d with 10de000b
hda_intel.c: replace 0x0d97 with 0x0be3
(these are for the GT210 only).

make, make install, reboot.

It’s a long shot but maybe that will help you get the card to show up in alsamixer.

aplay -l is still empty
now i get when trying alsamixer: cannot open mixer: No such file or directory

UPDATE: after upgrading kernel, i've managed to:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
(This post was last modified: 2010-02-06 01:06 by TycoonX.)
find quote
TycoonX Offline
Junior Member
Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #12
Another update

I've managed to get something running in the mixer

[Image: alsa.png]

Before the last reboot i had 4 of there SPDIFs, i think 1 was enabled now i can't do anything with the single SPDIF

note that the card is identified as GT240, is that OK?

i've tried to play something, that didn't work before & after reboot


another update: after hours of many combination, i think that updating the kernel and reinstalling nvidia's driver solved the issue.
I am using speaker-test -Dhdmi -c6 and it works well, next i will use mplayer, and that will be it

now i have 1 problem which is not exactly related, the video card insists on outputting 1280x720 to my reciever but my TV is 1360x768, i guess it is a reciever problem
(This post was last modified: 2010-02-06 02:45 by TycoonX.)
find quote
paoleary Offline
Junior Member
Posts: 32
Joined: Feb 2010
Reputation: 0
Post: #13
Please see the wiki for complete, up-to-date instructions.

HISTORICAL INFO:
moep,

Nice work tracking down some of the missing links. Like TycoonX, my 210 was not recognized at all by ALSA. I built HD_AUDIO-9.10, but ran into problems with loading the modules--missing symbols, the works.

I ended up cherry-picking from and modifying HD_AUDIO-9.10 and grafting it onto alsa-driver-1.0.22.1 downloaded from the ALSA ftp site. I went ahead and made the changes to the IDs you said to make a little more cleanly, so that the GT240 PCI ID wasn't lost and the GT210 is correctly identified as such in alsamixer.

UPDATED: Here's a patch that should cover the G210, GT220, and GT240. This has been tested on my system against the original sources for ALSA 1.0.22.1. Since it's built off of alsa-kmirror.git, the patch command is `patch -p1 -d sound < patchfile' from the alsa-driver root.

ORIGINAL TEXT:
Here's a patch. Apply with a `patch -p1 < patchfile' from the alsa-driver-1.0.22.1 directory. Hope this helps. N.B.: There may in fact be a much simpler patch, after reviewing some things. I'll get back to you after watching Important Things with Demetri Martin (with HDMI audio!), then I'll test.

EDIT 2: Nope, apparently got to stick with the original patch.
(This post was last modified: 2010-02-09 06:43 by paoleary.)
find quote
moep Offline
Junior Member
Posts: 22
Joined: Mar 2004
Reputation: 0
Location: Austria
Post: #14
TycoonX Wrote:Another update

I've managed to get something running in the mixer

Before the last reboot i had 4 of there SPDIFs, i think 1 was enabled now i can't do anything with the single SPDIF

note that the card is identified as GT240, is that OK?

i've tried to play something, that didn't work before & after reboot


another update: after hours of many combination, i think that updating the kernel and reinstalling nvidia's driver solved the issue.
I am using speaker-test -Dhdmi -c6 and it works well, next i will use mplayer, and that will be it

now i have 1 problem which is not exactly related, the video card insists on outputting 1280x720 to my reciever but my TV is 1360x768, i guess it is a reciever problem

Your SPDIF was muted. I assume that was the issue. Once you have a single SDPIF out showing in the alsamixer controls you’re usually good to go.

As for the resolution issue, I had a similar problem when I first booted with HDMI audio enabled (720p in XBMC although 1080p was explicitly set) but a reboot solved it. I haven’t experienced the issue again since then. Confused

Nice job on the patch paoleary! I’ve linked it in the OP since this seems to be the solution for alsa not recognizing the card at all.
(This post was last modified: 2010-02-06 08:55 by moep.)
find quote
sensei73 Offline
Senior Member
Posts: 104
Joined: May 2008
Reputation: 0
Post: #15
Hi there I'm still tryiang to catch up, so I tried moep's patch, but it didn't work. After searching I figured out that my car has a different ID (0be2 instead of 0be3) but even if I change this value in the patch. It doesn't make it appears.....

Maybe something with pci vendor idConfused How to check if my card is 10de000d or 10de000a etc...
in lspci I only see 10de...

Thanks in advance

PS: I have a GT220 PNY 1024M

XBMC SVN (updated every week) ubuntu Karmic 64bits
Intel E5200/ 3 Go Ram / Nvidia GT220 1Go / 6To (1.5To x 4 Raid 5)
find quote
sensei73 Offline
Senior Member
Posts: 104
Joined: May 2008
Reputation: 0
Wink    Post: #16
So manage so find out my card is 10de000a and 0be2 (gt220)
I manage to change it to the patch and compiled again alsa driver.
So now the GT220 is detected and present in alsamixer with 4 output before adding ptions snd-hda-intel probe_mask=0xffff,0xfff2, after only 1 output.

But in xbmc when i start a movie I only get 1sec of sound through HDMI, after the sound repeat itself indefinitely and xbmc stop playing the movie...

so far it's a real progress!

XBMC SVN (updated every week) ubuntu Karmic 64bits
Intel E5200/ 3 Go Ram / Nvidia GT220 1Go / 6To (1.5To x 4 Raid 5)
find quote
paoleary Offline
Junior Member
Posts: 32
Joined: Feb 2010
Reputation: 0
Post: #17
Thanks for the info about the IDs, sensei73. I'll update the patch.

Please hold, your info is important to us. Your patch will be applied in the order in which it was received.

UPDATE: Since this is getting complicated, decided to clone the git for alsa-driver. Found out that the files I'm modifying actually originate in alsa-kernel, rather than alsa-driver. Now cloning alsa-kmirror. Then I should be able to do the work.

UPDATE 2: Updated patch. I confirmed only that it compiles, but it's not much different than the original patch. Since it's built off of alsa-kmirror, the patch command is now `patch -p1 -d sound < patchfile' from the alsa-driver root.
(This post was last modified: 2010-02-06 21:10 by paoleary.)
find quote
TycoonX Offline
Junior Member
Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #18
Thanks a lot moep, my audio problem is solved Smile
I will try to work something out with the video resolution, i get: Screen(s) found, but none have a usable configuration when trying to output 1360x768
(This post was last modified: 2010-02-06 21:55 by TycoonX.)
find quote
paoleary Offline
Junior Member
Posts: 32
Joined: Feb 2010
Reputation: 0
Post: #19
Updated patch again. Turns out no modifications to hda_intel.c are actually needed, since all nVidia stuff is recognized in the existing entry. This means the only file we need to touch against the official release of ALSA is patch_nvhdmi.c. Patch is once again compiled and tested with my G210.
find quote
moep Offline
Junior Member
Posts: 22
Joined: Mar 2004
Reputation: 0
Location: Austria
Post: #20
paoleary Wrote:Updated patch again. Turns out no modifications to hda_intel.c are actually needed, since all nVidia stuff is recognized in the existing entry. This means the only file we need to touch against the official release of ALSA is patch_nvhdmi.c. Patch is once again compiled and tested with my G210.

What's odd is that I have my 210 working just fine despite having both modules in a completely unmodified state (I verified via md5).
Can you try reverting to the standard modules to check if HDMI audio support persists?
find quote
Post Reply