[PATCH 2.4] fix EnE Cardbus bridges for HDSP

From: Daniel Ritz
Date: Sat Aug 21 2004 - 16:30:38 EST


hi marcelo

this has been in 2.6 since may 04. the 2.4 version of it.
against 2.4-bknow

rgds
-daniel

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

this patch clears an almost undocumented EnE specific test register that
makes sound on RME Hammerfall DSP Carbus work...

Signed-off-by: Daniel Ritz <daniel.ritz@xxxxxx>

--- 1.7/drivers/pcmcia/ti113x.h Fri Aug 8 16:07:45 2003
+++ edited/drivers/pcmcia/ti113x.h Sat Aug 21 22:46:00 2004
@@ -134,6 +134,10 @@
/* ExCA IO offset registers */
#define TI113X_IO_OFFSET(map) (0x36+((map)<<1))

+/* EnE test register */
+#define ENE_TEST_C9 0xc9 /* 8bit */
+#define ENE_TEST_C9_TLTENABLE 0x02
+
#ifdef CONFIG_CARDBUS

/*
@@ -155,6 +159,17 @@
new = reg & ~I365_INTR_ENA;
if (new != reg)
exca_writeb(socket, I365_INTCTL, new);
+
+ /*
+ * for EnE bridges only: clear testbit TLTEnable. this makes the
+ * RME Hammerfall DSP sound card working.
+ */
+ if (socket->dev->vendor == PCI_VENDOR_ID_ENE) {
+ u8 test_c9 = config_readb(socket, ENE_TEST_C9);
+ test_c9 &= ~ENE_TEST_C9_TLTENABLE;
+ config_writeb(socket, ENE_TEST_C9, test_c9);
+ }
+
return 0;
}



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/