diff options
author | Josef El-Rayes <josef@FreeBSD.org> | 2004-06-20 16:34:40 +0000 |
---|---|---|
committer | Josef El-Rayes <josef@FreeBSD.org> | 2004-06-20 16:34:40 +0000 |
commit | e500dbc501c02b33191dd44cf1874b215e551800 (patch) | |
tree | 5d8d977613e3425155eeda44408f6096413475e2 /en_US.ISO8859-1/books | |
parent | 18e6cace95b53a361594264879056cd8d01cb51e (diff) | |
download | doc-e500dbc501c02b33191dd44cf1874b215e551800.tar.gz doc-e500dbc501c02b33191dd44cf1874b215e551800.zip |
Document the possibility of setting default values for
mixer channels via boot loader.
While I am here, document the snd_driver metadriver.
Notes
Notes:
svn path=/head/; revision=21202
Diffstat (limited to 'en_US.ISO8859-1/books')
-rw-r--r-- | en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml index bae4901e45..a505908dc1 100644 --- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml @@ -192,7 +192,10 @@ </indexterm> <para>To use your sound device, you will need to load the proper - device driver. This may be accomplished in one of two ways. + device driver. If you are not sure which driver to use, you may + try to load snd_driver, which is a metadriver loading the most common + device drivers at once, this speeds up the search for the correct driver. + Loading the device driver may be accomplished in one of two ways. The easiest way is to simply load a kernel module for your sound card with &man.kldload.8; which can either be done from the command line:</para> @@ -522,7 +525,34 @@ pcm0: <SB16 DSP 4.11> on sbc0</screen> to 4 as in the above example. On a system using &man.devfs.5;, the above will automatically be allocated transparently to the user.</para> </sect2> - </sect1> + + <sect2> + <sect2info> + <authorgroup> + <author> + <firstname>Josef</firstname> + <surname>El-Rayes</surname> + <contrib>Contributed by </contrib> + </author> + </authorgroup> + </sect2info> + + <title>Setting default values for mixer channels</title> + + <para>The default values for the different mixer channels are + hardcoded in the sourcecode of the pcm driver. There are + a lot of different applications and daemons that allow + you to set values for the mixer they remember and set + each time they are started, but this is not a clean + solution, we want to have default values at the driver + level. This is accomplished by defining the apropriate + values in <filename>/boot/loader.conf</filename>. E.g.:</para> +<programlisting>pcm0.vol="100"</programlisting> + + <para>This will set the vol channel to a default value of + 100, as soon as the pcm module gets loaded.</para> + </sect2> +</sect1> <sect1 id="sound-mp3"> <sect1info> |