1 | <sect2>
|
---|
2 | <title>Configuring <application><acronym>ALSA</acronym> Utilities</application></title>
|
---|
3 |
|
---|
4 | <sect3><title>Config files</title>
|
---|
5 |
|
---|
6 | <para><filename>/etc/asound.state</filename></para>
|
---|
7 |
|
---|
8 | </sect3>
|
---|
9 |
|
---|
10 | <sect3><title>Configuration Information</title>
|
---|
11 |
|
---|
12 | <para>Probably the easiest way to store mixer levels is to set and retrieve
|
---|
13 | them using a bootscript. It is possible to do this with a
|
---|
14 | <userinput>post-install</userinput> line in
|
---|
15 | <filename>/etc/modules.conf</filename> but this is left as an exercise for
|
---|
16 | those readers who wish to do this.</para>
|
---|
17 |
|
---|
18 | <para>The <application><acronym>ALSA</acronym> Driver</application> package
|
---|
19 | installs a script as <filename>/etc/rc.d/init.d/alsasound</filename>. While it
|
---|
20 | is possible to use this script, it contains a lot of extraneous detail which
|
---|
21 | isn't needed on an <acronym>LFS</acronym> system and so we install the init
|
---|
22 | script <filename>/etc/rc.d/init.d/alsa</filename> included in the
|
---|
23 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
24 |
|
---|
25 | <screen><userinput><command>make install-alsa</command></userinput></screen>
|
---|
26 |
|
---|
27 | <para>Note that all channels of your soundcard are muted by default. You can
|
---|
28 | use the <command>alsamixer</command> program from
|
---|
29 | <application><acronym>ALSA</acronym> Utilities</application> (or any other
|
---|
30 | <acronym>OSS</acronym> mixer) to change this.</para>
|
---|
31 |
|
---|
32 | <para>Also, the first time the above script is run, it will complain that
|
---|
33 | there is no state in <filename>/etc/asound.state</filename>. You can
|
---|
34 | prevent this by running the following commands after installing
|
---|
35 | <application><acronym>ALSA</acronym> Utilities</application>:</para>
|
---|
36 | <screen><userinput><command>touch /etc/asound.state &&
|
---|
37 | alsactl store</command></userinput></screen>
|
---|
38 |
|
---|
39 | <para>A final note is that the lines loading <filename>sfxload</filename>
|
---|
40 | are commented out. They are there as an example of other things you may
|
---|
41 | wish to do in the startup script. <filename>sfxload</filename> is a
|
---|
42 | separate package of interest to SoundBlaster AWE and Live!
|
---|
43 | users. It is designed for loading "sound-fonts" (which are used for
|
---|
44 | <acronym>MIDI</acronym> output). You may wish to delete these lines and add
|
---|
45 | your own or, if you have the relevant soundcard, install <filename>sfxload
|
---|
46 | </filename> and uncomment them.</para>
|
---|
47 |
|
---|
48 | </sect3>
|
---|
49 |
|
---|
50 | </sect2>
|
---|