* [PATCH 2.4] fix EnE Cardbus bridges for HDSP
@ 2004-08-21 21:22 Daniel Ritz
0 siblings, 0 replies; only message in thread
From: Daniel Ritz @ 2004-08-21 21:22 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel
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@gmx.ch>
--- 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-21 21:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-21 21:22 [PATCH 2.4] fix EnE Cardbus bridges for HDSP Daniel Ritz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox