source: multimedia/libdriv/alsa-utils.xml@ ed7e39b0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ed7e39b0 was 0e2aa08, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #6

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5834 af4574ff-66df-0310-9fd7-8a98e5e911e0

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