Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2004 02:01:30 +0100
From:      Christian Hiris <4711@chello.at>
To:        freebsd-questions@freebsd.org
Cc:        Nikolas Britton <freebsd@nbritton.org>
Subject:   Re: Handbook is unclear about the use of maxautovhans
Message-ID:  <200412140201.47860.4711@chello.at>
In-Reply-To: <41BDCF9F.4080402@nbritton.org>
References:  <41BDCF9F.4080402@nbritton.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412140201.47860.4711>