patch-2.3.46 linux/drivers/sound/dmasound.c

Next file: linux/drivers/sound/es1370.c
Previous file: linux/drivers/sound/ac97_codec.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.45/linux/drivers/sound/dmasound.c linux/drivers/sound/dmasound.c
@@ -253,6 +253,7 @@
 static volatile struct dbdma_cmd *beep_dbdma_cmd;
 static void (*orig_mksound)(unsigned int, unsigned int);
 static int is_pbook_3400;
+static unsigned char *latch_base;
 static int is_pbook_G3;
 static unsigned char *macio_base;
 
@@ -3695,7 +3696,7 @@
 		} else if (is_pbook_3400) {
 			feature_set(awacs_node, FEATURE_IOBUS_enable);
 			udelay(10);
-			in_8((unsigned char *)0xf301a190);
+			in_8(latch_base + 0x190);
 		}
  		/* Resume pending sounds. */
  		PMacPlay();
@@ -5698,7 +5699,9 @@
 			 * sound input.  The 0x100 enables the SCSI bus
 			 * terminator power.
 			 */
-			in_8((unsigned char *)0xf301a190);
+			latch_base = (unsigned char *) ioremap
+				(0xf301a000, 0x1000);
+			in_8(latch_base + 0x190);
 		} else if (machine_is_compatible("PowerBook1,1")
 			   || machine_is_compatible("AAPL,PowerBook1998")) {
 			struct device_node* mio;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)