source: multimedia/libdriv/alsa-utils.xml@ 6da3b40

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 6da3b40 was 2a72ab9, checked in by Ken Moffat <ken@…>, 11 months ago

Tags.

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