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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-30-10, 12:37 PM   #85
tack
Registered User
 
Join Date: Jul 2004
Posts: 29
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Picander View Post
I knew it, Th Chow of nvidia told me once the 256.xx were going to solve the problem.
I didn't report it here because i was tired of the same answer, but i'm very glad it works good now.
Happily, I can confirm that 256.29 fixes the problem for me too.
tack is offline   Reply With Quote
Old 08-24-10, 09:50 PM   #86
Balthazaar
Registered User
 
Join Date: Aug 2010
Posts: 9
Default Re: HDMI audio no longer works with 190.xx releases

Hi,

I'm using a Atom/Ion system for my HTPC running Ubuntu minimal 10.04 LTS (kernel 2.6.32-24), ALSA 1.0.22 & XBMC svn 33035 .

I recently followed this howto: http://forum.xbmc.org/showthread.php?t=74778 to get my multichannel pcm working. I am running the 256.25 drivers.

2 ch (stereo) and 6 ch (5.1) + 8ch (7.1) pcm works great - no issues at all. However, I have many 4ch FLAC files in quadraphonic (Lf Rf Ls Rs) that produce no audio at all in this configuration. My receiver indicates that there is no pcm being sent.

When 'playing' a 4ch flac (or wav) with xbmc, there are no errors, the file seems to play - just no audio. When I run speaker-test with the -c4 switch, it seems to be working - again, no audio.

I've checked and re-checked the XBMC & ALSA configs. If I had error logs to show you I would - there just aren't any errors!

It's my understanding that audio via hdmi is gpu specific, so I'd thought I'd post here to see if anyone here might have a suggestion. There is a workaround - rebuild the flac files with silent C + LFE channels, but that's a kludge and not an elegent fix IMO.

Any help appreciated!
Balthazaar is offline   Reply With Quote
Old 08-25-10, 11:39 AM   #87
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: HDMI audio no longer works with 190.xx releases

Balthazaar, could you please:

a) Upload a copy of a 4-channel file to the NVIDIA VDPAU file drop (see VDPAU forum stick for instructions).

b) Post a copy of /proc/asound/card*/codec* and /proc/asound/card*/eld*.

I'll try to repro your issue.

Thanks.
Stephen Warren is offline   Reply With Quote
Old 08-25-10, 11:46 AM   #88
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: HDMI audio no longer works with 190.xx releases

All,

I've just recently started looking into audio issue and hadn't seen this thread until now.

This is a pretty long thread, and I'm not entirely sure exactly which issues people are still having. If you're having any audio issues with the latest ALSA release and NVIDIA driver, can you please start a new thread describing your issue. Thanks.

Note: Some issues have recently been fixed in ALSA git, but not yet in any official git release. Some of these patches are making their way into current distros.

a) Some recent GPUs (e.g. GTX 400 seris) not supported at all by the ALSA driver. Fixed recently in alsa driver git (codecs don't show up or show up as unknown in /proc/asound/card*/codec*)

b) Issues with PD/ELDV bits causing ALSA to think that a monitor is not plugged in. Fixed recently in alsa driver git. (ELD data in /proc/asound/card*/eld* shows up as not valid, or empty)

c) ALSA library wouldn't expose sinks named "hdmi" for all possible connectors on a board. HW devices e.g. "hw"1,3", "hw:1,7", "hw:1,8", "hw:1,9" would work, but "hdmi" would only refer to the first of these. This is recently fixed in ALSA library git. Now, something like "hdmi:1,0", "hdmi:1,1", "hdmi:1,2", "hdmi:1,3" should all work. Run "aplay -L" for the exact list on your system. This should remove the need to use a "probe_mask" option to the kernel module, unless you're using pulseaudio, which currently only exposes the first ALSA device on a card. I'm working on that.

Thanks.
Stephen Warren is offline   Reply With Quote
Old 08-25-10, 05:21 PM   #89
Balthazaar
Registered User
 
Join Date: Aug 2010
Posts: 9
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Stephen Warren View Post
Balthazaar, could you please:

a) Upload a copy of a 4-channel file to the NVIDIA VDPAU file drop (see VDPAU forum stick for instructions).
Done. File is: chan-id_4.0.flac


Quote:
Originally Posted by Stephen Warren View Post
b) Post a copy of /proc/asound/card*/codec* and /proc/asound/card*/eld*.
Result of: cat /proc/asound/card*/codec*

Code:
Codec: Nvidia MCP7A HDMI
Address: 3
Function Id: 0x1
Vendor Id: 0x10de0007
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 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital: Enabled GenLevel
  Digital category: 0x2
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x05 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x18560110: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x04
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x07 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560121: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x1
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x08 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x09 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560122: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x2
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x08
Node 0x0a [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x0b [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560123: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x3
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0a
Node 0x0c [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x0d [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560124: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x4
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c

No joy with the second one.

Code:
cat: /proc/asound/card*/eld*:   No such file or directory.

Thanks for you assistance Stephen.

Cheers,
Mark
Balthazaar is offline   Reply With Quote
Old 08-27-10, 05:27 PM   #90
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: HDMI audio no longer works with 190.xx releases

Balthazaar,

I have reproduced your issue using speaker-test; 2/6/8 channels work (at least the front-left/front-right my monitor supports), but 4 channels doesn't at all. We'll investigate a fix.
Stephen Warren is offline   Reply With Quote
Old 08-28-10, 04:56 PM   #91
Balthazaar
Registered User
 
Join Date: Aug 2010
Posts: 9
Default Re: HDMI audio no longer works with 190.xx releases

Thanks Stephen, I appreciate it.
Balthazaar is offline   Reply With Quote
Old 08-30-10, 12:39 AM   #92
Maletor
Registered User
 
Join Date: Aug 2010
Posts: 1
Default Re: HDMI audio no longer works with 190.xx releases

So if I compile ALSA drivers and libraries from the git repository I will be able to get HDMI sound through my GTX 460?

I looked on the logs and there is no mention of anybody committing this fix.

What exact steps do I need to take to get HDMI sound through this card?
Maletor is offline   Reply With Quote

Old 08-30-10, 10:44 AM   #93
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: HDMI audio no longer works with 190.xx releases

Yes, you'll need the latest ALSA driver to support that GPU right now.

The specific commits you'll need are:

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

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

If you're using Ubuntu, there is a PPA which apparently always contains the latest ALSA driver, and so I suppose will include those fixes:

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

(See link in comment 3)
Stephen Warren is offline   Reply With Quote
Old 09-02-10, 10:39 AM   #94
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: HDMI audio no longer works with 190.xx releases

Balthazaar,

It turns out that some of our audio HW simply doesn't support 4-channel audio, and some doesn't support 6-channel audio (both even when 2- and 8-channel are supported).

NVIDIA needs to update the ALSA driver to report this more obviously to the application; by failing any attempts to configure the ALSA "PCM" with an unsupported configuration.

Apparently, there is also an ALSA library plugin "upsample" that should be able to convert 4-channel to 8-channel audio as it's being played. However, this isn't a default plugin, and so applications will have to take some specific action to activate it. Perhaps it can be enabled through an ALSA configuration file too.

Sorry this issue can't be solved!
Stephen Warren is offline   Reply With Quote
Old 09-03-10, 07:37 AM   #95
Balthazaar
Registered User
 
Join Date: Aug 2010
Posts: 9
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Stephen Warren View Post
Sorry this issue can't be solved!
Stephen,

Thanks for your efforts. It's a shame it can't be easily resolved. I do have a workaround, even if it's somewhat inelegant (adding silent C & LFE channels, 4.0 -> 5.1).

I will look further into a possible ALSA plugin based solution as you suggest.
Balthazaar is offline   Reply With Quote
Old 01-12-11, 10:32 AM   #96
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: HDMI audio no longer works with 190.xx releases

Balthazaar,

We have provided a patch to the ALSA project to disable 4- and/or 6-channel audio support depending on the capabilities of the GPU/chipset. See http://git.kernel.org/?p=linux/kerne...8db67f50f372a5.

Ubuntu maintains a repository which builds the latest ALSA code. See details at https://wiki.ubuntu.com/Audio/Instal...aDriverModules. Are you able to validate that you now see an error message when attempting to use an unsupported number of channels, rather than simply silence or corrupted audio?

Thanks.
Stephen Warren 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 05:05 AM.


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