1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY alsa-utils-download-http "&alsa-download-http;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
|
---|
8 | <!ENTITY alsa-utils-download-ftp "&alsa-download-ftp;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
|
---|
9 | <!ENTITY alsa-utils-md5sum "3672287c2608040d111ce45495ba7602">
|
---|
10 | <!ENTITY alsa-utils-size "1.0 MB">
|
---|
11 | <!ENTITY alsa-utils-buildsize "8 MB">
|
---|
12 | <!ENTITY alsa-utils-time "0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="alsa-utils" xreflabel="ALSA Utilities-&alsa-utils-version;">
|
---|
16 | <?dbhtml filename="alsa-utils.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>ALSA Utilities-&alsa-utils-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="alsa-utils">
|
---|
26 | <primary sortas="a-ALSA-Utilities">ALSA Utilities</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to ALSA Utilities</title>
|
---|
31 |
|
---|
32 | <para>The <application>ALSA Utilities</application> package contains
|
---|
33 | various utilities which are useful for controlling your sound card.</para>
|
---|
34 |
|
---|
35 | &lfs65_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>Download (HTTP): <ulink url="&alsa-utils-download-http;"/></para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>Download (FTP): <ulink url="&alsa-utils-download-ftp;"/></para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>Download MD5 sum: &alsa-utils-md5sum;</para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download size: &alsa-utils-size;</para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Estimated disk space required: &alsa-utils-buildsize;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Estimated build time: &alsa-utils-time;</para>
|
---|
56 | </listitem>
|
---|
57 | </itemizedlist>
|
---|
58 |
|
---|
59 | <bridgehead renderas="sect3">ALSA Utilities Dependencies</bridgehead>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
62 | <para role="required"><xref linkend="alsa-lib"/></para>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
65 | <itemizedlist spacing="compact">
|
---|
66 | <listitem>
|
---|
67 | <para>Required patch: <ulink
|
---|
68 | url="&patch-root;/alsa-utils-&alsa-utils-version;-no_xmlto-1.patch"/></para>
|
---|
69 | </listitem>
|
---|
70 | </itemizedlist>
|
---|
71 |
|
---|
72 |
|
---|
73 | <para condition="html" role="usernotes">User Notes:
|
---|
74 | <ulink url="&blfs-wiki;/alsa-utils"/></para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2 role="installation">
|
---|
79 | <title>Installation of ALSA Utilities</title>
|
---|
80 |
|
---|
81 | <para>Install <application>ALSA Utilities</application> by
|
---|
82 | running the following commands:</para>
|
---|
83 |
|
---|
84 | <screen><userinput>patch -Np1 -i ../alsa-utils-&alsa-utils-version;-no_xmlto-1.patch &&
|
---|
85 | ./configure &&
|
---|
86 | make</userinput></screen>
|
---|
87 |
|
---|
88 | <para>This package does not come with a test suite.</para>
|
---|
89 |
|
---|
90 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
91 |
|
---|
92 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | <sect2 role="configuration">
|
---|
97 | <title>Configuring ALSA Utilities</title>
|
---|
98 |
|
---|
99 | <sect3 id="alsa-utils-config">
|
---|
100 | <title>Config Files</title>
|
---|
101 |
|
---|
102 | <para><filename>/etc/asound.state</filename></para>
|
---|
103 |
|
---|
104 | <indexterm zone="alsa-utils alsa-utils-config">
|
---|
105 | <primary sortas="e-etc-asound.state">/etc/asound.state</primary>
|
---|
106 | </indexterm>
|
---|
107 |
|
---|
108 | </sect3>
|
---|
109 |
|
---|
110 | <sect3 id="alsa-utils-init">
|
---|
111 | <title>Configuration Information</title>
|
---|
112 |
|
---|
113 | <para> Use a bootscript to store the values at shutdown.</para>
|
---|
114 |
|
---|
115 | <indexterm zone="alsa-utils alsa-utils-init">
|
---|
116 | <primary sortas="f-alsa">alsa</primary>
|
---|
117 | </indexterm>
|
---|
118 |
|
---|
119 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
120 | install the init script <filename>/etc/rc.d/init.d/alsa</filename> included
|
---|
121 | in the <xref linkend="bootscripts"/> package.</para>
|
---|
122 |
|
---|
123 | <screen role="root"><userinput>make install-alsa</userinput></screen>
|
---|
124 |
|
---|
125 | <para>Note that all channels of your sound card are muted by default.
|
---|
126 | You can use the <command>alsamixer</command> program from the
|
---|
127 | <application>ALSA Utilities</application> to change this. Use
|
---|
128 | <command>speaker-test</command> to check that your settings have
|
---|
129 | been applied correctly. You should hear <quote>pink noise</quote> on your
|
---|
130 | speakers.</para>
|
---|
131 |
|
---|
132 | <para>The first time the <filename>alsactl</filename> program is run from
|
---|
133 | the <application>udev</application> rule below, it will complain that
|
---|
134 | there is no state in <filename>/etc/asound.state</filename>. You can
|
---|
135 | prevent this by running the following commands as the <systemitem
|
---|
136 | class="username">root</systemitem> user:</para>
|
---|
137 |
|
---|
138 | <screen role="root"><userinput>touch /etc/asound.state &&
|
---|
139 | alsactl store</userinput></screen>
|
---|
140 |
|
---|
141 | <para>The volume settings will be restored from the saved state by
|
---|
142 | <application>Udev</application> when the device is detected (during boot
|
---|
143 | or when plugged in for USB devices).</para>
|
---|
144 |
|
---|
145 | <!--
|
---|
146 | <para> While still the
|
---|
147 | <systemitem class="username">root</systemitem> user, create the
|
---|
148 | <filename>/etc/udev/scripts/alsa-restore</filename> script with
|
---|
149 | the following commands:</para>
|
---|
150 |
|
---|
151 | <screen role="root"><userinput>install -v -d -m754 /etc/udev/scripts &&
|
---|
152 | cat > /etc/udev/scripts/alsa-restore << "EOF"
|
---|
153 | #!/bin/sh -e
|
---|
154 | # Begin /etc/udev/scripts/alsa-restore
|
---|
155 | # $1 is (the numbered device "%n") passed in by udev/kernel.
|
---|
156 |
|
---|
157 | rc=1
|
---|
158 |
|
---|
159 | if [ -f /usr/sbin/alsactl ]; then
|
---|
160 | /usr/sbin/alsactl restore "${1}"
|
---|
161 | rc=$?
|
---|
162 | fi
|
---|
163 |
|
---|
164 | exit $rc
|
---|
165 |
|
---|
166 | # End /etc/udev/scripts/alsa-restore
|
---|
167 | EOF
|
---|
168 | chmod -v 754 /etc/udev/scripts/alsa-restore</userinput></screen>
|
---|
169 | -->
|
---|
170 |
|
---|
171 | <para>As the <systemitem class="username">root</systemitem> user, install
|
---|
172 | a new <application>Udev</application> rules file to create the audio
|
---|
173 | device nodes and run the restore script:</para>
|
---|
174 |
|
---|
175 | <screen role="root"><userinput>cat > /etc/udev/rules.d/40-alsa.rules << "EOF"
|
---|
176 | # /etc/udev/rules.d/40-alsa.rules
|
---|
177 |
|
---|
178 | # When a sound device is detected, restore the volume settings
|
---|
179 | KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"
|
---|
180 | EOF
|
---|
181 | chmod -v 644 /etc/udev/rules.d/40-alsa.rules</userinput></screen>
|
---|
182 |
|
---|
183 | <para>All sound devices are not accessible for any user except
|
---|
184 | <systemitem class="username">root</systemitem> and members of the
|
---|
185 | <systemitem class="groupname">audio</systemitem> group. Add any users
|
---|
186 | that might use the sound devices to that group:</para>
|
---|
187 |
|
---|
188 | <screen role="root"><userinput>usermod -a -G audio <replaceable><username></replaceable></userinput></screen>
|
---|
189 |
|
---|
190 | <note>
|
---|
191 | <para>You may need to log out and back in again to refresh your group
|
---|
192 | memberships. '<command>su <replaceable><username></replaceable></command>'
|
---|
193 | should work as well.</para>
|
---|
194 | </note>
|
---|
195 |
|
---|
196 | </sect3>
|
---|
197 |
|
---|
198 | </sect2>
|
---|
199 |
|
---|
200 | <sect2 role="content">
|
---|
201 | <title>Contents</title>
|
---|
202 |
|
---|
203 | <segmentedlist>
|
---|
204 | <segtitle>Installed Programs</segtitle>
|
---|
205 | <segtitle>Installed Libraries</segtitle>
|
---|
206 | <segtitle>Installed Directory</segtitle>
|
---|
207 |
|
---|
208 | <seglistitem>
|
---|
209 | <seg>aconnect, alsaconf, alsactl, alsamixer, amidi,
|
---|
210 | amixer, aplay, aplaymidi, arecord, arecordmidi, aseqdump,
|
---|
211 | aseqnet, iecset, and speaker-test</seg>
|
---|
212 | <seg>None</seg>
|
---|
213 | <seg>/usr/share/sounds/alsa</seg>
|
---|
214 | </seglistitem>
|
---|
215 | </segmentedlist>
|
---|
216 |
|
---|
217 | <variablelist>
|
---|
218 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
219 | <?dbfo list-presentation="list"?>
|
---|
220 | <?dbhtml list-presentation="table"?>
|
---|
221 |
|
---|
222 | <varlistentry id="aconnect">
|
---|
223 | <term><command>aconnect</command></term>
|
---|
224 | <listitem>
|
---|
225 | <para>is a utility for connecting and disconnecting two existing
|
---|
226 | ports in the ALSA sequencer system.</para>
|
---|
227 | <indexterm zone="alsa-utils aconnect">
|
---|
228 | <primary sortas="b-aconnect">aconnect</primary>
|
---|
229 | </indexterm>
|
---|
230 | </listitem>
|
---|
231 | </varlistentry>
|
---|
232 |
|
---|
233 | <varlistentry id="alsaconf">
|
---|
234 | <term><command>alsaconf</command></term>
|
---|
235 | <listitem>
|
---|
236 | <para>is a configuration tool which tries to detect the sound cards
|
---|
237 | on your system and write a suitable configuration file for ALSA.
|
---|
238 | This program is incompatible with udev and hotplug.</para>
|
---|
239 | <indexterm zone="alsa-utils alsaconf">
|
---|
240 | <primary sortas="b-alsaconf">alsaconf</primary>
|
---|
241 | </indexterm>
|
---|
242 | </listitem>
|
---|
243 | </varlistentry>
|
---|
244 |
|
---|
245 | <varlistentry id="alsactl">
|
---|
246 | <term><command>alsactl</command></term>
|
---|
247 | <listitem>
|
---|
248 | <para>is used to control advanced settings for the
|
---|
249 | ALSA sound card drivers.</para>
|
---|
250 | <indexterm zone="alsa-utils alsactl">
|
---|
251 | <primary sortas="b-alsactl">alsactl</primary>
|
---|
252 | </indexterm>
|
---|
253 | </listitem>
|
---|
254 | </varlistentry>
|
---|
255 |
|
---|
256 | <varlistentry id="alsamixer">
|
---|
257 | <term><command>alsamixer</command></term>
|
---|
258 | <listitem>
|
---|
259 | <para>is an ncurses-based mixer program for use with the
|
---|
260 | ALSA sound card drivers.</para>
|
---|
261 | <indexterm zone="alsa-utils alsamixer">
|
---|
262 | <primary sortas="b-alsamixer">alsamixer</primary>
|
---|
263 | </indexterm>
|
---|
264 | </listitem>
|
---|
265 | </varlistentry>
|
---|
266 |
|
---|
267 | <varlistentry id="amidi">
|
---|
268 | <term><command>amidi</command></term>
|
---|
269 | <listitem>
|
---|
270 | <para>is used to read from and write to ALSA
|
---|
271 | RawMIDI ports.</para>
|
---|
272 | <indexterm zone="alsa-utils amidi">
|
---|
273 | <primary sortas="b-amidi">amidi</primary>
|
---|
274 | </indexterm>
|
---|
275 | </listitem>
|
---|
276 | </varlistentry>
|
---|
277 |
|
---|
278 | <varlistentry id="amixer">
|
---|
279 | <term><command>amixer</command></term>
|
---|
280 | <listitem>
|
---|
281 | <para> allows command-line control of the mixers for the
|
---|
282 | ALSA sound card drivers.</para>
|
---|
283 | <indexterm zone="alsa-utils amixer">
|
---|
284 | <primary sortas="b-amixer">amixer</primary>
|
---|
285 | </indexterm>
|
---|
286 | </listitem>
|
---|
287 | </varlistentry>
|
---|
288 |
|
---|
289 | <varlistentry id="aplay">
|
---|
290 | <term><command>aplay</command></term>
|
---|
291 | <listitem>
|
---|
292 | <para>is a command-line soundfile player for the
|
---|
293 | ALSA sound card drivers.</para>
|
---|
294 | <indexterm zone="alsa-utils aplay">
|
---|
295 | <primary sortas="b-aplay">aplay</primary>
|
---|
296 | </indexterm>
|
---|
297 | </listitem>
|
---|
298 | </varlistentry>
|
---|
299 |
|
---|
300 | <varlistentry id="aplaymidi">
|
---|
301 | <term><command>aplaymidi</command></term>
|
---|
302 | <listitem>
|
---|
303 | <para>is a command-line utility that plays the specified
|
---|
304 | MIDI file(s) to one or more ALSA sequencer ports.</para>
|
---|
305 | <indexterm zone="alsa-utils aplaymidi">
|
---|
306 | <primary sortas="b-aplaymidi">aplaymidi</primary>
|
---|
307 | </indexterm>
|
---|
308 | </listitem>
|
---|
309 | </varlistentry>
|
---|
310 |
|
---|
311 | <varlistentry id="arecord">
|
---|
312 | <term><command>arecord</command></term>
|
---|
313 | <listitem>
|
---|
314 | <para>is a command-line soundfile recorder for the
|
---|
315 | ALSA sound card drivers.</para>
|
---|
316 | <indexterm zone="alsa-utils arecord">
|
---|
317 | <primary sortas="b-arecord">arecord</primary>
|
---|
318 | </indexterm>
|
---|
319 | </listitem>
|
---|
320 | </varlistentry>
|
---|
321 |
|
---|
322 | <varlistentry id="arecordmidi">
|
---|
323 | <term><command>arecordmidi</command></term>
|
---|
324 | <listitem>
|
---|
325 | <para>is a command-line utility that records a standard
|
---|
326 | MIDI file from one or more ALSA sequencer ports.</para>
|
---|
327 | <indexterm zone="alsa-utils arecordmidi">
|
---|
328 | <primary sortas="b-arecordmidi">arecordmidi</primary>
|
---|
329 | </indexterm>
|
---|
330 | </listitem>
|
---|
331 | </varlistentry>
|
---|
332 |
|
---|
333 | <varlistentry id="aseqdump">
|
---|
334 | <term><command>aseqdump</command></term>
|
---|
335 | <listitem>
|
---|
336 | <para>is a command-line utility that prints the sequencer events it
|
---|
337 | receives as text.</para>
|
---|
338 | <indexterm zone="alsa-utils aseqdump">
|
---|
339 | <primary sortas="b-aseqdump">aseqdump</primary>
|
---|
340 | </indexterm>
|
---|
341 | </listitem>
|
---|
342 | </varlistentry>
|
---|
343 |
|
---|
344 | <varlistentry id="aseqnet">
|
---|
345 | <term><command>aseqnet</command></term>
|
---|
346 | <listitem>
|
---|
347 | <para>is an ALSA sequencer client which sends
|
---|
348 | and receives event packets over a network.</para>
|
---|
349 | <indexterm zone="alsa-utils aseqnet">
|
---|
350 | <primary sortas="b-aseqnet">aseqnet</primary>
|
---|
351 | </indexterm>
|
---|
352 | </listitem>
|
---|
353 | </varlistentry>
|
---|
354 |
|
---|
355 | <varlistentry id="iecset">
|
---|
356 | <term><command>iecset</command></term>
|
---|
357 | <listitem>
|
---|
358 | <para>is a small utility to set or dump the IEC958 (or so-called
|
---|
359 | <quote>S/PDIF</quote>) status bits of the specified sound
|
---|
360 | card via the ALSA control API.</para>
|
---|
361 | <indexterm zone="alsa-utils iecset">
|
---|
362 | <primary sortas="b-iecset">iecset</primary>
|
---|
363 | </indexterm>
|
---|
364 | </listitem>
|
---|
365 | </varlistentry>
|
---|
366 |
|
---|
367 | <varlistentry id="speaker-test">
|
---|
368 | <term><command>speaker-test</command></term>
|
---|
369 | <listitem>
|
---|
370 | <para>is a command-line speaker test tone generator for ALSA.</para>
|
---|
371 | <indexterm zone="alsa-utils speaker-test">
|
---|
372 | <primary sortas="b-speaker-test">speaker-test</primary>
|
---|
373 | </indexterm>
|
---|
374 | </listitem>
|
---|
375 | </varlistentry>
|
---|
376 |
|
---|
377 | </variablelist>
|
---|
378 |
|
---|
379 | </sect2>
|
---|
380 |
|
---|
381 | </sect1>
|
---|