[oss-devel] hdaudio is broken on my box

Cristi Magherusan majeru at gentoo.ro
Fri Feb 15 02:50:31 EET 2008


I figured it out, it was a small typo (i guess), this is the fix:

diff -r b4494090516c -r c983c89fa2a2 kernel/drv/hdaudio/hdaudio.c
--- a/kernel/drv/hdaudio/hdaudio.c	Thu Feb 14 02:07:35 2008 +0200
+++ b/kernel/drv/hdaudio/hdaudio.c	Fri Feb 15 02:46:03 2008 +0200
@@ -1396,7 +1396,7 @@ install_outputdevs (hda_devc * devc)
 	if (endpoints[j].skip)
 	  continue;
 
-	if (n >= MAX_OUTPUTS)
+	if (j >= MAX_OUTPUTS)
 	{
 		cmn_err(CE_CONT, "Too many output endpoints. Endpoint %d ignored.\n", j);
 		continue;

or for the lazy ones, just run this:

hg import http://rafb.net/p/bciSC882.txt

Best regards, 
Cristi



More information about the oss-devel mailing list