[1d13710] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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">
|
---|
[7ffd4d7] | 9 | <!ENTITY alsa-utils-md5sum "ba9b8010120701d0f6daf061d392cfa2">
|
---|
| 10 | <!ENTITY alsa-utils-size "972 KB">
|
---|
| 11 | <!ENTITY alsa-utils-buildsize "6.8 MB">
|
---|
[bdf22d74] | 12 | <!ENTITY alsa-utils-time "0.1 SBU">
|
---|
[48b7295] | 13 | ]>
|
---|
[43ef043b] | 14 |
|
---|
[48b7295] | 15 | <sect1 id="alsa-utils" xreflabel="ALSA Utilities-&alsa-utils-version;">
|
---|
[1d13710] | 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 |
|
---|
[9df3b847] | 32 | <para>The <application>ALSA Utilities</application> package contains
|
---|
[1d13710] | 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>
|
---|
[a747b3c] | 60 | <para role="required"><xref linkend="alsa-lib"/></para>
|
---|
[1d13710] | 61 |
|
---|
[0e2aa08] | 62 | <para condition="html" role="usernotes">User Notes:
|
---|
| 63 | <ulink url="&blfs-wiki;/alsa-utils"/></para>
|
---|
| 64 |
|
---|
[1d13710] | 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 role="installation">
|
---|
| 68 | <title>Installation of ALSA Utilities</title>
|
---|
| 69 |
|
---|
[9df3b847] | 70 | <para>Install <application>ALSA Utilities</application> by
|
---|
[1d13710] | 71 | running the following commands:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput>./configure &&
|
---|
| 74 | make</userinput></screen>
|
---|
| 75 |
|
---|
| 76 | <para>This package does not come with a test suite.</para>
|
---|
| 77 |
|
---|
| 78 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 79 |
|
---|
| 80 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="configuration">
|
---|
| 85 | <title>Configuring ALSA Utilities</title>
|
---|
| 86 |
|
---|
| 87 | <sect3 id="alsa-utils-config">
|
---|
| 88 | <title>Config Files</title>
|
---|
| 89 |
|
---|
| 90 | <para><filename>/etc/asound.state</filename></para>
|
---|
| 91 |
|
---|
| 92 | <indexterm zone="alsa-utils alsa-utils-config">
|
---|
| 93 | <primary sortas="e-etc-asound.state">/etc/asound.state</primary>
|
---|
| 94 | </indexterm>
|
---|
| 95 |
|
---|
| 96 | </sect3>
|
---|
| 97 |
|
---|
| 98 | <sect3 id="alsa-utils-init">
|
---|
| 99 | <title>Configuration Information</title>
|
---|
| 100 |
|
---|
[5e82411c] | 101 | <para> Use a bootscript to store the values at shutdown.</para>
|
---|
[1d13710] | 102 |
|
---|
| 103 | <indexterm zone="alsa-utils alsa-utils-init">
|
---|
| 104 | <primary sortas="f-alsa">alsa</primary>
|
---|
| 105 | </indexterm>
|
---|
| 106 |
|
---|
[9df3b847] | 107 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
| 108 | install the init script <filename>/etc/rc.d/init.d/alsa</filename> included
|
---|
[5254d12] | 109 | in the <xref linkend="bootscripts"/> package.</para>
|
---|
[1d13710] | 110 |
|
---|
| 111 | <screen role="root"><userinput>make install-alsa</userinput></screen>
|
---|
| 112 |
|
---|
[9df3b847] | 113 | <para>Note that all channels of your sound card are muted by default.
|
---|
[656725d] | 114 | You can use the <command>alsamixer</command> program from the
|
---|
[5e82411c] | 115 | <application>ALSA Utilities</application> to change this.</para>
|
---|
[1d13710] | 116 |
|
---|
[04be25f] | 117 | <para>The first time the <filename>alsactl</filename> program is run from
|
---|
| 118 | the <application>udev</application> rule below, it will complain that
|
---|
| 119 | there is no state in <filename>/etc/asound.state</filename>. You can
|
---|
| 120 | prevent this by running the following commands as the <systemitem
|
---|
| 121 | class="username">root</systemitem> user:</para>
|
---|
[1d13710] | 122 |
|
---|
| 123 | <screen role="root"><userinput>touch /etc/asound.state &&
|
---|
| 124 | alsactl store</userinput></screen>
|
---|
| 125 |
|
---|
[7ffd4d7] | 126 | <para>The volume settings will be restored from the saved state by
|
---|
| 127 | <application>Udev</application> when the device is detected (during boot
|
---|
| 128 | or when plugged in for USB devices).</para>
|
---|
[63c29e8] | 129 |
|
---|
[7ffd4d7] | 130 | <!--
|
---|
[bccbdaea] | 131 | <para> While still the
|
---|
[656725d] | 132 | <systemitem class="username">root</systemitem> user, create the
|
---|
[bccbdaea] | 133 | <filename>/etc/udev/scripts/alsa-restore</filename> script with
|
---|
[a40efd2c] | 134 | the following commands:</para>
|
---|
[9700e433] | 135 |
|
---|
[a40efd2c] | 136 | <screen role="root"><userinput>install -v -d -m754 /etc/udev/scripts &&
|
---|
| 137 | cat > /etc/udev/scripts/alsa-restore << "EOF"
|
---|
[9700e433] | 138 | #!/bin/sh -e
|
---|
[a40efd2c] | 139 | # Begin /etc/udev/scripts/alsa-restore
|
---|
| 140 | # $1 is (the numbered device "%n") passed in by udev/kernel.
|
---|
[63c29e8] | 141 |
|
---|
[7ffd4d7] | 142 | rc=1
|
---|
[a40efd2c] | 143 |
|
---|
| 144 | if [ -f /usr/sbin/alsactl ]; then
|
---|
| 145 | /usr/sbin/alsactl restore "${1}"
|
---|
[7ffd4d7] | 146 | rc=$?
|
---|
[a40efd2c] | 147 | fi
|
---|
[7ffd4d7] | 148 |
|
---|
| 149 | exit $rc
|
---|
[a40efd2c] | 150 |
|
---|
| 151 | # End /etc/udev/scripts/alsa-restore
|
---|
| 152 | EOF
|
---|
| 153 | chmod -v 754 /etc/udev/scripts/alsa-restore</userinput></screen>
|
---|
[7ffd4d7] | 154 | -->
|
---|
[a40efd2c] | 155 |
|
---|
[7ffd4d7] | 156 | <para>As the <systemitem class="username">root</systemitem> user, install
|
---|
| 157 | a new <application>Udev</application> rules file to create the audio
|
---|
[a40efd2c] | 158 | device nodes and run the restore script:</para>
|
---|
| 159 |
|
---|
| 160 | <screen role="root"><userinput>cat > /etc/udev/rules.d/15-alsa.rules << "EOF"
|
---|
| 161 | # Give the audio group ownership of sound devices
|
---|
| 162 | SUBSYSTEM=="sound", GROUP="audio"
|
---|
| 163 | SUBSYSTEM=="snd", GROUP="audio"
|
---|
| 164 |
|
---|
| 165 | # ALSA Devices
|
---|
| 166 | # When a sound device is detected, restore the volume settings
|
---|
[7ffd4d7] | 167 | KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"
|
---|
[a40efd2c] | 168 | KERNEL="hw[CD0-9]*", NAME="snd/%k"
|
---|
| 169 | KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
|
---|
| 170 | KERNEL="midiC[D0-9]*", NAME="snd/%k"
|
---|
| 171 | KERNEL="timer", NAME="snd/%k"
|
---|
| 172 | KERNEL="seq", NAME="snd/%k"
|
---|
| 173 | EOF
|
---|
| 174 | chmod 644 /etc/udev/rules.d/15-alsa.rules</userinput></screen>
|
---|
[1d13710] | 175 |
|
---|
| 176 | </sect3>
|
---|
| 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
| 180 | <sect2 role="content">
|
---|
| 181 | <title>Contents</title>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
| 184 | <segtitle>Installed Programs</segtitle>
|
---|
| 185 | <segtitle>Installed Libraries</segtitle>
|
---|
| 186 | <segtitle>Installed Directories</segtitle>
|
---|
| 187 |
|
---|
| 188 | <seglistitem>
|
---|
[9f12e36] | 189 | <seg>aconnect, alsaconf, alsactl, alsamixer, amidi,
|
---|
| 190 | amixer, aplay, aplaymidi, arecord, arecordmidi, aseqnet,
|
---|
[7ffd4d7] | 191 | aseqdump, iecset, and speaker-test</seg>
|
---|
[1d13710] | 192 | <seg>None</seg>
|
---|
| 193 | <seg>None</seg>
|
---|
| 194 | </seglistitem>
|
---|
| 195 | </segmentedlist>
|
---|
| 196 |
|
---|
| 197 | <variablelist>
|
---|
| 198 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 199 | <?dbfo list-presentation="list"?>
|
---|
| 200 | <?dbhtml list-presentation="table"?>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="aconnect">
|
---|
| 203 | <term><command>aconnect</command></term>
|
---|
| 204 | <listitem>
|
---|
[9df3b847] | 205 | <para>is a utility for connecting and disconnecting two existing
|
---|
[1d13710] | 206 | ports in the ALSA sequencer system.</para>
|
---|
| 207 | <indexterm zone="alsa-utils aconnect">
|
---|
| 208 | <primary sortas="b-aconnect">aconnect</primary>
|
---|
| 209 | </indexterm>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="alsaconf">
|
---|
| 214 | <term><command>alsaconf</command></term>
|
---|
| 215 | <listitem>
|
---|
[9df3b847] | 216 | <para>is a configuration tool which tries to detect the sound cards
|
---|
[fd288e7] | 217 | on your system and write a suitable configuration file for ALSA.
|
---|
| 218 | This program is incompatible with udev and hotplug.</para>
|
---|
[1d13710] | 219 | <indexterm zone="alsa-utils alsaconf">
|
---|
| 220 | <primary sortas="b-alsaconf">alsaconf</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="alsactl">
|
---|
| 226 | <term><command>alsactl</command></term>
|
---|
| 227 | <listitem>
|
---|
[9df3b847] | 228 | <para>is used to control advanced settings for the
|
---|
[1d13710] | 229 | ALSA sound card drivers.</para>
|
---|
| 230 | <indexterm zone="alsa-utils alsactl">
|
---|
| 231 | <primary sortas="b-alsactl">alsactl</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="alsamixer">
|
---|
| 237 | <term><command>alsamixer</command></term>
|
---|
| 238 | <listitem>
|
---|
[9df3b847] | 239 | <para>is an ncurses-based mixer program for use with the
|
---|
[1d13710] | 240 | ALSA sound card drivers.</para>
|
---|
| 241 | <indexterm zone="alsa-utils alsamixer">
|
---|
| 242 | <primary sortas="b-alsamixer">alsamixer</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | <varlistentry id="amidi">
|
---|
| 248 | <term><command>amidi</command></term>
|
---|
| 249 | <listitem>
|
---|
[9df3b847] | 250 | <para>is used to read from and write to ALSA
|
---|
[1d13710] | 251 | RawMIDI ports.</para>
|
---|
| 252 | <indexterm zone="alsa-utils amidi">
|
---|
| 253 | <primary sortas="b-amidi">amidi</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="amixer">
|
---|
| 259 | <term><command>amixer</command></term>
|
---|
| 260 | <listitem>
|
---|
[9df3b847] | 261 | <para> allows command-line control of the mixers for the
|
---|
[1d13710] | 262 | ALSA sound card drivers.</para>
|
---|
| 263 | <indexterm zone="alsa-utils amixer">
|
---|
| 264 | <primary sortas="b-amixer">amixer</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="aplay">
|
---|
| 270 | <term><command>aplay</command></term>
|
---|
| 271 | <listitem>
|
---|
[9df3b847] | 272 | <para>is a command-line soundfile player for the
|
---|
[1d13710] | 273 | ALSA sound card drivers.</para>
|
---|
| 274 | <indexterm zone="alsa-utils aplay">
|
---|
| 275 | <primary sortas="b-aplay">aplay</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | <varlistentry id="aplaymidi">
|
---|
| 281 | <term><command>aplaymidi</command></term>
|
---|
| 282 | <listitem>
|
---|
[9df3b847] | 283 | <para>is a command-line utility that plays the specified
|
---|
[1d13710] | 284 | MIDI file(s) to one or more ALSA sequencer ports.</para>
|
---|
| 285 | <indexterm zone="alsa-utils aplaymidi">
|
---|
| 286 | <primary sortas="b-aplaymidi">aplaymidi</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
| 291 | <varlistentry id="arecord">
|
---|
| 292 | <term><command>arecord</command></term>
|
---|
| 293 | <listitem>
|
---|
[9df3b847] | 294 | <para>is a command-line soundfile recorder for the
|
---|
[1d13710] | 295 | ALSA sound card drivers.</para>
|
---|
| 296 | <indexterm zone="alsa-utils arecord">
|
---|
| 297 | <primary sortas="b-arecord">arecord</primary>
|
---|
| 298 | </indexterm>
|
---|
| 299 | </listitem>
|
---|
| 300 | </varlistentry>
|
---|
| 301 |
|
---|
| 302 | <varlistentry id="arecordmidi">
|
---|
| 303 | <term><command>arecordmidi</command></term>
|
---|
| 304 | <listitem>
|
---|
[9df3b847] | 305 | <para>is a command-line utility that records a standard
|
---|
[1d13710] | 306 | MIDI file from one or more ALSA sequencer ports.</para>
|
---|
| 307 | <indexterm zone="alsa-utils arecordmidi">
|
---|
| 308 | <primary sortas="b-arecordmidi">arecordmidi</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
| 312 |
|
---|
[bdf22d74] | 313 | <varlistentry id="aseqdump">
|
---|
| 314 | <term><command>aseqdump</command></term>
|
---|
| 315 | <listitem>
|
---|
| 316 | <para>is a command-line utility that prints the sequencer events it
|
---|
| 317 | receives as text.</para>
|
---|
| 318 | <indexterm zone="alsa-utils aseqdump">
|
---|
| 319 | <primary sortas="b-aseqdump">aseqdump</primary>
|
---|
| 320 | </indexterm>
|
---|
| 321 | </listitem>
|
---|
| 322 | </varlistentry>
|
---|
| 323 |
|
---|
[1d13710] | 324 | <varlistentry id="aseqnet">
|
---|
| 325 | <term><command>aseqnet</command></term>
|
---|
| 326 | <listitem>
|
---|
[9df3b847] | 327 | <para>is an ALSA sequencer client which sends
|
---|
[1d13710] | 328 | and receives event packets over a network.</para>
|
---|
| 329 | <indexterm zone="alsa-utils aseqnet">
|
---|
| 330 | <primary sortas="b-aseqnet">aseqnet</primary>
|
---|
| 331 | </indexterm>
|
---|
| 332 | </listitem>
|
---|
| 333 | </varlistentry>
|
---|
| 334 |
|
---|
| 335 | <varlistentry id="iecset">
|
---|
| 336 | <term><command>iecset</command></term>
|
---|
| 337 | <listitem>
|
---|
[9df3b847] | 338 | <para>is a small utility to set or dump the IEC958 (or so-called
|
---|
| 339 | <quote>S/PDIF</quote>) status bits of the specified sound
|
---|
[1d13710] | 340 | card via the ALSA control API.</para>
|
---|
| 341 | <indexterm zone="alsa-utils iecset">
|
---|
| 342 | <primary sortas="b-iecset">iecset</primary>
|
---|
| 343 | </indexterm>
|
---|
| 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
| 346 |
|
---|
| 347 | <varlistentry id="speaker-test">
|
---|
| 348 | <term><command>speaker-test</command></term>
|
---|
| 349 | <listitem>
|
---|
| 350 | <para>is a command-line speaker test tone generator for ALSA.</para>
|
---|
| 351 | <indexterm zone="alsa-utils speaker-test">
|
---|
| 352 | <primary sortas="b-speaker-test">speaker-test</primary>
|
---|
| 353 | </indexterm>
|
---|
| 354 | </listitem>
|
---|
| 355 | </varlistentry>
|
---|
| 356 |
|
---|
| 357 | </variablelist>
|
---|
| 358 |
|
---|
| 359 | </sect2>
|
---|
[48b7295] | 360 |
|
---|
| 361 | </sect1>
|
---|