From owner-freebsd-questions@FreeBSD.ORG Sat Dec 18 09:32:52 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 D1CBD16A4CE for ; Sat, 18 Dec 2004 09:32:52 +0000 (GMT) Received: from szamoca.krvarr.bc.ca (s142-179-111-232.bc.hsia.telus.net [142.179.111.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3179443D1F for ; Sat, 18 Dec 2004 09:32:50 +0000 (GMT) (envelope-from sandy@krvarr.bc.ca) Received: from szamoca.krvarr.bc.ca (localhost [127.0.0.1]) by szamoca.krvarr.bc.ca (8.13.1/8.12.11) with ESMTP id iBI9W6sT000538; Sat, 18 Dec 2004 01:32:06 -0800 (PST) (envelope-from sandy@szamoca.krvarr.bc.ca) Received: (from sandy@localhost) by szamoca.krvarr.bc.ca (8.13.1/8.12.11/Submit) id iBI9W36c000535; Sat, 18 Dec 2004 01:32:03 -0800 (PST) (envelope-from sandy) From: Sandy Rutherford MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16835.63763.208178.533884@szamoca.krvarr.bc.ca> Date: Sat, 18 Dec 2004 01:32:03 -0800 To: Nikolas Britton In-Reply-To: <41C00163.7070808@nbritton.org> 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> <41C00163.7070808@nbritton.org> X-Mailer: VM 7.07 under Emacs 21.3.1 cc: Christian Hiris <4711@chello.at> 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: Sat, 18 Dec 2004 09:32:53 -0000 >>>>> On Wed, 15 Dec 2004 03:18:27 -0600, >>>>> Nikolas Britton said: Worked for me as well. Thanks. BTW, to change the buffer size for a CT5880 PCI sound card, the variable uses a slightly different naming convention. > cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xef00 irq 11 (1p/1r/4v channels duplex) *** es137x.c Sat Dec 18 00:55:25 2004 --- es137x.c.dist Sat Dec 18 00:49:28 2004 *************** *** 88,94 **** #define CT4730REV_CT4730_A 0x00 ! #define ES_DEFAULT_BUFSZ 8192 /* device private data */ struct es_info; --- 88,94 ---- #define CT4730REV_CT4730_A 0x00 ! #define ES_DEFAULT_BUFSZ 4096 /* device private data */ struct es_info; Note the one "F" in "ES_DEFAULT_BUFSZ". This initially made it a little elusive to grep ;-) > uname -a FreeBSD szamoca.krvarr.bc.ca 4.10-RELEASE FreeBSD 4.10-RELEASE #37: Sat Dec 18 00:58:04 PST 2004 > sysctl -a | grep 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: 4 Thanks, Sandy > Christian Hiris wrote: > 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