Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2002 09:19:20 -0700
From:      Orion Hodson <orion@freebsd.org>
To:        "Jose M. Alcaide" <jose@we.lc.ehu.es>
Cc:        FreeBSD-multimedia@freebsd.org
Subject:   Re: interrupts from pcm(4) while no sound is being played 
Message-ID:  <200207161619.g6GGJKb30653@puma.icir.org>
In-Reply-To: Your message of "Tue, 16 Jul 2002 12:22:58 %2B0200." <20020716102258.GC259@v-ger.we.lc.ehu.es> 

next in thread | previous in thread | raw e-mail | index | archive | help
/-- "Jose M. Alcaide" wrote:
| On Mon, Jul 15, 2002 at 09:52:37AM -0700, Orion Hodson wrote:
| 
| My only concern is the possible impact of a high interrupt rate (~705 per
| second after playing a 44KHz, 16 bit sound) on the system performance.
| For example, that adds a CPU load of ~1.5% in my laptop (Celeron 433)
| while esd is holding the audio device open (I configured esd for using
| -and never freeing- /dev/dsp0.1).

In the case of esd, if you want to fix this, have it do an AIOSTOP ioctl 
shortly after it stops writing audio data and a SNDCTL_DSP_SETTRIGGER when 
it's ready to write data again.  This corresponds to pausing and unpausing the 
device by halting and restarting interrupts.

- Orion



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?200207161619.g6GGJKb30653>