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