PATCH: small pc98xx fix for sound

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 8 Apr 2003 01:39:02 +0100


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/sound/isa/cs423x/pc98.c linux-2.5.67-ac1/sound/isa/cs423x/pc98.c
--- linux-2.5.67/sound/isa/cs423x/pc98.c 2003-03-26 20:00:02.000000000 +0000
+++ linux-2.5.67-ac1/sound/isa/cs423x/pc98.c 2003-04-03 23:42:15.000000000 +0100
@@ -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. */
-
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/