From owner-freebsd-questions@FreeBSD.ORG Tue Dec 14 22:46:18 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 D652416A4CE for ; Tue, 14 Dec 2004 22:46:18 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66DD943D5C for ; Tue, 14 Dec 2004 22:46:18 +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 <20041214224609i92002adj9e>; Tue, 14 Dec 2004 22:46:17 +0000 Message-ID: <41BF6D30.8070508@nbritton.org> Date: Tue, 14 Dec 2004 16:46:08 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 0.9 (X11/20041203) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sandy Rutherford References: <16829.40585.759971.425967@szamoca.krvarr.bc.ca> <41BDBC77.6030309@nbritton.org> <41BDD963.1000502@daleco.biz> <16831.6359.873230.920480@szamoca.krvarr.bc.ca> In-Reply-To: <16831.6359.873230.920480@szamoca.krvarr.bc.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 14 Dec 2004 22:46:19 -0000 Sandy Rutherford wrote: >>>>>>On Mon, 13 Dec 2004 12:03:15 -0600, >>>>>>"Kevin D. Kinsey, DaleCo, S.P." said: >>>>>> >>>>>> > > > I wonder if it wouldn't be: > > > set hw.snd.pcm0.bufffersize=N > >This doesn't work either. No error --- it just ignores the setting. > > > in accordance with other variables in /boot/loader.help. > > > > OTOH, there was a note in > > > /sys/i386/isa/sound/sound_config.h > > > (as of March) that refers to using "make config" > > to change the DSP_BUFFERSIZE constant during, I assume, > > the kernel build operation. As I didn't start using > > FreeBSD on the desktop until 5.2 came out, I can't > > say that this is in anyway authoritative, and possibly > > isn't even helpful, though.... > >DSP_BUFFSIZE is not among the options that are setable in the kernel >config file and any attempt to set it gives an error when config is >run. I'm guessing that the only way to change this is by hacking the >header files in the kernel source. > >Thanks, >Sandy > > > Yea, I got my old laptop out that has 4.10 on it and I was rooting around in the src and found that, I tried everywitch way to get it to work in the kernel file but It nerver did work (config always bitched at me), I tried it also like this "make DSP_BUFFERSIZE=16384 depend && make DSP_BUFFERSIZE=16384 && make DSP_BUFFERSIZE=16384 install". this did not pruduce any errors but it didn't do anything ether, it skipped over the sound stuff as if there was no change, also I tried hard coding it it in sound_config.h but again same effect (maybe I did it wrong, i'm not a programmer), maybe you have to do a "complete" rebuild of the kernel and I did not try that because this laptop is only a P100 with 40MB Ram. also I found refrences to "bufsz" from /dev/sndstat so I tried adding it to the kernel config file like this "device sbc0 at isa? port 0x220 irq 10 drq 1 bufsz 16384" and config didn't like that (I never tried it with device pcm tho?) stumbleine# more /dev/sndstat FreeBSD Audio Driver (newpcm) pcm0: at io 0x220 irq 10 drq 1 bufsz 4096 (1p/1r/0v channels duplex) also reading the man pages for loader.conf , loader.4th, loader, and reading LINT help a bit., also there is a "device.hints" under /boot that loader reads so I tried adding it there as hint.pcm.0.buffersize="16384" but this did not work, it did tho add it as a loader environment variable (used show at the loader prompt). I also tried setting at the loader prompt hw.snd.pcm0.buffersize=16384 and again no deal, also helpful was setting verbose_loading="YES" into loader.conf. in all here is everything I tried with loader.conf: set hw.snd.pcm0.buffersize="3D16384" sh sysctl hw.snd.pcm0.buffersize=16384 sysctl hw.snd.pcm0.buffersize=16384 set hw.snd.pcm0.buffersize="8192" set hw.snd.pcm0.buffersize=8192 set hw.snd.pcm.0.buffersize="8192" set hw.snd.pcm.0.buffersize=8192 hw.snd.pcm0.buffersize="8192" hw.snd.pcm0.buffersize=8192 hint.pcm.0.buffersize="8192" Id like to get some input from a kernel hack or guru, and maybe you should cross post this in the freebsd-multimedia, freebsd-hackers, and/or freebsd-hardware mailling lists and I can not find anything relevant in my google / google groups searches about this problem, at this point I think it would just be easyer to upgrade to 5.3 (your comp will handle it, I have it running on a dual PII 366 system) to set the stupid thing. this might help (but its for linux): http://www.geocities.com/Hollywood/3709/kernelhack.html and this looks interesting: http://www.freebsd.org/cgi/query-pr.cgi?pr=5359 also the only stuff I can find about DSP_BUFFSIZE, buffer stuff is from Matthew Dillon (dillon at backplane.com), maybe you should give him a buzz