Date: Mon, 13 Dec 1999 16:23:17 +0900 From: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> To: Amancio Hasty <hasty@rah.star-gate.com>, multimedia@freebsd.org Cc: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> Subject: Fix of DSP launch command in sys/i386/isa/sound/sb16_dsp.c (-stable) Message-ID: <14420.40677.146636.61791G@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
The DSP launch command in sys/i386/isa/sound/sb16_dsp.c:sb16_dsp_trigger()
seems to not work for samples of 16bit. The patch below would fix that.
[-- Attachment #2 --]
diff -urN sys.3.3r/i386/isa/sound/sb16_dsp.c sys/i386/isa/sound/sb16_dsp.c
--- sys.3.3r/i386/isa/sound/sb16_dsp.c Fri Jan 1 17:18:06 1999
+++ sys/i386/isa/sound/sb16_dsp.c Mon Dec 13 15:41:36 1999
@@ -378,8 +378,12 @@
if (!bits)
sb_dsp_command(0xd0); /* Halt DMA */
- else if (bits & irq_mode)
- sb_dsp_command(0xd4); /* Continue DMA */
+ else if (bits & irq_mode) {
+ if (dsp_16bit)
+ sb_dsp_command(0xd6); /* Continue 16bit DMA */
+ else
+ sb_dsp_command(0xd4); /* Continue 8bit DMA */
+ }
}
static void
--
Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> <tanimura@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14420.40677.146636.61791G>
