[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">
|
---|
[22fadd16] | 9 | <!ENTITY alsa-utils-md5sum "8238cd57cb301d1c36bcf0ecb59ce6b2">
|
---|
| 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 |
|
---|
[48b7295] | 16 | <sect1 id="alsa-utils" xreflabel="ALSA Utilities-&alsa-utils-version;">
|
---|
[1d13710] | 17 | <?dbhtml filename="alsa-utils.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>ALSA Utilities-&alsa-utils-version;</title>
|
---|
| 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 |
|
---|
[22fadd16] | 36 | &lfs70_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">
|
---|
| 69 | <xref linkend="xmlto"/>
|
---|
| 70 | </para>
|
---|
[1d13710] | 71 |
|
---|
[7711710] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
[22fadd16] | 75 | <para>Optional patch: <ulink
|
---|
| 76 | url="&patch-root;/&alsa-utils-patch;"/></para>
|
---|
[7711710] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
| 80 |
|
---|
[0e2aa08] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
| 82 | <ulink url="&blfs-wiki;/alsa-utils"/></para>
|
---|
| 83 |
|
---|
[1d13710] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of ALSA Utilities</title>
|
---|
| 88 |
|
---|
[22fadd16] | 89 | <para>If you have not installed the optional dependency <xref linkend='xmlto'/>,
|
---|
| 90 | apply the following patch:</para>
|
---|
| 91 |
|
---|
| 92 | <screen><userinput>patch -Np1 -i ../&alsa-utils-patch;</userinput></screen>
|
---|
| 93 |
|
---|
[9df3b847] | 94 | <para>Install <application>ALSA Utilities</application> by
|
---|
[1d13710] | 95 | running the following commands:</para>
|
---|
| 96 |
|
---|
[22fadd16] | 97 | <screen><userinput>./configure &&
|
---|
[1d13710] | 98 | make</userinput></screen>
|
---|
| 99 |
|
---|
| 100 | <para>This package does not come with a test suite.</para>
|
---|
| 101 |
|
---|
| 102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="configuration">
|
---|
| 109 | <title>Configuring ALSA Utilities</title>
|
---|
| 110 |
|
---|
| 111 | <sect3 id="alsa-utils-config">
|
---|
| 112 | <title>Config Files</title>
|
---|
| 113 |
|
---|
[22fadd16] | 114 | <para><filename>/var/lib/alsa/asound.state</filename></para>
|
---|
[1d13710] | 115 |
|
---|
| 116 | <indexterm zone="alsa-utils alsa-utils-config">
|
---|
[22fadd16] | 117 | <primary sortas="e-var-lib-alsa-asound.state">/var/lib/alsa/asound.state</primary>
|
---|
[1d13710] | 118 | </indexterm>
|
---|
| 119 |
|
---|
| 120 | </sect3>
|
---|
| 121 |
|
---|
| 122 | <sect3 id="alsa-utils-init">
|
---|
| 123 | <title>Configuration Information</title>
|
---|
| 124 |
|
---|
[5e82411c] | 125 | <para> Use a bootscript to store the values at shutdown.</para>
|
---|
[1d13710] | 126 |
|
---|
| 127 | <indexterm zone="alsa-utils alsa-utils-init">
|
---|
| 128 | <primary sortas="f-alsa">alsa</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 |
|
---|
[9df3b847] | 131 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
| 132 | install the init script <filename>/etc/rc.d/init.d/alsa</filename> included
|
---|
[5254d12] | 133 | in the <xref linkend="bootscripts"/> package.</para>
|
---|
[1d13710] | 134 |
|
---|
| 135 | <screen role="root"><userinput>make install-alsa</userinput></screen>
|
---|
| 136 |
|
---|
[9df3b847] | 137 | <para>Note that all channels of your sound card are muted by default.
|
---|
[656725d] | 138 | You can use the <command>alsamixer</command> program from the
|
---|
[22f39f2] | 139 | <application>ALSA Utilities</application> to change this. Use
|
---|
| 140 | <command>speaker-test</command> to check that your settings have
|
---|
[831c11e4] | 141 | been applied correctly. You should hear <quote>pink noise</quote> on your
|
---|
| 142 | speakers.</para>
|
---|
[1d13710] | 143 |
|
---|
[04be25f] | 144 | <para>The first time the <filename>alsactl</filename> program is run from
|
---|
| 145 | the <application>udev</application> rule below, it will complain that
|
---|
| 146 | there is no state in <filename>/etc/asound.state</filename>. You can
|
---|
| 147 | prevent this by running the following commands as the <systemitem
|
---|
| 148 | class="username">root</systemitem> user:</para>
|
---|
[1d13710] | 149 |
|
---|
[22fadd16] | 150 | <screen role="root"><userinput>mkdir -p /var/lib/alsa &&
|
---|
| 151 | touch /var/lib/alsa/asound.state &&
|
---|
[1d13710] | 152 | alsactl store</userinput></screen>
|
---|
| 153 |
|
---|
[7ffd4d7] | 154 | <para>The volume settings will be restored from the saved state by
|
---|
| 155 | <application>Udev</application> when the device is detected (during boot
|
---|
| 156 | or when plugged in for USB devices).</para>
|
---|
[63c29e8] | 157 |
|
---|
[7ffd4d7] | 158 | <para>As the <systemitem class="username">root</systemitem> user, install
|
---|
| 159 | a new <application>Udev</application> rules file to create the audio
|
---|
[a40efd2c] | 160 | device nodes and run the restore script:</para>
|
---|
| 161 |
|
---|
[b4e477a] | 162 | <screen role="root"><userinput>cat > /etc/udev/rules.d/40-alsa.rules << "EOF"
|
---|
| 163 | # /etc/udev/rules.d/40-alsa.rules
|
---|
[a40efd2c] | 164 |
|
---|
| 165 | # When a sound device is detected, restore the volume settings
|
---|
[7ffd4d7] | 166 | KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"
|
---|
[a40efd2c] | 167 | EOF
|
---|
[b4e477a] | 168 | chmod -v 644 /etc/udev/rules.d/40-alsa.rules</userinput></screen>
|
---|
[1d13710] | 169 |
|
---|
[410e228b] | 170 | <para>All sound devices are not accessible for any user except
|
---|
[3a79861] | 171 | <systemitem class="username">root</systemitem> and members of the
|
---|
| 172 | <systemitem class="groupname">audio</systemitem> group. Add any users
|
---|
| 173 | that might use the sound devices to that group:</para>
|
---|
[c5923846] | 174 |
|
---|
[3a79861] | 175 | <screen role="root"><userinput>usermod -a -G audio <replaceable><username></replaceable></userinput></screen>
|
---|
| 176 |
|
---|
| 177 | <note>
|
---|
| 178 | <para>You may need to log out and back in again to refresh your group
|
---|
| 179 | memberships. '<command>su <replaceable><username></replaceable></command>'
|
---|
[c5923846] | 180 | should work as well.</para>
|
---|
[3a79861] | 181 | </note>
|
---|
| 182 |
|
---|
[1d13710] | 183 | </sect3>
|
---|
| 184 |
|
---|
| 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | <sect2 role="content">
|
---|
| 188 | <title>Contents</title>
|
---|
| 189 |
|
---|
| 190 | <segmentedlist>
|
---|
| 191 | <segtitle>Installed Programs</segtitle>
|
---|
| 192 | <segtitle>Installed Libraries</segtitle>
|
---|
[831c11e4] | 193 | <segtitle>Installed Directory</segtitle>
|
---|
[1d13710] | 194 |
|
---|
| 195 | <seglistitem>
|
---|
[9f12e36] | 196 | <seg>aconnect, alsaconf, alsactl, alsamixer, amidi,
|
---|
[831c11e4] | 197 | amixer, aplay, aplaymidi, arecord, arecordmidi, aseqdump,
|
---|
| 198 | aseqnet, iecset, and speaker-test</seg>
|
---|
[1d13710] | 199 | <seg>None</seg>
|
---|
[22fadd16] | 200 | <seg>/var/lib/alsa and /usr/share/sounds/alsa</seg>
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 212 | <para>is a utility for connecting and disconnecting two existing
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 223 | <para>is a configuration tool which tries to detect the sound cards
|
---|
[fd288e7] | 224 | on your system and write a suitable configuration file for ALSA.
|
---|
| 225 | This program is incompatible with udev and hotplug.</para>
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 235 | <para>is used to control advanced settings for the
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 246 | <para>is an ncurses-based mixer program for use with the
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 257 | <para>is used to read from and write to ALSA
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 268 | <para> allows command-line control of the mixers for the
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 279 | <para>is a command-line soundfile player for the
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 290 | <para>is a command-line utility that plays the specified
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 301 | <para>is a command-line soundfile recorder for the
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 312 | <para>is a command-line utility that records a standard
|
---|
[1d13710] | 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 |
|
---|
[bdf22d74] | 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 |
|
---|
[1d13710] | 331 | <varlistentry id="aseqnet">
|
---|
| 332 | <term><command>aseqnet</command></term>
|
---|
| 333 | <listitem>
|
---|
[9df3b847] | 334 | <para>is an ALSA sequencer client which sends
|
---|
[1d13710] | 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>
|
---|
[9df3b847] | 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
|
---|
[1d13710] | 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>
|
---|
[48b7295] | 367 |
|
---|
| 368 | </sect1>
|
---|