From owner-freebsd-multimedia Wed Jul 23 20:27:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA04435 for multimedia-outgoing; Wed, 23 Jul 1997 20:27:55 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id UAA04428 for ; Wed, 23 Jul 1997 20:27:52 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Wed, 23 Jul 1997 23:26:48 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA17317; Wed, 23 Jul 97 23:26:46 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id XAA18599; Wed, 23 Jul 1997 23:24:32 -0400 Message-Id: <19970723232432.47587@ct.picker.com> Date: Wed, 23 Jul 1997 23:24:32 -0400 From: Randall Hopper To: Luigi Rizzo Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: dma handling in the sound driver References: <19970723220732.54270@ct.picker.com> <199707240210.EAA25526@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199707240210.EAA25526@labinfo.iet.unipi.it>; from Luigi Rizzo on Thu, Jul 24, 1997 at 04:10:36AM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Luigi Rizzo: |Knowing which ioctl's are used by apps (commercial and not) would |certainly help to prioritize the work on some rather than others. Ok. Well, the only commercial app I have this info for is the MpegTV's Linux mtv, since I buzzed it out when debugging the no-audio problem (before dumping it for the FreeBSD version). Here's the /dev/dsp ioctls it uses: SETUP: DSP_SETFMT PCM_WRITE_CHANNELS PCM_WRITE_RATE DSP_SETFMT DSP_STEREO DSP_SETFRAGMENT (requests 127 buffers, each 1024 bytes each) (driver keeps 1024 buffer size, but adjusts requested number of buffers down to 64 since 64k is all the mem that's available) ... MAIN PLAY LOOP: DSP_GETOSPACE - reflects free space across 64 bufs, each 1024bytes write() - if space ON MUTE OR EXIT: DSP_RESET Randall