From owner-FreeBSD-users-jp@jp.freebsd.org  Fri Oct 23 10:30:22 1998
Received: by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id KAA12952;
	Fri, 23 Oct 1998 10:30:22 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from TYO203.gate.nec.co.jp (TYO203.gate.nec.co.jp [202.32.8.211])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id KAA12946
	for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 23 Oct 1998 10:30:20 +0900 (JST)
	(envelope-from y-nakaga@ccs.mt.nec.co.jp)
Received: from mailsv.nec.co.jp (mailsv-le1 [192.168.1.90])
	by TYO203.gate.nec.co.jp (8.9.1a/3.7W98092815) with ESMTP id KAA20898
	for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 23 Oct 1998 10:30:06 +0900 (JST)
Received: from gw.ccs.mt.nec.co.jp (gw.ccs.mt.nec.co.jp [133.201.2.2]) by mailsv.nec.co.jp (8.9.1a/3.7W-MAILSV-NEC) with ESMTP
	id KAA26681 for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 23 Oct 1998 10:30:05 +0900 (JST)
Received: from mail.ccs.mt.nec.co.jp (mail.ccs.mt.nec.co.jp [133.201.3.22]) by gw.ccs.mt.nec.co.jp (8.8.8+2.7Wbeta7/3.3W9-GW_CCS) with ESMTP id KAA05535 for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 23 Oct 1998 10:25:10 +0900 (JST)
Received: from spls63.ccs.mt.nec.co.jp (spls63.ccs.mt.nec.co.jp [172.16.5.30])
	by mail.ccs.mt.nec.co.jp (8.9.1a/3.6W-CCS_Master) with ESMTP id KAA20648
	for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 23 Oct 1998 10:30:04 +0900 (JST)
Received: from ccs.mt.nec.co.jp by spls63.ccs.mt.nec.co.jp (8.8.8+2.7Wbeta7/6.4J.6-slave-1.0)
	id KAA27868; Fri, 23 Oct 1998 10:30:03 +0900 (JST)
Message-Id: <199810230130.KAA27868@spls63.ccs.mt.nec.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Date: Fri, 23 Oct 1998 10:30:02 +0900
From: Nakagawa Yoshihisa <y-nakaga@ccs.mt.nec.co.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: FreeBSD-users-jp 34414
Subject: [FreeBSD-users-jp 34414] Luigi Rizzo: Re: splay-0.8.2 & FreeBSD Audio Driver (980215)
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$BC;$$$N$G(B freebsd-multimedia $B$h$jA4J8%U%)%o!<%I$7$F$7$^$$$^$9$,!"(B
Luigi's new audio driver $B$N>.$5$J%U%!%$%k$N;~2;$,=P$J$$%P%0$,!"0J(B
$B2<$N%Q%C%A$G2r7h$7$^$7$?!#(B

--
	$BF|K\EE5$3t<02q<R(B $B%$%s%?!<%M%C%H5;=Q8&5f=j(B $B4pHW5;=QIt(B
		$BCf@n(B $B9%5W(B	y-nakaga@ccs.mt.nec.co.jp
				nakagawa@jp.FreeBSD.org
------- Forwarded Message

From: Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Message-Id: <199810220756.IAA11737@labinfo.iet.unipi.it>
Subject: Re: splay-0.8.2 & FreeBSD Audio Driver (980215)
To: nabe@ksj.mcu.or.jp (NABETANI Masaki)
Date: Thu, 22 Oct 1998 08:56:10 +0100 (MET)
Cc: junker@jazz.snu.ac.kr
In-Reply-To: <19981022181815P.nabe@ksj.mcu.or.jp> from "NABETANI Masaki" at Oct 22, 98 06:17:56 pm
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Sender: owner-freebsd-multimedia@FreeBSD.ORG
X-Loop: FreeBSD.org

I got a report that the "pcm" driver does not start with small audio
files. This was due to a bug i introduced near the beginning of the
year to optimize performance :)

in any case, the fix is easy and i will commit it in the next hours on
- -current (and for -stable, an update to the whole "pcm" code is
coming in): in dmabuf.c, function dsp_wrintr, change one line near
line 183 as follows:

         * check if we need to reprogram the DMA on the sound card.
         * This happens if the size has changed _and_ the new size
         * is smaller, or it matches the blocksize.
         */
- -       if (l != b->dl && (l < b->dl || l == d->play_blocksize)){
+       if (l != b->dl && (b->dl == 0 || l < b->dl || l == d->play_blocksize)){
            /* for any reason, size has changed. Stop and restart */
            DEB(printf("wrintr: bsz change from %d to %d, rp %d rl %d\n",
                b->dl, l, b->rp, b->rl));



	cheers
	luigi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message

------- End of Forwarded Message

