Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 1999 23:30:45 -0800
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
Cc:        multimedia@freebsd.org
Subject:   Re: Fix of DSP launch command in sys/i386/isa/sound/sb16_dsp.c (-stable) 
Message-ID:  <199912130730.XAA94910@rah.star-gate.com>
In-Reply-To: Your message of "Mon, 13 Dec 1999 16:23:17 %2B0900." <14420.40677.146636.61791G@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> 

next in thread | previous in thread | raw e-mail | index | archive | help

Cool, I don't have a sb handy so I appreciate if others can test the fix

	Tnks!
	Amancio
> --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--

-- 

 Amancio Hasty
 hasty@rah.star-gate.com




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?199912130730.XAA94910>