From owner-freebsd-multimedia Sat Aug 30 22:46:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA21343 for multimedia-outgoing; Sat, 30 Aug 1997 22:46:34 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA21338; Sat, 30 Aug 1997 22:46:30 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.7/8.8.5) with ESMTP id WAA00887; Sat, 30 Aug 1997 22:46:00 -0700 (PDT) Message-Id: <199708310546.WAA00887@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: Luigi Rizzo cc: dec@phoenix.its.rpi.edu, hackers@FreeBSD.ORG, multimedia@FreeBSD.ORG Subject: Re: IRQ problem (was Re: IRQ timing) In-reply-to: Your message of "Sun, 31 Aug 1997 06:24:16 +0200." <199708310424.GAA03702@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 30 Aug 1997 22:46:00 -0700 From: Amancio Hasty Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In guspnpxxx or linux sound driver 3.5 adaption for FreeBSD uses 64kb for the dma buffer, the default size for dma requests is a 1/2 second. If the user specifies a block size the dma buffer gets split in N blocks of the specified user block size and the dma buffer remains 64k. Amancio >From The Desk Of Luigi Rizzo : > > > > o buffer size used in in the application > > > > > > i guess you also need the blocksize -- the size of each DMA transfers > > > -- and not only the total amount of buffers. > > > > True but bear in mind that the system has plenty of memory: > ... > > I would hope that the OSS driver has the heuristics to allocate > > sufficient memory for the buffers. > > I think the default is 64K (seen in some include file). What I am not > sure about is if the blocksize for DMA transfer is determined > adaptively if the user does not call some SETFRAGMENT or SUBDIVIDE > ioctl. In my code I wrote some code to use 0.25s of audio for each DMA > transfer unless the user specifies elsewhere (using the above calls or > the new one that I introduced, AIOSSIZE). > > What about guspnpXX ? > > Luigi