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
--Multipart_Mon_Dec_13_16:23:17_1999-1 Content-Type: text/plain; charset=US-ASCII 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. --Multipart_Mon_Dec_13_16:23:17_1999-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="sound.diff" Content-Transfer-Encoding: 7bit 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> --Multipart_Mon_Dec_13_16:23:17_1999-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14420.40677.146636.61791G>