From alsa-devel-owner@alsa.jcu.cz  Sun May 17 08:41:11 1998
Received: from sandy.force9.co.uk (root@39.usr02.wor.dialup.force9.net [195.166.131.103] (may be forged))
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id IAA02328
	for <alsa-devel@alsa.jcu.cz>; Sun, 17 May 1998 08:40:40 +0200
Received: (from chrisb@localhost)
	by sandy.force9.co.uk (8.8.5/8.8.5) id SAA06633
	for alsa-devel@alsa.jcu.cz; Sat, 16 May 1998 18:44:16 GMT
From: Christopher Butler <chrisb@sandy.force9.co.uk>
Message-Id: <199805161844.SAA06633@sandy.force9.co.uk>
Subject: [PATCH] My mistake... :)
To: alsa-devel@alsa.jcu.cz
Date: Sat, 16 May 1998 18:44:15 +0000 (UTC)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=ELM895344255-6626-0_
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


--ELM895344255-6626-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi!

I must've misread the specs when I made a change in one of my previous
patches. The bit I said didn't look right, was :)

Here's the patch against 0.1.1 to change it back...

--
Chris Butler <chrisb@sandy.force9.co.uk>


--ELM895344255-6626-0_
Content-Type: text/plain
Content-Disposition: inline; filename="/tmp/sb-rate.patch"
Content-Transfer-Encoding: 7bit

--- lowlevel/sb/sb8.c~	Fri Apr 24 08:43:22 1998
+++ lowlevel/sb/sb8.c	Sat May 16 16:17:46 1998
@@ -71,9 +71,8 @@
         if ( rate > 15000 ) rate = 15000;
       }
       if ( pchn -> voices > 1 ) {
-        /* This doesn't look right to me - Chris Butler */
-        /* rate = rate > (22050 + 11025) / 2 ? 22050 : 11025; */
-        if ( rate > 22050 ) rate = 22050;        
+        rate = rate > (22050 + 11025) / 2 ? 22050 : 11025;
+
         codec -> speed8 = (65536 - (256000000 + rate) / (rate << 1)) >> 8;
         if ( direction == SND_PCM_PLAYBACK ) {
           codec -> fmt8 = SB_DSP_HI_OUTPUT_AUTO;

--ELM895344255-6626-0_

--ELM895344255-6626-0_--

