Skip to contentSkip to conversation

PATCH - SB Live 5.1 - Center noise

PATCH p z oooo 1 participant 1 message Dec 10, 2003

lore
Share & tools
lore

p z oooo

author
#0 lore raw

Hi,

This patch defaults initial center/lfe jack to analog mode (now it is initialized to digital mode). This solves problem with noise from center on SB Live 5.1.

Peter Zubaj

____________________________________
http://www.logofun.pobox.sk - urobte radost svojmu telefonu

alsa-kernel/pci/emu10k1/emu10k1_main.c +3 -8
diff -r -u o/alsa-kernel/pci/emu10k1/emu10k1_main.c n/alsa-kernel/pci/emu10k1/emu10k1_main.c
@@ -239,14 +239,9 @@
  		}
 	}
 	
-	if (!emu->APS) {	/* enable analog output */
-		if (!emu->audigy) {
-			unsigned int reg = inl(emu->port + HCFG);
-			outl(reg | HCFG_GPOUT0, emu->port + HCFG);
-		} else {
-			unsigned int reg = inl(emu->port + A_IOCFG);
-			outl(reg | A_IOCFG_GPOUT0, emu->port + A_IOCFG);
-		}
+	if (emu->audigy) {	/* enable analog output */
+		unsigned int reg = inl(emu->port + A_IOCFG);
+		outl(reg | A_IOCFG_GPOUT0, emu->port + A_IOCFG);
 	}
 
 	/*