Fixed typos and minor wording changes to the ALSA Utilities instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4868 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2005-08-01 00:36:51 +00:00
parent 3239e369d8
commit 656725d3cc

View File

@ -108,26 +108,28 @@ make</userinput></screen>
<screen role="root"><userinput>make install-alsa</userinput></screen> <screen role="root"><userinput>make install-alsa</userinput></screen>
<para>Note that all channels of your sound card are muted by default. <para>Note that all channels of your sound card are muted by default.
You can use the <command>alsamixer</command> program from You can use the <command>alsamixer</command> program from the
<application>ALSA Utilities</application> to change this.</para> <application>ALSA Utilities</application> to change this.</para>
<para>The first time the dev.d script below is run, it will complain <para>The first time the <filename class='directory'>dev.d</filename>
script below is run, it will complain
that there is no state in <filename>/etc/asound.state</filename>. that there is no state in <filename>/etc/asound.state</filename>.
You can prevent this by running the following commands while still You can prevent this by running the following commands as
the <systemitem class="username">root</systemitem> user (after the <systemitem class="username">root</systemitem> user:</para>
installing <application>ALSA Utilities</application>):</para>
<screen role="root"><userinput>touch /etc/asound.state &amp;&amp; <screen role="root"><userinput>touch /etc/asound.state &amp;&amp;
alsactl store</userinput></screen> alsactl store</userinput></screen>
<para>The volumes will be restored using the saved settings by a <para>The volume settings will be restored from the saved state using a
dev.d handler script that will execute when the device is detected <filename class='directory'>dev.d</filename> handler script that will
durring boot (when pluged in for USB devices). While still the execute when the device is detected
<systemitem class="username">root</systemitem> user, create the dev.d during boot (when plugged in for USB devices). While still the
script with the following commands:</para> <systemitem class="username">root</systemitem> user, create the
<filename class='directory'>dev.d</filename> script with the following
commands:</para>
<screen role="root"><userinput>install -d -m755 /etc/dev.d/snd &amp;&amp; <screen role="root"><userinput>install -v -d -m755 /etc/dev.d/snd &amp;&amp;
cat &gt;&gt; /etc/dev.d/snd/alsa.dev &lt;&lt; "EOF" &amp;&amp; cat &gt;&gt; /etc/dev.d/snd/alsa.dev &lt;&lt; "EOF"
#!/bin/sh -e #!/bin/sh -e
DEV_BASENAME="${DEVNAME##*/}" DEV_BASENAME="${DEVNAME##*/}"
N="${DEV_BASENAME#controlC}" N="${DEV_BASENAME#controlC}"
@ -150,7 +152,7 @@ case "$DEV_BASENAME" in
esac esac
exit 0 exit 0
EOF EOF
chmod 755 /etc/dev.d/snd/alsa.dev</userinput></screen> chmod -v 755 /etc/dev.d/snd/alsa.dev</userinput></screen>
<para>You may wish to do additional configuration on a per card basis. <para>You may wish to do additional configuration on a per card basis.