Handbook is unclear about the use of maxautovhans
Christian Hiris
4711 at chello.at
Tue Dec 14 01:01:52 UTC 2004
-----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)
> <http://www.FreeBSD.org/cgi/man.cgi?query=kldload&sektion=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 at 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-----
More information about the freebsd-doc
mailing list