source: multimedia/libdriv/alsa-utils.xml

trunk
Last change on this file was 1241ea19, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Tag xfce and dependencies

  • Property mode set to 100644
File size: 16.0 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[48b7295]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[da13524]6
[03978485]7 <!ENTITY alsa-utils-download-http "&alsa-download-http;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
[e1e58be]8 <!ENTITY alsa-utils-download-ftp " ">
[b0158ed]9 <!ENTITY alsa-utils-md5sum "36676025301315789306e99e39154732">
[b36aabe]10 <!ENTITY alsa-utils-size "1.6 MB">
11 <!ENTITY alsa-utils-buildsize "16 MB">
[c156674]12 <!ENTITY alsa-utils-time "0.2 SBU">
[48b7295]13]>
[43ef043b]14
[a027d7d3]15<sect1 id="alsa-utils" xreflabel="alsa-utils-&alsa-utils-version;">
[1d13710]16 <?dbhtml filename="alsa-utils.html"?>
17
18
[a027d7d3]19 <title>alsa-utils-&alsa-utils-version;</title>
[1d13710]20
21 <indexterm zone="alsa-utils">
[0d50cca]22 <primary sortas="a-alsa-utils">alsa-utils</primary>
[1d13710]23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to ALSA Utilities</title>
27
[0d50cca]28 <para>
29 The <application>ALSA Utilities</application> package contains
30 various utilities which are useful for controlling your sound
31 card.
32 </para>
[1d13710]33
[1241ea19]34 &lfs121_checked;
[831c11e4]35
[1d13710]36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
[0c7d410]38 <listitem>
[0d50cca]39 <para>
40 Download (HTTP): <ulink url="&alsa-utils-download-http;"/>
41 </para>
[0c7d410]42 </listitem>
[1d13710]43 <listitem>
[0d50cca]44 <para>
45 Download (FTP): <ulink url="&alsa-utils-download-ftp;"/>
46 </para>
[1d13710]47 </listitem>
48 <listitem>
[0d50cca]49 <para>
50 Download MD5 sum: &alsa-utils-md5sum;
51 </para>
[1d13710]52 </listitem>
53 <listitem>
[0d50cca]54 <para>
55 Download size: &alsa-utils-size;
56 </para>
[1d13710]57 </listitem>
58 <listitem>
[0d50cca]59 <para>
60 Estimated disk space required: &alsa-utils-buildsize;
61 </para>
[1d13710]62 </listitem>
63 <listitem>
[0d50cca]64 <para>
65 Estimated build time: &alsa-utils-time;
66 </para>
[1d13710]67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">ALSA Utilities Dependencies</bridgehead>
[a41f643]71
[1d13710]72 <bridgehead renderas="sect4">Required</bridgehead>
[6a513a4]73 <para role="required">
[22fadd16]74 <xref linkend="alsa-lib"/>
75 </para>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
78 <para role="optional">
[758f3f6]79 <xref linkend="docutils"/>,
[0e6052db]80 <xref linkend="fftw"/>,
[09bed9e5]81 <xref linkend="libsamplerate"/>,
[0e6052db]82 <xref linkend="xmlto"/>, and
[2ef502d0]83 <ulink url="https://hightek.org/projects/dialog/">Dialog</ulink>
[22fadd16]84 </para>
[1d13710]85
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of ALSA Utilities</title>
90
[2b43a00a]91<!-- Fixed in 1.2.10
[2ef502d0]92 <para>
93 This package provides its own implementation of
94 <literal>strlcpy</literal> and <literal>strlcat</literal> functions.
95 But they are provided by Glibc-2.38 now, so we need to remove the
96 custom implementation to avoid a conflict with the Glibc header:
97 </para>
98
99 <screen><userinput>echo '' > alsactl/init_sysdeps.c</userinput></screen>
[2b43a00a]100-->
[2ef502d0]101
[0d50cca]102 <para>
103 Install <application>ALSA Utilities</application> by
104 running the following commands:
105 </para>
[1d13710]106
[1439630]107<screen><userinput>./configure --disable-alsaconf \
[68dfef54]108 --disable-bat \
109 --disable-xmlto \
[1439630]110 --with-curses=ncursesw &amp;&amp;
[7dbb464]111make</userinput></screen>
[1d13710]112
[0d50cca]113 <para>
[2ef502d0]114 To test the results, issue: <command>make check</command>.
[0d50cca]115 </para>
[1d13710]116
[0d50cca]117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
[1d13710]120
[7dbb464]121<screen role="root"><userinput>make install</userinput></screen>
[09bed9e5]122
123 </sect2>
124
125 <sect2 role="commands">
126 <title>Command Explanations</title>
127
128 <para>
[c33c599]129 <parameter>--disable-alsaconf</parameter>: This switch disables building
130 the <command>alsaconf</command> configuration tool which is incompatible
131 with <application>Udev</application>.
[09bed9e5]132 </para>
133
134 <para>
[c33c599]135 <parameter>--disable-xmlto</parameter>: Omit this switch if you have
136 installed <xref linkend="xmlto"/> and wish to regenerate the man pages.
[ccaf22e]137 </para>
138
139 <para>
[c33c599]140 <parameter>--disable-bat</parameter>: Omit this switch if you have
[0e6052db]141 installed <xref linkend="fftw"/> and wish to
[c33c599]142 install the Basic Audio Tester (BAT).
[09bed9e5]143 </para>
[1d13710]144
[1439630]145 <para>
[c33c599]146 <parameter>--with-curses=ncursesw</parameter>: This switch forces the
147 use of wide-character ncurses libraries.
[1439630]148 </para>
149
[1d13710]150 </sect2>
151
[cc550bc]152 <sect2 role="configuration" id="alsa-utils-config-sect">
[1d13710]153 <title>Configuring ALSA Utilities</title>
154
155 <sect3 id="alsa-utils-config">
156 <title>Config Files</title>
157
[0d50cca]158 <para>
159 <filename>/var/lib/alsa/asound.state</filename>
160 </para>
[1d13710]161
162 <indexterm zone="alsa-utils alsa-utils-config">
[22fadd16]163 <primary sortas="e-var-lib-alsa-asound.state">/var/lib/alsa/asound.state</primary>
[1d13710]164 </indexterm>
165
166 </sect3>
167
[8c004cf5]168 <sect3>
[1d13710]169 <title>Configuration Information</title>
170
[0d50cca]171 <para>
[3b411d49]172 As the &root; user, apply the default setting for the sound card.
173 Note that this command may return an exit code of 99 although the
174 card is correctly initialized:
[a0da9419]175 </para>
176
[3b411d49]177<screen role="nodump"><userinput>alsactl init</userinput></screen>
[a0da9419]178
179 <para>
180 Note that all channels of your sound card may be muted by default.
[0d50cca]181 You can use the <command>alsamixer</command> program to change
182 this. Use <command>speaker-test</command> to check that your
183 settings have been applied correctly. You should hear
184 <quote>pink noise</quote> on your speakers.
185 </para>
186
187 <para>
188 The <filename>alsactl</filename> program is normally run from a
189 standard <application>udev</application> rule. The first time it
190 is run, it will complain that there is no state in
191 <filename>/var/lib/alsa/asound.state</filename>. You can prevent
[9480b5d]192 this by running the following command as the
[0d50cca]193 <systemitem class="username">root</systemitem> user:
194 </para>
[1d13710]195
[de2a3f2]196<screen role="root"><userinput>alsactl -L store</userinput></screen>
[1d13710]197
[0d50cca]198 <para>
[8c004cf5]199 The volume settings should be restored from the saved state by
[0d50cca]200 <application>Udev</application> when the device is detected
201 (during boot or when plugged in for USB devices).
202 </para>
[04202bd]203<!-- not needed with elogind or systemd-logind
[0d50cca]204 <para>
205 All sound devices are not accessible for any user except
206 <systemitem class="username">root</systemitem> and members of the
207 <systemitem class="groupname">audio</systemitem> group. Add any
208 users that might use the sound devices to that group:
209 </para>
[c5923846]210
[3a79861]211<screen role="root"><userinput>usermod -a -G audio <replaceable>&lt;username&gt;</replaceable></userinput></screen>
212
213 <note>
[0d50cca]214 <para>
215 You may need to log out and back in again to refresh your group
216 memberships. '<command>su <replaceable>&lt;username&gt;</replaceable></command>'
217 should work as well.
218 </para>
[3a79861]219 </note>
[04202bd]220-->
[cebfa20]221 <para>
222 On systems which have multiple sound cards, you may need to adjust the
223 default audio device so that you can get output from your speakers.
224 To set the default device, first check the
225 <filename>/proc/asound/cards</filename> file to determine which number
226 you need to set. After you know this information, set the default card
227 with the following command as the
228 <systemitem class="username">root</systemitem> user:
229 </para>
230
231<screen role="nodump"><userinput>cat &gt; /etc/asound.conf &lt;&lt; "EOF"
232<literal># Begin /etc/asound.conf
233
234defaults.pcm.card 1
235defaults.ctl.card 1
236
237# End /etc/asound.conf</literal>
238EOF</userinput></screen>
239
[1d13710]240 </sect3>
241
[a255f1c9]242 <sect3 id="alsa-utils-init" revision="sysv">
[8c004cf5]243 <title>Boot Script</title>
244
245 <indexterm zone="alsa-utils alsa-utils-init">
246 <primary sortas="f-alsa">alsa</primary>
247 </indexterm>
248
249 <para>
[8558044]250 To automatically store and restore volume settings (if the udev rule
[ad9fc66]251 doesn't work for you) when the system is rebooted, install the
[3c7bd00]252 <filename>/etc/rc.d/init.d/alsa</filename> boot script from the
[8558044]253 <xref linkend="bootscripts" revision="sysv"/>
[3c7bd00]254 <xref linkend="systemd-units" revision="systemd"/> package.
[8c004cf5]255 </para>
256
257<screen role="root"><userinput>make install-alsa</userinput></screen>
258
259 </sect3>
260
[1d13710]261 </sect2>
262
263 <sect2 role="content">
264 <title>Contents</title>
265
266 <segmentedlist>
267 <segtitle>Installed Programs</segtitle>
[c3c56b2]268 <segtitle>Installed Libraries</segtitle>
269 <segtitle>Installed Directories</segtitle>
[1d13710]270
271 <seglistitem>
[0d50cca]272 <seg>
[11839b6f]273 aconnect, alsactl, alsaloop, alsamixer, alsatplg,
[8558044]274 alsaucm, alsa-info.sh, amidi, amixer, aplay, aplaymidi,
275 arecord (symlink), arecordmidi, aseqdump, aseqnet, axfer,
[c6a7ca62]276 iecset, and speaker-test
[0d50cca]277 </seg>
[c3c56b2]278 <seg>
279 None
280 </seg>
[0d50cca]281 <seg>
282 /usr/share/sounds/alsa and /var/lib/alsa
283 </seg>
[1d13710]284 </seglistitem>
285 </segmentedlist>
286
287 <variablelist>
288 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
289 <?dbfo list-presentation="list"?>
290 <?dbhtml list-presentation="table"?>
291
292 <varlistentry id="aconnect">
293 <term><command>aconnect</command></term>
294 <listitem>
[0d50cca]295 <para>
296 is a utility for connecting and disconnecting two
[4c24eb0a]297 existing ports in the ALSA sequencer system
[0d50cca]298 </para>
[1d13710]299 <indexterm zone="alsa-utils aconnect">
300 <primary sortas="b-aconnect">aconnect</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
[11839b6f]305 <varlistentry id="alsactl">
306 <term><command>alsactl</command></term>
307 <listitem>
308 <para>
309 is used to control advanced settings for ALSA sound card drivers.
310 Use this if alsamixer cannot utilize all of your sound card's
[4c24eb0a]311 features
[11839b6f]312 </para>
313 <indexterm zone="alsa-utils alsactl">
314 <primary sortas="b-alsactl">alsactl</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
[0d50cca]319 <varlistentry id="alsaloop">
320 <term><command>alsaloop</command></term>
321 <listitem>
322 <para>
[b4b2a76]323 allows creation of a PCM loopback between a PCM capture
[4c24eb0a]324 device and a PCM playback device
[0d50cca]325 </para>
326 <indexterm zone="alsa-utils alsaloop">
327 <primary sortas="b-alsaloop">alsaloop</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
[1d13710]332 <varlistentry id="alsamixer">
333 <term><command>alsamixer</command></term>
334 <listitem>
[0d50cca]335 <para>
336 is an Ncurses based mixer program for use with
[4c24eb0a]337 the ALSA sound card drivers
[0d50cca]338 </para>
[1d13710]339 <indexterm zone="alsa-utils alsamixer">
340 <primary sortas="b-alsamixer">alsamixer</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
[758f3f6]345 <varlistentry id="alsatplg">
346 <term><command>alsatplg</command></term>
347 <listitem>
348 <para>
349 is a utility used to compile topology configuration files into
[4c24eb0a]350 binary files for kernel drivers
[758f3f6]351 </para>
352 <indexterm zone="alsa-utils alsatplg">
353 <primary sortas="b-alsatplg">alsatplg</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
[fed174e]358 <varlistentry id="alsaucm">
359 <term><command>alsaucm</command></term>
360 <listitem>
361 <para>
362 allows applications to access the hardware in an abstracted manner
363 </para>
364 <indexterm zone="alsa-utils alsaucm">
365 <primary sortas="b-alsaucm">alsaucm</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
[1d13710]370 <varlistentry id="amidi">
371 <term><command>amidi</command></term>
372 <listitem>
[0d50cca]373 <para>
374 is used to read from and write to ALSA
[4c24eb0a]375 RawMIDI ports
[0d50cca]376 </para>
[1d13710]377 <indexterm zone="alsa-utils amidi">
378 <primary sortas="b-amidi">amidi</primary>
379 </indexterm>
380 </listitem>
381 </varlistentry>
382
383 <varlistentry id="amixer">
384 <term><command>amixer</command></term>
385 <listitem>
[2eeb8695]386 <para>
387 allows command-line control of the mixers for the
[4c24eb0a]388 ALSA sound card drivers
[2eeb8695]389 </para>
[1d13710]390 <indexterm zone="alsa-utils amixer">
391 <primary sortas="b-amixer">amixer</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="aplay">
397 <term><command>aplay</command></term>
398 <listitem>
[0d50cca]399 <para>
400 is a command-line soundfile player for the
[4c24eb0a]401 ALSA sound card drivers
[0d50cca]402 </para>
[1d13710]403 <indexterm zone="alsa-utils aplay">
404 <primary sortas="b-aplay">aplay</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="aplaymidi">
410 <term><command>aplaymidi</command></term>
411 <listitem>
[0d50cca]412 <para>
413 is a command-line utility that plays the specified
[4c24eb0a]414 MIDI file(s) to one or more ALSA sequencer ports
[0d50cca]415 </para>
[1d13710]416 <indexterm zone="alsa-utils aplaymidi">
417 <primary sortas="b-aplaymidi">aplaymidi</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="arecord">
423 <term><command>arecord</command></term>
424 <listitem>
[0d50cca]425 <para>
426 is a command-line soundfile recorder for the
[4c24eb0a]427 ALSA sound card drivers
[0d50cca]428 </para>
[1d13710]429 <indexterm zone="alsa-utils arecord">
430 <primary sortas="b-arecord">arecord</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="arecordmidi">
436 <term><command>arecordmidi</command></term>
437 <listitem>
[0d50cca]438 <para>
439 is a command-line utility that records a standard
[4c24eb0a]440 MIDI file from one or more ALSA sequencer ports
[0d50cca]441 </para>
[1d13710]442 <indexterm zone="alsa-utils arecordmidi">
443 <primary sortas="b-arecordmidi">arecordmidi</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
[bdf22d74]448 <varlistentry id="aseqdump">
449 <term><command>aseqdump</command></term>
450 <listitem>
[0d50cca]451 <para>
452 is a command-line utility that prints the sequencer events it
[4c24eb0a]453 receives as text
[0d50cca]454 </para>
[bdf22d74]455 <indexterm zone="alsa-utils aseqdump">
456 <primary sortas="b-aseqdump">aseqdump</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
[1d13710]461 <varlistentry id="aseqnet">
462 <term><command>aseqnet</command></term>
463 <listitem>
[0d50cca]464 <para>
465 is an ALSA sequencer client which sends and
[4c24eb0a]466 receives event packets over a network
[0d50cca]467 </para>
[1d13710]468 <indexterm zone="alsa-utils aseqnet">
469 <primary sortas="b-aseqnet">aseqnet</primary>
470 </indexterm>
471 </listitem>
472 </varlistentry>
473
[11839b6f]474 <varlistentry id="axfer">
475 <term><command>axfer</command></term>
476 <listitem>
477 <para>
478 is a command-line recorder and player used to transfer audio frames
[4c24eb0a]479 between sound devices and files
[11839b6f]480 </para>
481 <indexterm zone="alsa-utils axfer">
482 <primary sortas="b-axfer">axfer</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
[1d13710]487 <varlistentry id="iecset">
488 <term><command>iecset</command></term>
489 <listitem>
[0d50cca]490 <para>
491 is a small utility to set or dump the IEC958 (or so-called
492 <quote>S/PDIF</quote>) status bits of the specified sound
[4c24eb0a]493 card via the ALSA control API
[0d50cca]494 </para>
[1d13710]495 <indexterm zone="alsa-utils iecset">
496 <primary sortas="b-iecset">iecset</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="speaker-test">
502 <term><command>speaker-test</command></term>
503 <listitem>
[0d50cca]504 <para>
[4c24eb0a]505 is a command-line speaker test tone generator for ALSA
[0d50cca]506 </para>
[1d13710]507 <indexterm zone="alsa-utils speaker-test">
508 <primary sortas="b-speaker-test">speaker-test</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 </variablelist>
514
515 </sect2>
[48b7295]516
517</sect1>
Note: See TracBrowser for help on using the repository browser.