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