From owner-freebsd-questions@FreeBSD.ORG Tue Dec 14 03:08:05 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 62E7816A4CE for ; Tue, 14 Dec 2004 03:08:05 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0934843D60 for ; Tue, 14 Dec 2004 03:08:05 +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 sccimhc91.asp.att.net (sccimhc91) with ESMTP id <20041214030803i9100rghfve>; Tue, 14 Dec 2004 03:08:04 +0000 Message-ID: <41BE5912.2090304@nbritton.org> Date: Mon, 13 Dec 2004 21:08:02 -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> <16830.19827.173656.838695@szamoca.krvarr.bc.ca> In-Reply-To: <16830.19827.173656.838695@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 03:08:05 -0000 Sandy Rutherford wrote: >>>>>>On Mon, 13 Dec 2004 09:59:51 -0600, >>>>>>Nikolas Britton said: >>>>>> >>>>>> > > > In FreeBSD 5.3 you can change the buffersize by adding > > hint.pcm.0.buffersize="foo" to /boot/loader.conf, have you try'ed this > > with 4.x? > >Yes. Here are the contents of my /boot/loader.conf file: > >[szamoca:6] cat /boot/loader.conf ># -- sysinstall generated deltas -- # >userconfig_script_load="YES" >hint.pcm.0.buffersize=8192 > > I'm not sure if it makes a difference but 8192 is not in "quotes" like I have in my working example and man device.hints says it should look like this: hint.driver.unit.keyword="value", also, have you tried playing with targetirqrate? http://www.freebsd.org/cgi/man.cgi?query=snd&apropos=0&sektion=0&manpath=FreeBSD+5.3-RELEASE+and+Ports&format=html spectra# more /boot/loader.conf ## Video Support nvidia_load="YES" linux_load="YES" #vesa_load="YES" ## Sound Support #sound_load="YES" #snd_emu10k1_load="YES" #snd_driver_load="YES" hw.snd.maxautovchans=4 hw.snd.targetirqrate=48 hint.pcm.0.buffersize="8192" ## Misc. loader_color="YES" #Color Boot Menu spectra# sysctl hw.snd hw.snd.targetirqrate: 48 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 4 hw.snd.pcm0.buffersize: 8192 hw.snd.pcm0.vchans: 0 >However, > >[szamoca:7] 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: 4096 >hw.snd.pcm0.vchans: 4 > >So it seems to have ignored the entry in loader.conf. No errors or >warnings were generated during boot. It just ignored the entry. > >Also, here is my /dev/sndstat: > >[szamoca:8] cat /dev/sndstat >FreeBSD Audio Driver (newpcm) >Installed devices: >pcm0: at io 0x220 irq 5 drq 1:0 bufsz 4096d (1p/1r/4v channels duplex) > >Also, > >[szamoca:9] uname -a >FreeBSD szamoca.krvarr.bc.ca 4.10-RELEASE FreeBSD 4.10-RELEASE #35: Sat Sep 18 02:19:02 PDT 2004 root@szamoca.krvarr.bc.ca:/usr/src/sys/compile/SZAMOCA i386 > > > Sandy Rutherford wrote: > > >> Is it possible to change the sysctl variable hw.snd.pcm0.buffersize > >> (DMA buffer size for the soundcard) in FreeBSD 4.10? I know that in > >> 5.x this is changed in devices.hints. I'm guessing that something in > >> the kernel config file will do the job, but haven't been able to > >> figure out what. > >> .... > >Thanks, >Sandy >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > >