From owner-cvs-all Wed Dec 22 19:35:56 1999 Delivered-To: cvs-all@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (rina.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id C743C15770; Wed, 22 Dec 1999 19:35:43 -0800 (PST) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: (from uucp@localhost) by rina.r.dl.itc.u-tokyo.ac.jp (8.9.3+3.2W/3.7W-r-0.1-19990829) with UUCP id MAA69320; Thu, 23 Dec 1999 12:35:41 +0900 (JST) Received: from silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (8.9.3+3.2W/3.7W) with ESMTP id MAA01490; Thu, 23 Dec 1999 12:33:08 +0900 (JST) Date: Thu, 23 Dec 1999 12:33:07 +0900 Message-ID: <14433.38899.647147.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> From: Seigo Tanimura To: cg@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/sound/pcm channel.c In-Reply-To: In your message of "Sun, 19 Dec 1999 14:32:56 -0800 (PST)" <199912192232.OAA84862@freefall.freebsd.org> References: <199912192232.OAA84862@freefall.freebsd.org> Cc: Seigo Tanimura User-Agent: Wanderlust/1.0.3 (Notorious) SEMI/1.13.4 (Terai) FLIM/1.12.7 (=?ISO-8859-4?Q?Y=FEzaki?=) MULE XEmacs/21.1 (patch 8) (Bryce Canyon) (i386--freebsd) Organization: Carrots MIME-Version: 1.0 (generated by SEMI 1.13.4 - "Terai") Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Sun, 19 Dec 1999 14:32:56 -0800 (PST), Cameron Grant said: Cameron> stop playing if we underrun; if there is more data to come, the next write Cameron> will restart If the top half ie chn_write() restarts writing immediately after underrun, DMA seems to not start on some certain DSPs(including my CS461x). You cannot tell in general whether the current DMA transfer stops at the exact time of chn_trigger(c, PCMTRIG_STOP), or after the transfer of the current block completes. The old way to handle underflow is much simpler and robuster. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message