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

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-13-10, 10:32 AM   #73
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Enable audio through HDMI on GT240

zim2dive,

First, you should try removing the options "enable_msi=0" and/or "probe_mask=0xffff,0xfff2" from /etc/modprobe.d/sound.conf and rebooting. The first option should now be the in-kernel default for any NVIDIA audio controller as I understand it. I believe the second option restricts the set of codecs that the driver searches for, and could possibly be knocking out your analog port on the motherboard audio controller. Note that removing this option might change the card/device/... IDs of any existing working ports.

What does "sudo aplay -L" say? What is the content of /proc/asound/cards?

Thanks.
Stephen Warren is offline   Reply With Quote
Old 08-31-10, 02:57 PM   #74
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240

Hi Guys,

I have an atom330 mobo with a GT 240.

VID CARD = ASUS ENGT240 Silent GeForce GT 240 550MHZ 1GB DDR3 1.58GHZ HDMI DVI
RECEIVER = Denon, AVR-3808CI ---> can play pretty much every codec out at the moment.

At this point I have minimal ubuntu 10.04 64-bit + ALSA 1.0.23 installed.
I can see NVidia HDMI devices through aplay *BUT I HAVE YET TO HEAR A SOLITARY PEEP OUT OF ANY TESTING DONE* Speaker-test and aplay all appear to work but not a single sound.

--------------------------------------------------
xbmc@xbmc:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.
Compiled on Aug 31 2010 for kernel 2.6.32-24-generic (SMP).

xbmc@xbmc:~$ nvidia-settings -v
nvidia-settings: version 256.53 (buildmeister@builder97.nvidia.com) Fri Aug 27 20:55:01 PDT 2010

xbmc@xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708BCE Analog [VT1708BCE Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 0: Intel [HDA Intel], device 1: VT1708BCE Digital [VT1708BCE Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

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

cat /etc/modprobe.d/sound.conf
options snd-hda-intel enable_msi=0


------------------------------------------------------
produces no errors, but also no sounds????

xbmc@xbmc:~$ aplay -D plughw:1,3 -fcd 01_hells_bells.flac
Playing raw data '01_hells_bells.flac' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
xbmc@xbmc:~$ aplay -D plughw:1,7 -fcd 01_hells_bells.flac
Playing raw data '01_hells_bells.flac' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
xbmc@xbmc:~$ aplay -D plughw:1,8 -fcd 01_hells_bells.flac
Playing raw data '01_hells_bells.flac' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
thethirdnut is offline   Reply With Quote
Old 09-01-10, 10:46 AM   #75
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Enable audio through HDMI on GT240

thethirdnut,

Can you please try "hw:3" instead of "plughw:3". Also, did you try plughw:9/hw:9? Any of the four devices might map to the HDMI port you're using.

You may also wish to run "alsamixer -c 1" and ensure nothing is muted.

"speakertest -c 2" might be the simplest test, rather than aplay.

If none of that works, pleas can you please copy and attach /proc/asound/card1/codec* and /proc/asound/card1/eld*.

Thanks.
Stephen Warren is offline   Reply With Quote
Old 09-01-10, 11:14 AM   #76
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240

Quote:
Originally Posted by Stephen Warren View Post
thethirdnut,

Can you please try "hw:3" instead of "plughw:3". Also, did you try plughw:9/hw:9? Any of the four devices might map to the HDMI port you're using.

You may also wish to run "alsamixer -c 1" and ensure nothing is muted.

"speakertest -c 2" might be the simplest test, rather than aplay.

If none of that works, pleas can you please copy and attach /proc/asound/card1/codec* and /proc/asound/card1/eld*.

Thanks.
Thanks for the reply Stephen.

I will try the eld* trouble-shooting and other steps you mentioned. I have two other discussions going in ubuntuforums....will report back.

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

http://ubuntuforums.org/showthread.php?t=1552250&page=2
thethirdnut is offline   Reply With Quote
Old 09-01-10, 11:44 PM   #77
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240

Stephen; here's some more details.

-----------------------------

So I tried the linux-backports-modules-alsa-2.6.32-24 on my rig and my eld are all still EMPTY.

Atom330 + GT 240 + NVIDIA 256.53 + ALSA 1.0.23 backports

Code:
xbmc@xbmc:~$ cat /proc/asound/version 
Advanced Linux Sound Architecture Driver Version 1.0.23.
Compiled on Jul  6 2010 for kernel 2.6.32-24-generic (SMP).

xbmc@xbmc:~$ uname -r
2.6.32-24-generic

xbmc@xbmc:~$ nvidia-settings -v
nvidia-settings:  version 256.53  

xbmc@xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708BCE Analog [VT1708BCE Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: Intel [HDA Intel], device 1: VT1708BCE Digital [VT1708BCE Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

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

xbmc@xbmc:~$ cat /proc/asound/card1/eld#*
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
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
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
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

xbmc@xbmc:~$ cat /proc/asound/card1/codec#*
Codec: Nvidia GT240 HDMI
Address: 0
Function Id: 0x1
Vendor Id: 0x10de000d
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
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Device: name="NVIDIA HDMI", type="HDMI", device=3
  Converter: stream=0, channel=0
  Digital: Enabled GenLevel
  Digital category: 0x2
  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: 0x40: OUT
  Unsolicited: tag=05, enabled=1
  Connection: 1
     0x04
Codec: Nvidia GT240 HDMI
Address: 1
Function Id: 0x1
Vendor Id: 0x10de000d
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
  Control: name="IEC958 Playback Con Mask", index=1, device=0
  Control: name="IEC958 Playback Pro Mask", index=1, device=0
  Control: name="IEC958 Playback Default", index=1, device=0
  Control: name="IEC958 Playback Switch", index=1, device=0
  Device: name="NVIDIA HDMI", type="HDMI", device=7
  Converter: stream=0, channel=0
  Digital: Enabled
  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: 0x40: OUT
  Unsolicited: tag=05, enabled=1
  Connection: 1
     0x04
Codec: Nvidia GT240 HDMI
Address: 2
Function Id: 0x1
Vendor Id: 0x10de000d
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
  Control: name="IEC958 Playback Con Mask", index=2, device=0
  Control: name="IEC958 Playback Pro Mask", index=2, device=0
  Control: name="IEC958 Playback Default", index=2, device=0
  Control: name="IEC958 Playback Switch", index=2, device=0
  Device: name="NVIDIA HDMI", type="HDMI", device=8
  Converter: stream=0, channel=0
  Digital: Enabled
  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: 0x40: OUT
  Unsolicited: tag=05, enabled=1
  Connection: 1
     0x04
Codec: Nvidia GT240 HDMI
Address: 3
Function Id: 0x1
Vendor Id: 0x10de000d
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
  Control: name="IEC958 Playback Con Mask", index=3, device=0
  Control: name="IEC958 Playback Pro Mask", index=3, device=0
  Control: name="IEC958 Playback Default", index=3, device=0
  Control: name="IEC958 Playback Switch", index=3, device=0
  Device: name="NVIDIA HDMI", type="HDMI", device=9
  Converter: stream=0, channel=0
  Digital: Enabled
  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: 0x40: OUT
  Unsolicited: tag=05, enabled=1
  Connection: 1
     0x04
thethirdnut is offline   Reply With Quote
Old 09-02-10, 10:56 AM   #78
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Enable audio through HDMI on GT240

thethirdnut,

I believe you need ALSA modules with the following patch:

http://git.kernel.org/?p=linux/kerne...1cb5fbe7fc9c75

It looks like linux-backports-modules-alsa-2.6.32-24 doesn't contain this yet. For a bug related to this, see:

https://bugs.launchpad.net/ubuntu/+s...32/+bug/611810

One of the comments there recommends the following as a way to get a more up-to-date ALSA driver:

https://wiki.ubuntu.com/Audio/Instal...aDriverModules
Stephen Warren is offline   Reply With Quote
Old 09-02-10, 12:05 PM   #79
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240

Thanks again Stephen.

Quote:
Originally Posted by Stephen Warren View Post
thethirdnut,

I believe you need ALSA modules with the following patch:

http://git.kernel.org/?p=linux/kerne...1cb5fbe7fc9c75

It looks like linux-backports-modules-alsa-2.6.32-24 doesn't contain this yet. For a bug related to this, see:

https://bugs.launchpad.net/ubuntu/+s...32/+bug/611810

One of the comments there recommends the following as a way to get a more up-to-date ALSA driver:

https://wiki.ubuntu.com/Audio/Instal...aDriverModules
Where I started with this is all is the ALSA Install Script http://ubuntuforums.org/showthread.php?t=1046137 and 256.44 then 256.53 all of which was covered in this guide. http://wiki.xbmc.org/index.php?title...T220,_or_GT240

The backport-modules was another attempt.

Are you saying that the install script would NOT have the patched modules?

-------------------------------------------------------

I also did try the ubuntu-audio-dev/ppa at one point too, HOWEVER, I do not think I applied the linux-alsa-driver-modules in those same steps.

I will try that out and let you know.

--------------------------------------------------------

Do I also need to modify the /etc/modprobe.d/alsa-base.conf either way?
thethirdnut is offline   Reply With Quote
Old 09-02-10, 12:09 PM   #80
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Enable audio through HDMI on GT240

thethirdnut,

The ALSA install script mentioned in that ubuntuforums.org post appears to install the latest official release of ALSA. No official release includes the patch you need yet; it's only in their git repository.
Stephen Warren is offline   Reply With Quote

Old 09-02-10, 12:41 PM   #81
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240

OK, so I shall:

a) reinstall ALSA 1.0.23 through the script
b) apply the patch(es)

I could use a little assistance on how to ensure I am downloading correct patch file and applying it to proper file?

Can I wget the patch file(s) from somewhere and then use a command like this?

sudo patch -p1 -d /usr/src/Alsa-1.0.23/alsa-driver-1.0.23/sound < new.patch

Thanks
thethirdnut is offline   Reply With Quote
Old 09-03-10, 12:19 AM   #82
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240



GOOD NEWS! I have something to report...

Long story - short = YOU HAVE TO RUN THESE TESTS WITH X RUNNING!

This HTPC is an Ubuntu minimal install -- thus I have been booting into the shell for every change made to ALSA, nvidia drivers, etc. My HTPC was/is connected to the AMP and showing login info, etc on the plasma TV too so I thought this was OK.

I have gone back-forth-back-forth 100 ways over last few days and all the while cat /proc/asound/card0/eld#* remained empty.

I also recalled seeing some HDMI specific info in the /var/log/syslog at certain points, but was never sure how/where it got there sporadically.

Anyways, saw some old Toshiba forum post about audio not working when not using the HDMI for video so I ran xinit xbmc and watched /var/log/syslog...It showed a bunch of new HDMI info, /proc/asound/card0/eld#* was no longer empty, and now sudo aplay -D plughw: tests work too!

Thanks for feedback Stephen; this was a greasy one.
thethirdnut is offline   Reply With Quote
Old 09-03-10, 10:35 AM   #83
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Enable audio through HDMI on GT240

thethirdnut,

That's great news. Sorry, I didn't mention that; I'd just assumed you were testing inside X!

Did you end up using the linux-alsa-driver-modules, or ubuntu-audio-dev/ppa, or something else in the end? Thanks.
Stephen Warren is offline   Reply With Quote
Old 09-04-10, 04:53 PM   #84
thethirdnut
Registered User
 
Join Date: Aug 2010
Posts: 7
Default Re: Enable audio through HDMI on GT240

I was using the ALSA upgrade script + nvidia 1.95.31.

Going back to 256.53 now.
thethirdnut 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 03:36 PM.


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