From owner-freebsd-doc@FreeBSD.ORG Tue Dec 14 01:01:52 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0396916A4CF for ; Tue, 14 Dec 2004 01:01:52 +0000 (GMT) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 59ACF43D4C for ; Tue, 14 Dec 2004 01:01:50 +0000 (GMT) (envelope-from 4711@chello.at) Received: (qmail 20827 invoked from network); 14 Dec 2004 01:01:48 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 14 Dec 2004 01:01:48 -0000 From: Christian Hiris <4711@chello.at> To: freebsd-questions@freebsd.org Date: Tue, 14 Dec 2004 02:01:30 +0100 User-Agent: KMail/1.7 References: <41BDCF9F.4080402@nbritton.org> In-Reply-To: <41BDCF9F.4080402@nbritton.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412140201.47860.4711@chello.at> cc: freebsd-doc@freebsd.org cc: Nikolas Britton Subject: Re: Handbook is unclear about the use of maxautovhans X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 01:01:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 13 December 2004 18:21, Nikolas Britton wrote: > Excerpt from the handbook: > "To set the number of virtual channels, there are two sysctl knobs > which, if you are the root user, can be set like this: > > # sysctl hw.snd.pcm0.vchans=4 > # sysctl hw.snd.maxautovchans=4 > > The above example allocates four virtual channels, which is a practical > number for everyday use. hw.snd.pcm0.vchans is the number of virtual > channels pcm0 has, and is configurable once a device has been attached. > hw.snd.maxautovchans is the number of virtual channels a new audio > device is given when it is attached using kldload(8) > . Since the > pcm module can be loaded independently of the hardware drivers, > hw.snd.maxautovchans can store how many virtual channels any devices > which are attached later will be given." > --------------------------- > So maxautovhans is only applicable if you loaded sound support as a > kernel module and not compile it into the kernel? No, (speaking for the 5.3-STABLE branch) sysctl hw.snd.maxautovchans also works, if sound support has been compiled into your kernel. You can set the sysctl via /etc/sysctl.conf or /boot/loader.conf or commandline. According to 'man 4 sound', sysctl hw.snd.maxautovchans holds the maximum number of vchans, that the system will be allowed to create. The sentence "hw.snd.maxautovchans is the number of virtual channels a new audio device is given when it is attached using kldload(8)" is possibly wrong. I must admit that I have never tested sound-module loading via kldload. - -- Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBvjt709WjGjvKU74RAmnEAJ9dfno0vYrONMUPGieQXn7uL1Q39ACfVGo/ Sny8Hba2LPx1cihPLNTVRCY= =IgJk -----END PGP SIGNATURE-----