support for Nvidia GT220 is missing

Bug #550655 reported by Jaakan Shorter
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

Mythbuntu 10.04 x64

Description: Ubuntu lucid (development branch)
Release: 10.04

alsa-base:
  Installed: 1.0.22.1+dfsg-0ubuntu3
  Candidate: 1.0.22.1+dfsg-0ubuntu3
  Version table:
 *** 1.0.22.1+dfsg-0ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

http://gist.github.com/324070/ here is a patch someone else made

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, ALC883 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Digital
    IEC958 (S/PDIF) Digital Audio Output

Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :
Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :
Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

from lshw

              *-pci:0
                   description: PCI bridge
                   product: nVidia Corporation
                   vendor: nVidia Corporation
                   physical id: 0
                   bus info: pci@0000:02:00.0
                   version: a2
                   width: 32 bits
                   clock: 33MHz
                   capabilities: pci pm pciexpress bus_master cap_list
                   resources: ioport:e000(size=4096) memory:fa000000-fbffffff ioport:c0000000(size=536870912)
                 *-display
                      description: VGA compatible controller
                      product: GT216 [GeForce GT 220]
                      vendor: nVidia Corporation
                      physical id: 0
                      bus info: pci@0000:03:00.0
                      version: a2
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm msi pciexpress bus_master cap_list rom
                      configuration: driver=nvidia latency=0
                      resources: irq:16 memory:fa000000-faffffff memory:c0000000-cfffffff(prefetchable) memory:de000000-dfffffff(prefetchable) ioport:ec00(size=128) memory:fbf00000-fbf7ffff(prefetchable)
                 *-multimedia
                      description: Audio device
                      product: High Definition Audio Controller
                      vendor: nVidia Corporation
                      physical id: 0.1
                      bus info: pci@0000:03:00.1
                      version: a1
                      width: 32 bits
                      clock: 33MHz
                      capabilities: pm msi pciexpress bus_master cap_list
                      configuration: driver=HDA Intel latency=0
                      resources: irq:16 memory:fbffc000-fbffffff

Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

jaakan@MYTH64:~$ ls -la /proc/asound/
total 0
dr-xr-xr-x 6 root root 0 2010-03-29 00:23 .
dr-xr-xr-x 213 root root 0 2010-03-28 21:38 ..
dr-xr-xr-x 6 root root 0 2010-03-29 00:23 card0
dr-xr-xr-x 2 root root 0 2010-03-29 00:23 card1
-r--r--r-- 1 root root 0 2010-03-29 00:23 cards
-r--r--r-- 1 root root 0 2010-03-29 00:23 devices
-r--r--r-- 1 root root 0 2010-03-29 00:23 hwdep
-r--r--r-- 1 root root 0 2010-03-29 00:23 modules
lrwxrwxrwx 1 root root 5 2010-03-29 00:23 NVidia -> card0
lrwxrwxrwx 1 root root 5 2010-03-29 00:23 NVidia_1 -> card1
dr-xr-xr-x 2 root root 0 2010-03-29 00:23 oss
-r--r--r-- 1 root root 0 2010-03-29 00:23 pcm
dr-xr-xr-x 2 root root 0 2010-03-29 00:23 seq
-r--r--r-- 1 root root 0 2010-03-29 00:23 timers
-r--r--r-- 1 root root 0 2010-03-29 00:23 version
jaakan@MYTH64:~$

jaakan@MYTH64:~$ cat /proc/asound/NVidia_1/codec#* | grep HDMI
  Pincap 0x09000094: OUT Detect HDMI
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
  Pincap 0x09000094: OUT Detect HDMI
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
  Pincap 0x09000094: OUT Detect HDMI
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
  Pincap 0x09000094: OUT Detect HDMI
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
jaakan@MYTH64:~$ cat /proc/asound/NVidia/codec#* | grep SPDIF
  Pin Default 0x014b7130: [Jack] SPDIF Out at Ext Rear

http://ubuntuforums.org/showthread.php?t=1324681

http://wiki.xbmc.org/index.php?title=HOW-TO_set_up_HDMI_audio_on_nVidia_GeForce_G210,_GT220,_or_GT240

Revision history for this message
Daniel T Chen (crimsun) wrote :

Support was already added in the latest sound-2.6 git. Please use linux-alsa-driver-modules-$(uname -r) from ppa:ubuntu-audio-dev. Make sure linux-backports-modules-alsa* are *not* installed.

Changed in alsa-driver (Ubuntu):
status: New → Fix Committed
Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

add-apt-repository ppa:ubuntu-audio-dev/ppa

installed linux-alsa-driver-modules-2.6.xx-xx( matches my kernel )

vim /etc/modprobe.d/sound.conf

-- added the following for NV GT220

options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2

-- saved and rebooted

 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC883 Digital [ALC883 Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

cat /proc/asound/NVidia_1/codec#* | grep HDMI
Codec: Nvidia GT220 HDMI
  Device: name="NVIDIA HDMI", type="HDMI", device=3
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI

aplay -D plughw:1,3 /usr/share/sounds/alsa/Noise.wav
speaker-test -Dhdmi:NVidia_1 -c6

now it works and I didn't disable the other sound card either

Revision history for this message
Max (maxter) wrote :

at the moment it is not possible to install linux-alsa-driver-modules-2.6.32.19 because there are building failures (2.6.32.20 is not present at all in the alsa dev ppa)

there are any chance that this fix will be passed to lucid prior to the final release?
i hope so.. lucid is a lts and the gt2xx is a widely used series of nvidia vga.

@Jaakan Shorter
<quote>
-- added the following for NV GT220
options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2
</quote>
this will work for every gt220 based card? or it is specific for your configuration?

many thanks :)

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 550655] Re: support for Nvidia GT220 is missing

On Tue, Apr 13, 2010 at 10:48 AM, Max <email address hidden> wrote:
> at the moment it is not possible to install linux-alsa-driver-
> modules-2.6.32.19 because there are building failures (2.6.32.20 is not
> present at all in the alsa dev ppa)

Brad, please bump debian/changelog for l-a-d-m in ppa:ubuntu-audio-dev.

> there are any chance that this fix will be passed to lucid prior to the final release?
> i hope so.. lucid is a lts and the gt2xx is a widely used series of nvidia vga.

Which fix specifically?

Revision history for this message
Brad Figg (brad-figg) wrote :

On 04/13/2010 08:50 AM, Daniel Chen wrote:
> On Tue, Apr 13, 2010 at 10:48 AM, Max<email address hidden> wrote:
>> at the moment it is not possible to install linux-alsa-driver-
>> modules-2.6.32.19 because there are building failures (2.6.32.20 is not
>> present at all in the alsa dev ppa)
>
> Brad, please bump debian/changelog for l-a-d-m in ppa:ubuntu-audio-dev.
>
>> there are any chance that this fix will be passed to lucid prior to the final release?
>> i hope so.. lucid is a lts and the gt2xx is a widely used series of nvidia vga.
>
> Which fix specifically?

Daniel,

Done. Source packages uploaded for building.

--
Brad Figg <email address hidden> http://www.canonical.com

Revision history for this message
Max (maxter) wrote :

Il 13/04/2010 17:50, Daniel T Chen ha scritto:

>> there are any chance that this fix will be passed to lucid prior to the final release?
>> i hope so.. lucid is a lts and the gt2xx is a widely used series of nvidia vga.
> Which fix specifically?
sorry if i was not clear.
i would know if the version of linux-alsa-driver-module that provide
support for audio on hdmi will be included in the main repository in the
final lucid release.

Tx

Max

Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

@Max

The options line I used was based on where my card should up. For now I have Motherboard and NV-hdmi-audio enabled, NV shows up second aka Card 1 so I used the second line below. In a month I should have a Pre/pro that has HDMI inputs and then I will disable the on-board and use the first option below.

options snd-hda-intel enable_msi=0 probe_mask=0xfff2 = Card 0
options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2 = Card 1
options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xffff,0xfff2= Card 2

Revision history for this message
James Jones (jamesjones01) wrote :

I made the changes described in comment #6, after disabling the on motherboard graphics/sound, and my system now indeed recognizes the audio device(s) on the GT220 card:

$ 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
card 0: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ lspci | grep Audio
02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)

...but despite all that, no sound coming out of the speakers of the TV my computer is connected to. Have I overlooked something?

Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

Do you have the Kernel module installed and the "probe_mask" line added to /etc/modprobe.d/sound.conf?

When both are correct, the next time you reboot "aplay -l" will only list 1 NVIDIA HDMI and not 4.

Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

also look at comment #11

Revision history for this message
James Jones (jamesjones01) wrote :

Yes, I added the repository to my sources.list, installed the linux-alsa-driver-modules-2.6.xx-xx that matches the kernel installed on the computer, and added the line

options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2

to /etc/modprobe.d/sound.conf (had to reboot twice; I mistyped enable_msi the first time around).

What determines the probe_mask value one should use? The particular graphics card I have is a PNY card, I believe the PNY VCGGT2201XEB-S.

Revision history for this message
Jaakan Shorter (jaakanshorter) wrote :

"aplay -l" is what determines this.

since yours was "card 0: NVidia [HDA NVidia]..."

you would use the following
options snd-hda-intel enable_msi=0 probe_mask=0xfff2

Revision history for this message
James Jones (jamesjones01) wrote :

So for card #n, n - 1 0xffff, and then a 0xfff2. Got it; thanks!

Revision history for this message
James Jones (jamesjones01) wrote :

Make that n; I can't put -1 of something in the file. :)

Revision history for this message
James Jones (jamesjones01) wrote :

Confirmed; works like a charm. Thank you!

Revision history for this message
Max (maxter) wrote :

@Brad

last update of the driver for kernel 2.26.32-24 has broken my audio.
now only the hdmi audio is seen by the system; alsamixer shows only the nvidia hdmi audio output, but all the spdif ports are off and it is not possible to activate them.
so now i have only hdmi audio output device, that doesn't work.

the hdmi audio device is recognized by the system also with the sound.conf option disabled .

the system now only see only one audiodevice so i tried also with:

options snd-hda-intel enable_msi=0 probe_mask=0xfff2

but with no luck; anyway with this configuration alsamixer shows only one spdif out instead of four.

the audio device not available is a:

00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.