[64bc4bd] | 1 | <sect2>
|
---|
[237b6d9] | 2 | <title>Configuring <application><acronym>ALSA</acronym> Utilities</application></title>
|
---|
[64bc4bd] | 3 |
|
---|
| 4 | <sect3><title>Config files</title>
|
---|
[7a8c3f28] | 5 |
|
---|
[e80cc95] | 6 | <para><filename>/etc/asound.state</filename></para>
|
---|
[7a8c3f28] | 7 |
|
---|
[64bc4bd] | 8 | </sect3>
|
---|
| 9 |
|
---|
| 10 | <sect3><title>Configuration Information</title>
|
---|
| 11 |
|
---|
[7a8c3f28] | 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 |
|
---|
[237b6d9] | 18 | <para>The <application><acronym>ALSA</acronym> Driver</application> package
|
---|
[8c3989b2] | 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
|
---|
[fe88f584] | 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>
|
---|
[7a8c3f28] | 24 |
|
---|
[fe88f584] | 25 | <screen><userinput><command>make install-alsa</command></userinput></screen>
|
---|
[7a8c3f28] | 26 |
|
---|
| 27 | <para>Note that all channels of your soundcard are muted by default. You can
|
---|
[8c3989b2] | 28 | use the <command>alsamixer</command> program from
|
---|
[237b6d9] | 29 | <application><acronym>ALSA</acronym> Utilities</application> (or any other
|
---|
[da23cf6a] | 30 | <acronym>OSS</acronym> mixer) to change this.</para>
|
---|
[7a8c3f28] | 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
|
---|
[8c3989b2] | 34 | prevent this by running the following commands after installing
|
---|
[237b6d9] | 35 | <application><acronym>ALSA</acronym> Utilities</application>:</para>
|
---|
[da23cf6a] | 36 | <screen><userinput><command>touch /etc/asound.state &&
|
---|
[a75063d4] | 37 | alsactl store</command></userinput></screen>
|
---|
[7a8c3f28] | 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
|
---|
[237b6d9] | 42 | separate package of interest to SoundBlaster AWE and Live!
|
---|
[8c3989b2] | 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>
|
---|
[7a8c3f28] | 47 |
|
---|
[64bc4bd] | 48 | </sect3>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|