From owner-freebsd-multimedia Sun Jul 14 15:45:11 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84E5537B400 for ; Sun, 14 Jul 2002 15:45:09 -0700 (PDT) Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31CC643E64 for ; Sun, 14 Jul 2002 15:45:06 -0700 (PDT) (envelope-from jose@we.lc.ehu.es) Received: from v-ger.we.lc.ehu.es (lxpx517.lx.ehu.es [158.227.27.163]) by polaris.we.lc.ehu.es (8.11.6/8.11.6) with ESMTP id g6EMixf19131 for ; Mon, 15 Jul 2002 00:44:59 +0200 (MET DST) Received: from v-ger.we.lc.ehu.es (localhost [127.0.0.1]) by v-ger.we.lc.ehu.es (8.12.3/8.12.3) with ESMTP id g6EMjWNe000869 for ; Mon, 15 Jul 2002 00:45:32 +0200 (CEST) (envelope-from jose@v-ger.we.lc.ehu.es) Received: (from jose@localhost) by v-ger.we.lc.ehu.es (8.12.3/8.12.3/Submit) id g6EMjVi6000868 for multimedia@FreeBSD.org; Mon, 15 Jul 2002 00:45:31 +0200 (CEST) Date: Mon, 15 Jul 2002 00:45:31 +0200 From: "Jose M. Alcaide" To: multimedia@FreeBSD.org Subject: interrupts from pcm(4) while no sound is being played Message-ID: <20020714224531.GA784@v-ger.we.lc.ehu.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.6-RELEASE Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have just found something strange: there are interrupts accounted to the pcm(4) device while a process keeps it open just after playing a sound. For example: cat flush.au - > /dev/audio That command sends "flush.au" to /dev/audio followed by stdin. Using "systat -vm 1", I can see about 62-64 interrupts per second while playing the sound and also *after* playing is finished and cat(1) is waiting for input. I also noticed the same effect with esd, but with different interrupt rates (depending on the sample format and rate of the last sound played). I can reproduce the effect with an ESS Maestro/2E, a CMedia CMI8738, and a Creative CT-5880 (I have no other sound hardware available for testing). All systems are running FreeBSD 4.6-RELEASE. Is that the expected pcm(4) behaviour? Cheers, JMA -- ****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ****** ** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message