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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 7711710 was 7711710, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Updated to alsa-1.0.18.
alsa-firmware and lsa-oss are still at 1.0.17.

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

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