2002-08-27 07:44:12 +08:00
|
|
|
<sect2>
|
2003-10-01 10:52:25 +08:00
|
|
|
<title>Configuring <application><acronym>ALSA</acronym> Utilities</application></title>
|
2002-08-27 07:44:12 +08:00
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
2003-04-21 06:15:01 +08:00
|
|
|
<para><filename>/etc/asound.state</filename></para>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
2002-08-27 07:44:12 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2003-03-06 09:19:52 +08:00
|
|
|
<para>Probably the easiest way to store mixer levels is to set and retrieve
|
|
|
|
them using a bootscript. It is possible to do this with a
|
|
|
|
<userinput>post-install</userinput> line in
|
|
|
|
<filename>/etc/modules.conf</filename> but this is left as an exercise for
|
|
|
|
those readers who wish to do this.</para>
|
|
|
|
|
2003-10-01 10:52:25 +08:00
|
|
|
<para>The <application><acronym>ALSA</acronym> Driver</application> package
|
2003-09-25 08:34:50 +08:00
|
|
|
installs a script as <filename>/etc/rc.d/init.d/alsasound</filename>. While it
|
|
|
|
is possible to use this script, it contains a lot of extraneous detail which
|
2004-03-28 15:14:54 +08:00
|
|
|
isn't needed on an <acronym>LFS</acronym> system and so we install the init
|
|
|
|
script <filename>/etc/rc.d/init.d/alsa</filename> included in the
|
|
|
|
<xref linkend="intro-important-bootscripts"/> package.</para>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
2004-03-28 15:14:54 +08:00
|
|
|
<screen><userinput><command>make install-alsa</command></userinput></screen>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
|
|
|
<para>Note that all channels of your soundcard are muted by default. You can
|
2003-09-25 08:34:50 +08:00
|
|
|
use the <command>alsamixer</command> program from
|
2003-10-01 10:52:25 +08:00
|
|
|
<application><acronym>ALSA</acronym> Utilities</application> (or any other
|
2003-09-20 11:56:53 +08:00
|
|
|
<acronym>OSS</acronym> mixer) to change this.</para>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
|
|
|
<para>Also, the first time the above script is run, it will complain that
|
|
|
|
there is no state in <filename>/etc/asound.state</filename>. You can
|
2003-09-25 08:34:50 +08:00
|
|
|
prevent this by running the following commands after installing
|
2003-10-01 10:52:25 +08:00
|
|
|
<application><acronym>ALSA</acronym> Utilities</application>:</para>
|
2003-09-20 11:56:53 +08:00
|
|
|
<screen><userinput><command>touch /etc/asound.state &&
|
2003-09-28 02:46:10 +08:00
|
|
|
alsactl store</command></userinput></screen>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
|
|
|
<para>A final note is that the lines loading <filename>sfxload</filename>
|
|
|
|
are commented out. They are there as an example of other things you may
|
|
|
|
wish to do in the startup script. <filename>sfxload</filename> is a
|
2003-10-01 10:52:25 +08:00
|
|
|
separate package of interest to SoundBlaster AWE and Live!
|
2003-09-25 08:34:50 +08:00
|
|
|
users. It is designed for loading "sound-fonts" (which are used for
|
|
|
|
<acronym>MIDI</acronym> output). You may wish to delete these lines and add
|
|
|
|
your own or, if you have the relevant soundcard, install <filename>sfxload
|
|
|
|
</filename> and uncomment them.</para>
|
2003-03-06 09:19:52 +08:00
|
|
|
|
2002-08-27 07:44:12 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|