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

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-12-11, 11:38 AM   #97
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Stephen Warren View Post
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).
Is this the same problem I reported here?
I just tried
Code:
speaker-test -c5 -twav -Dplughw:1,7
(and -c3) with 260.19.29 and the problem is still reproducible (while -c7 fails as probably expected; 1, 2, 4, 6 and 8 work fine).

Carl Eugen
cehoyos is offline   Reply With Quote
Old 01-12-11, 11:56 AM   #98
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

Carl,

Judging by discussion on alsa-devel, most HDMI codecs don't support odd channel counts. ALSA will probably be modified to reject 3, 5, 7 channels immediately in all cases irrespective of any other HW limitations.

The specific bug we addressed was that some chipsets support both 2 and 8 channels, so ALSA assumes they support everything in between. In some cases, 4 and/or 6 channels aren't supported. For those chipsets specifically, ALSA now knows that only 2/8 or 2/6/8 channels are supported.
Stephen Warren is offline   Reply With Quote
Old 01-14-11, 10:12 AM   #99
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

Carl,

The issues with odd numbers of channels should be fixed by:

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

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

Together, those disable odd numbers of channels for any HDMI audio controller; it's thought that odd numbers of channels just aren't supported anywhere. You should now get an error message if attempting to use an odd number of channels.
Stephen Warren is offline   Reply With Quote
Old 01-14-11, 01:13 PM   #100
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Stephen Warren View Post
The issues with odd numbers of channels should be fixed by:

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

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

Together, those disable odd numbers of channels for any HDMI audio controller; it's thought that odd numbers of channels just aren't supported anywhere. You should now get an error message if attempting to use an odd number of channels.
Does Mono still work?
(Yes, I will test myself.)

Thank you, Carl Eugen
cehoyos is offline   Reply With Quote
Old 01-14-11, 01:55 PM   #101
Astar
Registered User
 
Join Date: Aug 2008
Posts: 14
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Maletor View Post
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?
I have it working on ubuntu maverick. Check my post. The only problem I have is pulseaudio, which I re-configure after every (re)boot.
Astar is offline   Reply With Quote
Old 01-15-11, 06:18 AM   #102
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Stephen Warren View Post
The issues with odd numbers of channels should be fixed by:
I tested now yesterday's snapshot, and ALL values 1-8 work fine (including the odd ones). Unfortunately, I don't know how old my previous driver version was.

Thank you for looking into this, Carl Eugen
cehoyos is offline   Reply With Quote
Old 01-18-11, 11:45 AM   #103
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

Carl, which ALSA audio device were you using? With hw:N,M, odd numbers aren't supposed to work any more. With plughw:N,M, or any other ALSA device that auto-loads ALSA plugins, it's quite possible odd numbers of channels are getting up-converted to the next higher supported even number, and hence appear to work.
Stephen Warren is offline   Reply With Quote
Old 01-21-11, 02:55 AM   #104
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: HDMI audio no longer works with 190.xx releases

Quote:
Originally Posted by Stephen Warren View Post
Carl, which ALSA audio device were you using? With hw:N,M, odd numbers aren't supposed to work any more. With plughw:N,M, or any other ALSA device that auto-loads ALSA plugins, it's quite possible odd numbers of channels are getting up-converted to the next higher supported even number, and hence appear to work.
I used plughw to test (and you are right that hw fails), but the important thing imo is that it used to block instead of failing.

I wonder if hw used to work for mono (it fails now)...

Carl Eugen
cehoyos is offline   Reply With Quote

Old 02-03-11, 02:52 PM   #105
Balthazaar
Registered User
 
Join Date: Aug 2010
Posts: 9
Default Re: HDMI audio no longer works with 190.xx releases

Sorry, I can't do this - it would render my system inoperable. I have a custom kernel and config that doesn't play nice with Ubuntu updates.

If you can point me to a patched alsa source that will work with kernel 2.6.32 I will give it a try.



Quote:
Originally Posted by Stephen Warren View Post
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.
Balthazaar 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 11:47 PM.


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