From owner-freebsd-questions@FreeBSD.ORG Wed Dec 15 09:18:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A87F16A4CE for ; Wed, 15 Dec 2004 09:18:34 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C88EC43D45 for ; Wed, 15 Dec 2004 09:18:33 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20041215091828i92002agn3e>; Wed, 15 Dec 2004 09:18:33 +0000 Message-ID: <41C00163.7070808@nbritton.org> Date: Wed, 15 Dec 2004 03:18:27 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 0.9 (X11/20041203) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christian Hiris <4711@chello.at> References: <16829.40585.759971.425967@szamoca.krvarr.bc.ca> <16831.6359.873230.920480@szamoca.krvarr.bc.ca> <41BF6D30.8070508@nbritton.org> <200412150742.59900.4711@chello.at> In-Reply-To: <200412150742.59900.4711@chello.at> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Sandy Rutherford cc: freebsd-questions@freebsd.org Subject: Re: Changing hw.snd.pcm0.buffersize in 4.10. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 09:18:34 -0000 Christian Hiris wrote: >AFAIK the define is named DSP_BUFFSIZE (in src/sys/dev/sound/pcm/sound.h. >DSP_BUFFSIZE can be used to define the default buffersize for sound drivers, >but most of the sound drivers use their own defines. > >If you want to change the default buffersize for a sound driver you need to >search for a define like xxx_BUFFSIZE, where xxx is the name of the sound >driver (maybe some developers use other naming-conventions). > >ie., if you want to change the default buffersize of the ESS driver you need >to change the line "#define ESS_BUFFSIZE (4096)" in >src/sys/dev/sound/isa/ess.c. > >If you use the sbc driver, you need to do this changes in sb8.c or sb16.c, >depending on the soundcard you are using. sbc.c is only the code for the >corresponding bridge driver. > >However, I'm not a guru, so I can't guess, if a driver works better with any >other buffer size defined, than the original one. > > > Yes, This Worked! stumbleine# pwd /usr/src/sys/dev/sound/isa stumbleine# diff ess.c ess.bak 41c41 < #define ESS_BUFFSIZE (8192) --- > #define ESS_BUFFSIZE (4096) stumbleine# diff sb16.c sb16.bak 41c41 < #define SB16_BUFFSIZE 8192 --- > #define SB16_BUFFSIZE 4096 Kernel Config file: options PNPBIOS device pcm # Generic Sound Support device sbc0 at isa? port 0x220 irq 10 drq 1 stumbleine# dmesg | grep ESS sbc0: at port 0x220-0x22f irq 10 drq 1 on isa0 pcm0: on sbc0 stumbleine# sysctl hw.snd hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.maxautovchans: 0 hw.snd.pcm0.buffersize: 8192 hw.snd.pcm0.vchans: 0 stumbleine# uname -a FreeBSD stumbleine.intranet 4.10-STABLE FreeBSD 4.10-STABLE #3: Tue Dec 14 23:40:48 CST 2004 root@stumbleine.intranet:/usr/src/sys/compile/STUMBLEINE i386