Update ALSA sound driver for PC-98.
Fix DMA initialze failure on some sound cards.
diff -Nru linux-2.5.66-ac1/sound/isa/cs423x/pc98.c linux98-2.5.66-ac1/sound/isa/cs423x/pc98.c
--- linux-2.5.66-ac1/sound/isa/cs423x/pc98.c 2003-03-25 07:00:18.000000000 +0900
+++ linux98-2.5.66-ac1/sound/isa/cs423x/pc98.c 2003-03-30 22:06:51.000000000 +0900
@@ -3,6 +3,7 @@
* Copyright (c) by Jaroslav Kysela <perex@suse.cz>
* Osamu Tomita <tomita@cinet.co.jp>
* Takashi Iwai <tiwai@suse.de>
+ * Hideaki Okubo <okubo@msh.biglobe.ne.jp>
*
*
* This program is free software; you can redistribute it and/or modify
@@ -290,8 +291,13 @@
snd_printk(KERN_ERR IDENT ": Bad DMA %d\n", dma2[dev]);
return -EINVAL;
}
- if (dma1[dev] != dma2[dev] && dma2[dev] >= 0)
+
+ outb(dma1[dev], 0x29); /* dma1 boundary 64KB */
+ if (dma1[dev] != dma2[dev] && dma2[dev] >= 0) {
+ outb(0, 0x5f); /* wait */
+ outb(dma2[dev], 0x29); /* dma2 boundary 64KB */
intr_bits |= 0x04;
+ }
if (PC9800_SOUND_ID() == PC9800_SOUND_ID_118) {
/* Set up CanBe control registers. */
Regards,
Osamu Tomita
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/