Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-22-11, 11:59 AM   #1
JCA
Registered User
 
Join Date: Jan 2007
Posts: 8
Default No HDMI sound with a GeForce 210

I went ahead and got a GeForce 210-based PNY card. The video works fine, but I have not been able to get the sound working yet. Here is some information:

I am running Slackware 13.1 (2.6.33.4 kernel) on a PC built around an Asus M4A78LT-M motherboard. This motherboard comes with a built-in ATi video chip with HDMI, but the ATi drivers just won't work. I have therefore disabled the HDMI sound associated with this chip at the BIOS. For the PNY card I am using the 260.19.29 drivers from Nvidia.

The PNY card is recognized correctly by the kernel, and so is the audio hardware associated with it, as can be seen in this fragment of lshw output:


*-display
description: VGA compatible controller
product: GT200 [GeForce 210]
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_li
st rom
configuration: driver=nvidia latency=0
resources: irq:18 memory:fd000000-fdffffff memory:d0000000-dffff
fff(prefetchable) memory:ce000000-cfffffff(prefetchable) ioport:dc00(size=128) m
emory:fea80000-feafffff(prefetchable)
*-multimedia
description: Audio device
product: High Definition Audio Controller
vendor: nVidia Corporation
physical id: 0.1
bus info: pci@0000:01: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:18 memory:fea7c000-fea7ffff

I also have the following:

# cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfea7c000 irq 18

# cat /proc/asound/card0/codec#0
Codec: Nvidia ID b
Address: 0
Function Id: 0x1
Vendor Id: 0x10de000b
Subsystem Id: 0x10de0101
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
rates [0x0]:
bits [0x0]:
formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Unsolicited: tag=00, enabled=0
Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Connection: 1
0x04
And similarly for codec#1, codec#2 and codec#3.

# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.

When I invoke alsamixer (which identifies itself as version 1.0.23) the Nvidia device is correctly identified, but the following message is printed out:

"This sound device does not have any controls."

When launching mplayer I get the following diagnostics:

[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1293snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1018snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: No such file or directory
[AO ESD] esd_open_sound failed: Connection timed out
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pcm_hw.c:1293snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1018snd_pcm_dmix_open) unable to open slave
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4

Even more, this is what I get from aplay:

# aplay -l output
**** List of PLAYBACK Hardware Devices ****

It would seem that, at the very least, I have a problem with the sound configuration for the Nvidia HDMI sound device. Any help on how to sort this out will be much appreciated.
JCA is offline   Reply With Quote
Old 01-23-11, 07:48 PM   #2
JCA
Registered User
 
Join Date: Jan 2007
Posts: 8
Default Re: No HDMI sound with a GeForce 210

OK, a bit of progress but still not there. I compiled by own kernel, version 2.6.36. and here is what has changed:

First, alsamixer recognizes the HDMI sound device in the GeForce 210 and displays four S/PDIF playback items that I made sure to un-mute.

Second, the snd_hda_codec_nvhdmi module is now loaded without any problems.

Third, the output from aplay -l output is now

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: pcsp [pcsp], device 0: pcspeaker [pcsp]
Subdevices: 1/1
Subdevice #0: subdevice #0

But still no sound. I have tested this with two different devices (a TV and a monitor) which both work correctly, and an HDMI cable that is known to work correctly as well. I seem to be missing something in the configuration of my card, but I am at a loss as to what it may be.
JCA is offline   Reply With Quote
Old 01-24-11, 12:28 PM   #3
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: No HDMI sound with a GeForce 210

Please take a look at /proc/asound/card0/eld*. Which file contains your monitor information? The files are numbered 0, 1, 2, 3, and correspond to ALSA device IDs 3, 7, 8, 9. Then, try the following command:

speaker-test -c 2 -r 48000 -D hw:0,N

where N is 3/7/8/9 as mentioned above.

Also, you can try:

aplay -D hw:0,N filename.wav

if you have a wav file to test with.
Stephen Warren is offline   Reply With Quote
Old 01-24-11, 02:05 PM   #4
JCA
Registered User
 
Join Date: Jan 2007
Posts: 8
Default Re: No HDMI sound with a GeForce 210

Quote:
Originally Posted by Stephen Warren View Post
Please take a look at /proc/asound/card0/eld*. Which file contains your monitor information? The files are numbered 0, 1, 2, 3, and correspond to ALSA device IDs 3, 7, 8, 9. Then, try the following command:

speaker-test -c 2 -r 48000 -D hw:0,N

where N is 3/7/8/9 as mentioned above.

Also, you can try:

aplay -D hw:0,N filename.wav

if you have a wav file to test with.
I have four eld* files: eld#0.0, eld#1.0, eld#2.0, eld#3.0. The 0, 1 and 3 files contain the following:
monitor_present 0
eld_valid 0
monitor_name
connection_type HDMI
eld_version [0x0] reserved
edid_version [0x0] no CEA EDID Timing Extension block present
manufacture_id 0x0
product_id 0x0
port_id 0x0
support_hdcp 0
support_ai 0
audio_sync_delay 0
speakers [0x0]
sad_count 0

The 2 file contains the following:

monitor_present 1
eld_valid 1
monitor_name Hanns.G HG28
connection_type HDMI
eld_version [0x2] CEA-861D or below
edid_version [0x3] CEA-861-B, C or D
manufacture_id 0x6422
product_id 0x1cf3
port_id 0x20000
support_hdcp 0
support_ai 0
audio_sync_delay 0
speakers [0x1] FL/FR
sad_count 1
sad0_coding_type [0x1] LPCM
sad0_channels 2
sad0_rates [0xe0] 44100 48000 88200
sad0_bits [0xe0000] 16 20 24

This is my monitor all right. With this,

speaker-test -c 2 -r 48000 -D hw:0,8 returns the following:

speaker-test 1.0.23

Playback device is hw:0,8
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
1 - Front Right
^C

And sound (white noise) from my speakers! Thanks!

As for aplay, aplay -D hw:0,8 TestSnd.wav I got sound all right, if distorted. I tried with other wav files, but in many cases I only got error messages and no sound:

Playing WAVE '1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

or

aplay: test_wavefile:870: can't play WAVE-file format 0x0011 which is not PCM or FLOAT encoded

But I guess that's a different story.

How do I configure my system so that applications (mplayer, vlc, mythtv, etc.) use the correct device by default?
JCA is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:43 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.