From owner-freebsd-multimedia Thu Sep 27 19:35:38 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by hub.freebsd.org (Postfix) with ESMTP id 63E6137B406 for ; Thu, 27 Sep 2001 19:35:34 -0700 (PDT) Received: from vilnya.demon.co.uk ([158.152.19.238]) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 15mnUw-000H6e-0V; Fri, 28 Sep 2001 03:35:33 +0100 Received: from haveblue (haveblue.rings [10.2.4.5]) by vilnya.demon.co.uk (Postfix) with SMTP id 1686F32622; Fri, 28 Sep 2001 03:33:34 +0100 (BST) Message-ID: <00c201c147c6$09991a90$0504020a@haveblue> From: "cameron grant" To: , References: Subject: Re: stable pcm problem with some linux games errs apps Date: Fri, 28 Sep 2001 03:34:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 > Setting up some debugging reveals that both these games do a ioctl > DSP_SETFRAGMENT requesting only 1 DMA block. the oss spec says: The 16 most significant bits (MMMM) determine the maximum number of fragments. By default, the driver computes this based on available buffer space. The minimum value is 2 and the maximum depends on the total buffer space available for the device. Set MMMM=0x7fff if you don't want to limit the number of fragments. > I was hoping that the workaround for would be a simple kluge, but > chn_setblocksize(...) in /sys/dev/sound/pcm/channel.c has some additional > logic in it that sets the blkcnt much higher... that logic is only used where no blocksize is requested. if i knew what it was trying to do by requesting 1 block, i could implement it. -cg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message