[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>
|
---|
| 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>
|
---|
| 60 | <para><xref linkend="alsa-lib"/></para>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 role="installation">
|
---|
| 65 | <title>Installation of ALSA Utilities</title>
|
---|
| 66 |
|
---|
[9df3b847] | 67 | <para>Install <application>ALSA Utilities</application> by
|
---|
[1d13710] | 68 | running the following commands:</para>
|
---|
| 69 |
|
---|
| 70 | <screen><userinput>./configure &&
|
---|
| 71 | make</userinput></screen>
|
---|
| 72 |
|
---|
| 73 | <para>This package does not come with a test suite.</para>
|
---|
| 74 |
|
---|
| 75 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 76 |
|
---|
| 77 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="configuration">
|
---|
| 82 | <title>Configuring ALSA Utilities</title>
|
---|
| 83 |
|
---|
| 84 | <sect3 id="alsa-utils-config">
|
---|
| 85 | <title>Config Files</title>
|
---|
| 86 |
|
---|
| 87 | <para><filename>/etc/asound.state</filename></para>
|
---|
| 88 |
|
---|
| 89 | <indexterm zone="alsa-utils alsa-utils-config">
|
---|
| 90 | <primary sortas="e-etc-asound.state">/etc/asound.state</primary>
|
---|
| 91 | </indexterm>
|
---|
| 92 |
|
---|
| 93 | </sect3>
|
---|
| 94 |
|
---|
| 95 | <sect3 id="alsa-utils-init">
|
---|
| 96 | <title>Configuration Information</title>
|
---|
| 97 |
|
---|
[5e82411c] | 98 | <para> Use a bootscript to store the values at shutdown.</para>
|
---|
[1d13710] | 99 |
|
---|
| 100 | <indexterm zone="alsa-utils alsa-utils-init">
|
---|
| 101 | <primary sortas="f-alsa">alsa</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 |
|
---|
[9df3b847] | 104 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
| 105 | install the init script <filename>/etc/rc.d/init.d/alsa</filename> included
|
---|
[1d13710] | 106 | in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 107 |
|
---|
| 108 | <screen role="root"><userinput>make install-alsa</userinput></screen>
|
---|
| 109 |
|
---|
[9df3b847] | 110 | <para>Note that all channels of your sound card are muted by default.
|
---|
[656725d] | 111 | You can use the <command>alsamixer</command> program from the
|
---|
[5e82411c] | 112 | <application>ALSA Utilities</application> to change this.</para>
|
---|
[1d13710] | 113 |
|
---|
[656725d] | 114 | <para>The first time the <filename class='directory'>dev.d</filename>
|
---|
| 115 | script below is run, it will complain
|
---|
[9700e433] | 116 | that there is no state in <filename>/etc/asound.state</filename>.
|
---|
[656725d] | 117 | You can prevent this by running the following commands as
|
---|
| 118 | the <systemitem class="username">root</systemitem> user:</para>
|
---|
[1d13710] | 119 |
|
---|
| 120 | <screen role="root"><userinput>touch /etc/asound.state &&
|
---|
| 121 | alsactl store</userinput></screen>
|
---|
| 122 |
|
---|
[656725d] | 123 | <para>The volume settings will be restored from the saved state using a
|
---|
| 124 | <filename class='directory'>dev.d</filename> handler script that will
|
---|
| 125 | execute when the device is detected
|
---|
[63c29e8] | 126 | during boot (when plugged in for USB devices).</para>
|
---|
| 127 |
|
---|
| 128 | <note>
|
---|
| 129 | <para>For versions of udev greater than 0.58, this script will
|
---|
| 130 | not work by default. You'll have to add dev.d compatibility by adding
|
---|
| 131 | a udev rules file that contains the line
|
---|
| 132 | 'RUN="/sbin/udev_send_devd" to continue using the now depreciated
|
---|
| 133 | dev.d system.</para>
|
---|
| 134 | </note>
|
---|
| 135 |
|
---|
| 136 | <para> While still the
|
---|
[656725d] | 137 | <systemitem class="username">root</systemitem> user, create the
|
---|
| 138 | <filename class='directory'>dev.d</filename> script with the following
|
---|
| 139 | commands:</para>
|
---|
[9700e433] | 140 |
|
---|
[656725d] | 141 | <screen role="root"><userinput>install -v -d -m755 /etc/dev.d/snd &&
|
---|
[63c29e8] | 142 | cat > /etc/dev.d/snd/alsa.dev << "EOF"
|
---|
[9700e433] | 143 | #!/bin/sh -e
|
---|
[63c29e8] | 144 | # This script is called by udevd when a change in a device is
|
---|
| 145 | # detected, including initial detection upon bootup.
|
---|
| 146 | # udevd sets the environment variables ACTION and DEVNAME.
|
---|
| 147 |
|
---|
| 148 | [ "$ACTION" = "add" ] || exit 0
|
---|
[9700e433] | 149 | DEV_BASENAME="${DEVNAME##*/}"
|
---|
| 150 | N="${DEV_BASENAME#controlC}"
|
---|
| 151 | case "$DEV_BASENAME" in
|
---|
[63c29e8] | 152 | controlC[0-7])
|
---|
| 153 | x=0
|
---|
| 154 | while [ $x -lt 20 ]; do
|
---|
| 155 | # Wait up to 20 seconds for /usr to be mounted if necessary
|
---|
| 156 | if [ -f /usr/sbin/alsactl ]; then
|
---|
| 157 | /usr/sbin/alsactl restore $N
|
---|
| 158 | exit 0
|
---|
| 159 | fi
|
---|
| 160 | sleep 1
|
---|
| 161 | x=`expr $x + 1`
|
---|
| 162 | done & # Put the while command in the background and continue
|
---|
| 163 | ;;
|
---|
[9700e433] | 164 | esac
|
---|
| 165 | exit 0
|
---|
| 166 | EOF
|
---|
[656725d] | 167 | chmod -v 755 /etc/dev.d/snd/alsa.dev</userinput></screen>
|
---|
[9700e433] | 168 |
|
---|
| 169 |
|
---|
| 170 | <para>You may wish to do additional configuration on a per card basis.
|
---|
[63c29e8] | 171 | For example, if you wish to load soundfont banks, use the following
|
---|
| 172 | sample script:</para>
|
---|
[9700e433] | 173 |
|
---|
| 174 | <screen>#!/bin/sh -e
|
---|
[63c29e8] | 175 | # Begin /etc/dev.d/snd/<replaceable>[DEVICE]</replaceable>/asfxload.dev
|
---|
| 176 |
|
---|
| 177 | x=0
|
---|
| 178 | while [ $x -lt 20 ]; do
|
---|
| 179 | # Wait up to 20 seconds for /usr to be mounted if necessary
|
---|
| 180 | if [ -f /usr/bin/asfxload ]; then
|
---|
| 181 | # Load 8 MB sountfont bank
|
---|
| 182 | /usr/bin/asfxload /usr/share/sounds/sf2/8mbgmsfx.sf2 -D "<replaceable>[ALSA device string]</replaceable>"
|
---|
| 183 | exit 0
|
---|
| 184 | fi
|
---|
| 185 | sleep 1
|
---|
| 186 | x=`expr $x + 1`
|
---|
| 187 | done & # Put the while command in the background and continue
|
---|
[9700e433] | 188 |
|
---|
[63c29e8] | 189 | exit 0
|
---|
| 190 | # End /etc/dev.d/snd/<replaceable>[DEVICE]</replaceable>/asfxload.dev</screen>
|
---|
[1d13710] | 191 |
|
---|
| 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>
|
---|
| 202 | <segtitle>Installed Directories</segtitle>
|
---|
| 203 |
|
---|
| 204 | <seglistitem>
|
---|
[9df3b847] | 205 | <seg>aconnect, alsaconf, alsactl, alsamixer, amidi, amixer, aplay, aplaymidi,
|
---|
[bdf22d74] | 206 | arecord, arecordmidi, aseqnet, aseqdump, iecset, and speaker-test</seg>
|
---|
[1d13710] | 207 | <seg>None</seg>
|
---|
| 208 | <seg>None</seg>
|
---|
| 209 | </seglistitem>
|
---|
| 210 | </segmentedlist>
|
---|
| 211 |
|
---|
| 212 | <variablelist>
|
---|
| 213 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 214 | <?dbfo list-presentation="list"?>
|
---|
| 215 | <?dbhtml list-presentation="table"?>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="aconnect">
|
---|
| 218 | <term><command>aconnect</command></term>
|
---|
| 219 | <listitem>
|
---|
[9df3b847] | 220 | <para>is a utility for connecting and disconnecting two existing
|
---|
[1d13710] | 221 | ports in the ALSA sequencer system.</para>
|
---|
| 222 | <indexterm zone="alsa-utils aconnect">
|
---|
| 223 | <primary sortas="b-aconnect">aconnect</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="alsaconf">
|
---|
| 229 | <term><command>alsaconf</command></term>
|
---|
| 230 | <listitem>
|
---|
[9df3b847] | 231 | <para>is a configuration tool which tries to detect the sound cards
|
---|
[1d13710] | 232 | on your system and write a suitable configuration file for ALSA.</para>
|
---|
| 233 | <indexterm zone="alsa-utils alsaconf">
|
---|
| 234 | <primary sortas="b-alsaconf">alsaconf</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="alsactl">
|
---|
| 240 | <term><command>alsactl</command></term>
|
---|
| 241 | <listitem>
|
---|
[9df3b847] | 242 | <para>is used to control advanced settings for the
|
---|
[1d13710] | 243 | ALSA sound card drivers.</para>
|
---|
| 244 | <indexterm zone="alsa-utils alsactl">
|
---|
| 245 | <primary sortas="b-alsactl">alsactl</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="alsamixer">
|
---|
| 251 | <term><command>alsamixer</command></term>
|
---|
| 252 | <listitem>
|
---|
[9df3b847] | 253 | <para>is an ncurses-based mixer program for use with the
|
---|
[1d13710] | 254 | ALSA sound card drivers.</para>
|
---|
| 255 | <indexterm zone="alsa-utils alsamixer">
|
---|
| 256 | <primary sortas="b-alsamixer">alsamixer</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 |
|
---|
| 261 | <varlistentry id="amidi">
|
---|
| 262 | <term><command>amidi</command></term>
|
---|
| 263 | <listitem>
|
---|
[9df3b847] | 264 | <para>is used to read from and write to ALSA
|
---|
[1d13710] | 265 | RawMIDI ports.</para>
|
---|
| 266 | <indexterm zone="alsa-utils amidi">
|
---|
| 267 | <primary sortas="b-amidi">amidi</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
| 272 | <varlistentry id="amixer">
|
---|
| 273 | <term><command>amixer</command></term>
|
---|
| 274 | <listitem>
|
---|
[9df3b847] | 275 | <para> allows command-line control of the mixers for the
|
---|
[1d13710] | 276 | ALSA sound card drivers.</para>
|
---|
| 277 | <indexterm zone="alsa-utils amixer">
|
---|
| 278 | <primary sortas="b-amixer">amixer</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | <varlistentry id="aplay">
|
---|
| 284 | <term><command>aplay</command></term>
|
---|
| 285 | <listitem>
|
---|
[9df3b847] | 286 | <para>is a command-line soundfile player for the
|
---|
[1d13710] | 287 | ALSA sound card drivers.</para>
|
---|
| 288 | <indexterm zone="alsa-utils aplay">
|
---|
| 289 | <primary sortas="b-aplay">aplay</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
| 294 | <varlistentry id="aplaymidi">
|
---|
| 295 | <term><command>aplaymidi</command></term>
|
---|
| 296 | <listitem>
|
---|
[9df3b847] | 297 | <para>is a command-line utility that plays the specified
|
---|
[1d13710] | 298 | MIDI file(s) to one or more ALSA sequencer ports.</para>
|
---|
| 299 | <indexterm zone="alsa-utils aplaymidi">
|
---|
| 300 | <primary sortas="b-aplaymidi">aplaymidi</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 |
|
---|
| 305 | <varlistentry id="arecord">
|
---|
| 306 | <term><command>arecord</command></term>
|
---|
| 307 | <listitem>
|
---|
[9df3b847] | 308 | <para>is a command-line soundfile recorder for the
|
---|
[1d13710] | 309 | ALSA sound card drivers.</para>
|
---|
| 310 | <indexterm zone="alsa-utils arecord">
|
---|
| 311 | <primary sortas="b-arecord">arecord</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="arecordmidi">
|
---|
| 317 | <term><command>arecordmidi</command></term>
|
---|
| 318 | <listitem>
|
---|
[9df3b847] | 319 | <para>is a command-line utility that records a standard
|
---|
[1d13710] | 320 | MIDI file from one or more ALSA sequencer ports.</para>
|
---|
| 321 | <indexterm zone="alsa-utils arecordmidi">
|
---|
| 322 | <primary sortas="b-arecordmidi">arecordmidi</primary>
|
---|
| 323 | </indexterm>
|
---|
| 324 | </listitem>
|
---|
| 325 | </varlistentry>
|
---|
| 326 |
|
---|
[bdf22d74] | 327 | <varlistentry id="aseqdump">
|
---|
| 328 | <term><command>aseqdump</command></term>
|
---|
| 329 | <listitem>
|
---|
| 330 | <para>is a command-line utility that prints the sequencer events it
|
---|
| 331 | receives as text.</para>
|
---|
| 332 | <indexterm zone="alsa-utils aseqdump">
|
---|
| 333 | <primary sortas="b-aseqdump">aseqdump</primary>
|
---|
| 334 | </indexterm>
|
---|
| 335 | </listitem>
|
---|
| 336 | </varlistentry>
|
---|
| 337 |
|
---|
[1d13710] | 338 | <varlistentry id="aseqnet">
|
---|
| 339 | <term><command>aseqnet</command></term>
|
---|
| 340 | <listitem>
|
---|
[9df3b847] | 341 | <para>is an ALSA sequencer client which sends
|
---|
[1d13710] | 342 | and receives event packets over a network.</para>
|
---|
| 343 | <indexterm zone="alsa-utils aseqnet">
|
---|
| 344 | <primary sortas="b-aseqnet">aseqnet</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | <varlistentry id="iecset">
|
---|
| 350 | <term><command>iecset</command></term>
|
---|
| 351 | <listitem>
|
---|
[9df3b847] | 352 | <para>is a small utility to set or dump the IEC958 (or so-called
|
---|
| 353 | <quote>S/PDIF</quote>) status bits of the specified sound
|
---|
[1d13710] | 354 | card via the ALSA control API.</para>
|
---|
| 355 | <indexterm zone="alsa-utils iecset">
|
---|
| 356 | <primary sortas="b-iecset">iecset</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="speaker-test">
|
---|
| 362 | <term><command>speaker-test</command></term>
|
---|
| 363 | <listitem>
|
---|
| 364 | <para>is a command-line speaker test tone generator for ALSA.</para>
|
---|
| 365 | <indexterm zone="alsa-utils speaker-test">
|
---|
| 366 | <primary sortas="b-speaker-test">speaker-test</primary>
|
---|
| 367 | </indexterm>
|
---|
| 368 | </listitem>
|
---|
| 369 | </varlistentry>
|
---|
| 370 |
|
---|
| 371 | </variablelist>
|
---|
| 372 |
|
---|
| 373 | </sect2>
|
---|
[48b7295] | 374 |
|
---|
| 375 | </sect1>
|
---|