[ff769b8c] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[48b7295] | 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[73942e6] | 5 |
|
---|
[48b7295] | 6 | <!ENTITY alsa-lib-download-http "&alsa-download-http;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
---|
| 7 | <!ENTITY alsa-lib-download-ftp "&alsa-download-ftp;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
---|
[ac789c0] | 8 | <!ENTITY alsa-lib-md5sum "c677299ed39d069c9a4b6a999e34ffe7">
|
---|
| 9 | <!ENTITY alsa-lib-size "682 KB">
|
---|
| 10 | <!ENTITY alsa-lib-buildsize "34.2 MB (additional 11.4 MB to build and install docs)">
|
---|
| 11 | <!ENTITY alsa-lib-time "0.56 SBU">
|
---|
[48b7295] | 12 | ]>
|
---|
[73942e6] | 13 |
|
---|
[48b7295] | 14 | <sect1 id="alsa-lib" xreflabel="ALSA Library-&alsa-lib-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[48b7295] | 19 | <?dbhtml filename="alsa-lib.html"?>
|
---|
| 20 | <title>ALSA Library-&alsa-lib-version;</title>
|
---|
[ac789c0] | 21 | <indexterm zone="alsa-lib">
|
---|
| 22 | <primary sortas="a-ALSA-Library">ALSA Library</primary></indexterm>
|
---|
[48b7295] | 23 |
|
---|
| 24 | <sect2>
|
---|
[73942e6] | 25 | <title>Introduction to <application><acronym>ALSA</acronym>
|
---|
| 26 | Library</application></title>
|
---|
[48b7295] | 27 |
|
---|
| 28 | <para>The <application><acronym>ALSA</acronym> Library</application> package
|
---|
| 29 | contains the <acronym>ALSA</acronym> library. This is used by programs
|
---|
[73942e6] | 30 | (including <application><acronym>ALSA</acronym> Utilities</application>)
|
---|
| 31 | requiring access to the <acronym>ALSA</acronym> sound interface.</para>
|
---|
[48b7295] | 32 |
|
---|
| 33 | <sect3><title>Package information</title>
|
---|
| 34 | <itemizedlist spacing='compact'>
|
---|
[da13524] | 35 | <listitem><para>Download (HTTP):
|
---|
| 36 | <ulink url="&alsa-lib-download-http;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download (FTP):
|
---|
| 38 | <ulink url="&alsa-lib-download-ftp;"/></para></listitem>
|
---|
| 39 | <listitem><para>Download MD5 sum: &alsa-lib-md5sum;</para></listitem>
|
---|
[48b7295] | 40 | <listitem><para>Download size: &alsa-lib-size;</para></listitem>
|
---|
[da13524] | 41 | <listitem><para>Estimated disk space required:
|
---|
| 42 | &alsa-lib-buildsize;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated build time:
|
---|
| 44 | &alsa-lib-time;</para></listitem></itemizedlist>
|
---|
[48b7295] | 45 | </sect3>
|
---|
| 46 |
|
---|
[73942e6] | 47 | <sect3><title><application><acronym>ALSA</acronym> Library</application>
|
---|
| 48 | dependencies</title>
|
---|
| 49 | <sect4><title>Optional</title>
|
---|
| 50 | <para><ulink url="http://jackit.sourceforge.net/">JACK</ulink> and
|
---|
[cef3a2f] | 51 | <xref linkend="doxygen"/></para>
|
---|
[73942e6] | 52 | </sect4>
|
---|
| 53 | </sect3>
|
---|
| 54 |
|
---|
[48b7295] | 55 | </sect2>
|
---|
| 56 |
|
---|
[ac789c0] | 57 | <sect2 id="alsa-lib-kernel">
|
---|
[73942e6] | 58 | <title>Installation of <application><acronym>ALSA</acronym>
|
---|
| 59 | Library</application>
|
---|
[48b7295] | 60 | </title>
|
---|
| 61 |
|
---|
[73942e6] | 62 | <para>In the <quote>Sound</quote> section of the kernel configuration, edit
|
---|
| 63 | <userinput>Advanced Linux Sound Architecture</userinput> options to match your
|
---|
| 64 | audio hardware and disable deprecated <userinput>Open Sound System</userinput>.
|
---|
[7f58d870] | 65 | Recompile and install your new kernel.</para>
|
---|
[ac789c0] | 66 | <indexterm zone="alsa-lib alsa-lib-kernel">
|
---|
| 67 | <primary sortas="d-ALSA">ALSA</primary></indexterm>
|
---|
[7f58d870] | 68 |
|
---|
[73942e6] | 69 | <para>Install <application><acronym>ALSA</acronym> Library</application> by
|
---|
| 70 | running the following commands:</para>
|
---|
[48b7295] | 71 |
|
---|
| 72 | <screen><userinput><command>./configure --enable-static &&
|
---|
[ac789c0] | 73 | make</command></userinput></screen>
|
---|
| 74 |
|
---|
| 75 | <para>Now, as the root user:</para>
|
---|
| 76 |
|
---|
| 77 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[48b7295] | 78 |
|
---|
[73942e6] | 79 | <para>If you have <application><acronym>JACK</acronym></application> installed
|
---|
| 80 | and you wish to build the <application><acronym>JACK</acronym></application>
|
---|
| 81 | <acronym>PCM</acronym> plugin library, run the following commands:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput><command>cd src/pcm/ext &&
|
---|
[ac789c0] | 84 | make jack</command></userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>Now, as the root user:</para>
|
---|
| 87 |
|
---|
| 88 | <screen><userinput role='root'><command>make install-jack</command></userinput></screen>
|
---|
| 89 |
|
---|
| 90 | <para>Ensure the unprivileged user's current working directory is the root of
|
---|
| 91 | the source tree:</para>
|
---|
| 92 |
|
---|
| 93 | <screen><userinput><command>cd ../../..</command></userinput></screen>
|
---|
[73942e6] | 94 |
|
---|
| 95 | <para>If you have <application>Doxygen</application> installed and you wish to
|
---|
| 96 | build the library <acronym>API</acronym> documentation, run the following
|
---|
| 97 | commands from the top-level directory of the source tree:</para>
|
---|
| 98 |
|
---|
[ac789c0] | 99 | <screen><userinput><command>make doc</command></userinput></screen>
|
---|
| 100 |
|
---|
| 101 | <para>Now, as the root user:</para>
|
---|
| 102 |
|
---|
| 103 | <screen><userinput role='root'><command>install -v -d -m755 /usr/share/alsa/doc/html &&
|
---|
| 104 | install -v -m644 doc/doxygen/html/* /usr/share/alsa/doc/html</command></userinput></screen>
|
---|
[73942e6] | 105 |
|
---|
[48b7295] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2>
|
---|
| 109 | <title>Command explanations</title>
|
---|
| 110 |
|
---|
| 111 | <para><parameter>--enable-static</parameter>: This switch is used to enable
|
---|
[73942e6] | 112 | building the static library because some programs link against it.</para>
|
---|
[48b7295] | 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2>
|
---|
[73942e6] | 117 | <title>Configuring <application><acronym>ALSA</acronym>
|
---|
| 118 | Library</application></title>
|
---|
| 119 |
|
---|
[ac789c0] | 120 | <sect3 id="alsa-lib-config"><title>Config files</title>
|
---|
| 121 | <para><filename>~/.asoundrc</filename>,
|
---|
[73942e6] | 122 | <filename>/etc/asound.conf</filename>,
|
---|
[ac789c0] | 123 | <filename>/usr/share/alsa/alsa.conf</filename> and
|
---|
[73942e6] | 124 | <filename>/usr/share/alsa/{cards,pcm}/*.conf</filename></para>
|
---|
[efa108a6] | 125 |
|
---|
| 126 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 127 | <primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 |
|
---|
[ac789c0] | 130 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
[efa108a6] | 131 | <primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 |
|
---|
[ac789c0] | 134 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
[efa108a6] | 135 | <primary sortas="e-usr-share-alsa-alsa.conf">/usr/share/alsa/alsa.conf</primary>
|
---|
[ac789c0] | 136 | </indexterm>
|
---|
[efa108a6] | 137 |
|
---|
| 138 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
[4a7d1a4] | 139 | <primary sortas="e-usr-share-alsa-alsa1">.../alsa/{cards,pcm}/*.conf</primary>
|
---|
[ac789c0] | 140 | </indexterm>
|
---|
[73942e6] | 141 | </sect3>
|
---|
[48b7295] | 142 |
|
---|
[73942e6] | 143 | <sect3><title>Configuration information</title>
|
---|
| 144 | <para>The default <filename>alsa.conf</filename> is adequate for most
|
---|
| 145 | installations. For extra functionality and/or advanced control of your sound
|
---|
| 146 | device, you may need to create additional configuration files. For
|
---|
| 147 | information on the available configuration parameters, including setup of the
|
---|
| 148 | <application><acronym>JACK</acronym></application> <acronym>PCM</acronym>
|
---|
| 149 | plugin, visit <ulink
|
---|
| 150 | url="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"/>.</para>
|
---|
[48b7295] | 151 | </sect3>
|
---|
| 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | <sect2>
|
---|
| 156 | <title>Contents</title>
|
---|
| 157 |
|
---|
[ac789c0] | 158 | <segmentedlist>
|
---|
| 159 | <segtitle>Installed Programs</segtitle>
|
---|
| 160 | <segtitle>Installed Libraries</segtitle>
|
---|
| 161 | <segtitle>Installed Directories</segtitle>
|
---|
| 162 |
|
---|
| 163 | <seglistitem>
|
---|
| 164 | <seg>alsalisp and aserver</seg>
|
---|
| 165 | <seg>libasound.[so,a] and optionally, libasound_module_pcm_jack.[so,a]</seg>
|
---|
| 166 | <seg>/usr/include/alsa, /usr/lib/alsa-lib, /usr/share/alsa</seg>
|
---|
| 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
| 169 |
|
---|
| 170 | <variablelist>
|
---|
| 171 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 172 | <?dbfo list-presentation="list"?>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="libasound">
|
---|
| 175 | <term><filename class='libraryfile'>libasound.[so,a]</filename></term>
|
---|
| 176 | <listitem><para>provides <acronym>ALSA</acronym> functions for application
|
---|
| 177 | programs.</para>
|
---|
| 178 | <indexterm zone="alsa-lib libasound">
|
---|
| 179 | <primary sortas="c-libasound">libasound.[so,a]</primary>
|
---|
| 180 | </indexterm></listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 | </variablelist>
|
---|
[48b7295] | 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | </sect1>
|
---|