[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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;
|
---|
[73942e6] | 6 |
|
---|
[03978485] | 7 | <!ENTITY alsa-lib-download-http "&alsa-download-http;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
---|
[e1e58be] | 8 | <!ENTITY alsa-lib-download-ftp " ">
|
---|
[7c2913ba] | 9 | <!ENTITY alsa-lib-md5sum "97bbf3cca911c1701fe9fe115c32b03d">
|
---|
[b36aabe] | 10 | <!ENTITY alsa-lib-size "1.1 MB">
|
---|
[b748f98] | 11 | <!ENTITY alsa-lib-buildsize "46 MB (with tests and docs)">
|
---|
[7c2913ba] | 12 | <!ENTITY alsa-lib-time "0.2 SBU (with tests and docs)">
|
---|
[48b7295] | 13 | ]>
|
---|
[73942e6] | 14 |
|
---|
[a027d7d3] | 15 | <sect1 id="alsa-lib" xreflabel="alsa-lib-&alsa-lib-version;">
|
---|
[57e86a93] | 16 | <?dbhtml filename="alsa-lib.html"?>
|
---|
[48b7295] | 17 |
|
---|
| 18 |
|
---|
[a027d7d3] | 19 | <title>alsa-lib-&alsa-lib-version;</title>
|
---|
[48b7295] | 20 |
|
---|
[57e86a93] | 21 | <indexterm zone="alsa-lib">
|
---|
[0d50cca] | 22 | <primary sortas="a-alsa-lib">alsa-lib</primary>
|
---|
[57e86a93] | 23 | </indexterm>
|
---|
[48b7295] | 24 |
|
---|
[57e86a93] | 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to ALSA Library</title>
|
---|
[48b7295] | 27 |
|
---|
[0d50cca] | 28 | <para>
|
---|
| 29 | The <application>ALSA Library</application> package contains
|
---|
| 30 | the ALSA library used by programs (including <application>ALSA
|
---|
| 31 | Utilities</application>) requiring access to the ALSA sound
|
---|
| 32 | interface.
|
---|
| 33 | </para>
|
---|
[48b7295] | 34 |
|
---|
[e6d4af99] | 35 | &lfs122_checked;
|
---|
[831c11e4] | 36 |
|
---|
[57e86a93] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[0d50cca] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&alsa-lib-download-http;"/>
|
---|
| 42 | </para>
|
---|
[57e86a93] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[0d50cca] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&alsa-lib-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[57e86a93] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[0d50cca] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &alsa-lib-md5sum;
|
---|
| 52 | </para>
|
---|
[57e86a93] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[0d50cca] | 55 | <para>
|
---|
| 56 | Download size: &alsa-lib-size;
|
---|
| 57 | </para>
|
---|
[57e86a93] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[0d50cca] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &alsa-lib-buildsize;
|
---|
| 62 | </para>
|
---|
[57e86a93] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[0d50cca] | 65 | <para>
|
---|
| 66 | Estimated build time: &alsa-lib-time;
|
---|
| 67 | </para>
|
---|
[57e86a93] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[63dea54e] | 70 |
|
---|
[819ef3e] | 71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 72 | <itemizedlist spacing="compact">
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
[63dea54e] | 75 | Recommended file:
|
---|
| 76 | <ulink url="https://www.alsa-project.org/files/pub/lib/alsa-ucm-conf-&alsa-lib-version;.tar.bz2"/>
|
---|
[819ef3e] | 77 | </para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
[63dea54e] | 80 |
|
---|
[57e86a93] | 81 | <bridgehead renderas="sect3">ALSA Library Dependencies</bridgehead>
|
---|
[48b7295] | 82 |
|
---|
[04202bd] | 83 | <bridgehead renderas="sect4">Recommended (Runtime)</bridgehead>
|
---|
| 84 | <para role="runtime">
|
---|
| 85 | <phrase revision='sysv'><xref linkend='elogind'/></phrase>
|
---|
| 86 | <phrase revision='systemd'><xref linkend='systemd'/></phrase>
|
---|
| 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <note>
|
---|
| 90 | <para>
|
---|
| 91 | If the recommended runtime dependency is not installed, you may
|
---|
| 92 | need to run any application requiring ALSA library as the &root;
|
---|
| 93 | user or a user in the
|
---|
| 94 | <systemitem class='groupname'>audio</systemitem> group.
|
---|
| 95 | </para>
|
---|
| 96 | </note>
|
---|
| 97 |
|
---|
[57e86a93] | 98 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0d50cca] | 99 | <para role="optional">
|
---|
[63dea54e] | 100 | <xref linkend="doxygen"/> and
|
---|
[b29fc64] | 101 | &python2;
|
---|
[0d50cca] | 102 | </para>
|
---|
[48b7295] | 103 |
|
---|
[57e86a93] | 104 | </sect2>
|
---|
[48b7295] | 105 |
|
---|
[57e86a93] | 106 | <sect2 role="kernel" id="alsa-lib-kernel">
|
---|
| 107 | <title>Kernel Configuration</title>
|
---|
[48b7295] | 108 |
|
---|
[35e960fb] | 109 | <para>
|
---|
[f3429309] | 110 | If needed, enable the following options in the kernel
|
---|
| 111 | configuration and recompile the kernel:
|
---|
[35e960fb] | 112 | </para>
|
---|
| 113 |
|
---|
[cddcdb14] | 114 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 115 | href="alsa-lib-kernel.xml"/>
|
---|
[35e960fb] | 116 |
|
---|
[0d50cca] | 117 | <para>
|
---|
| 118 | In the Device Drivers ⇒ Sound card support ⇒ Advanced Linux
|
---|
[65be5e98] | 119 | Sound Architecture section of the kernel configuration, select the
|
---|
| 120 | settings and drivers appropriate for your hardware. If necessary,
|
---|
| 121 | recompile and install your new kernel.
|
---|
[0d50cca] | 122 | </para>
|
---|
[ac789c0] | 123 |
|
---|
[57e86a93] | 124 | <indexterm zone="alsa-lib alsa-lib-kernel">
|
---|
| 125 | <primary sortas="d-ALSA">ALSA</primary>
|
---|
| 126 | </indexterm>
|
---|
[ac789c0] | 127 |
|
---|
[57e86a93] | 128 | </sect2>
|
---|
[ac789c0] | 129 |
|
---|
[57e86a93] | 130 | <sect2 role="installation">
|
---|
| 131 | <title>Installation of ALSA Library</title>
|
---|
[b0158ed] | 132 | <!--
|
---|
[819ef3e] | 133 | <para>
|
---|
| 134 | First, if you are building on a 32-bit system, fix a regression that
|
---|
| 135 | causes a segmentation fault when playing audio:
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
| 138 | <screen><userinput>case $(uname -m) in
|
---|
| 139 | i?86) patch -Np1 -i ../alsa-lib-&alsa-lib-version;-upstream_fixes-1.patch ;;
|
---|
| 140 | esac</userinput></screen>
|
---|
[b0158ed] | 141 | -->
|
---|
[0d50cca] | 142 | <para>
|
---|
| 143 | Install <application>ALSA Library</application> by
|
---|
| 144 | running the following commands:
|
---|
| 145 | </para>
|
---|
[57e86a93] | 146 |
|
---|
[09bed9e5] | 147 | <screen><userinput>./configure &&
|
---|
[57e86a93] | 148 | make</userinput></screen>
|
---|
| 149 |
|
---|
[17833b00] | 150 | <para>
|
---|
| 151 | If you have <application>Doxygen</application> installed and you wish to
|
---|
| 152 | build the library API documentation, run the following
|
---|
| 153 | commands from the top-level directory of the source tree:
|
---|
| 154 | </para>
|
---|
| 155 |
|
---|
[2f3e3de9] | 156 | <screen remap="doc"><userinput>make doc</userinput></screen>
|
---|
[2a1e6008] | 157 |
|
---|
[0d50cca] | 158 | <para>
|
---|
[09bed9e5] | 159 | To test the results, issue: <command>make check</command>.
|
---|
[0d50cca] | 160 | </para>
|
---|
[2a1e6008] | 161 |
|
---|
[0d50cca] | 162 | <para>
|
---|
[63dea54e] | 163 | Now, as the &root; user, install the package and recommended configuration files:
|
---|
[0d50cca] | 164 | </para>
|
---|
[57e86a93] | 165 |
|
---|
[63dea54e] | 166 | <screen role="root"><userinput>make install &&
|
---|
| 167 | tar -C /usr/share/alsa --strip-components=1 -xf ../alsa-ucm-conf-&alsa-lib-version;.tar.bz2</userinput></screen>
|
---|
[57e86a93] | 168 |
|
---|
[0d50cca] | 169 | <para>
|
---|
| 170 | To install the API documentation, run the following command as
|
---|
| 171 | the <systemitem class="username">root</systemitem> user:
|
---|
| 172 | </para>
|
---|
[57e86a93] | 173 |
|
---|
[2f3e3de9] | 174 | <screen role="root"
|
---|
| 175 | remap="doc"><userinput>install -v -d -m755 /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search &&
|
---|
[4c70ad3e] | 176 | install -v -m644 doc/doxygen/html/*.* \
|
---|
| 177 | /usr/share/doc/alsa-lib-&alsa-lib-version;/html &&
|
---|
| 178 | install -v -m644 doc/doxygen/html/search/* \
|
---|
| 179 | /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search</userinput></screen>
|
---|
[57e86a93] | 180 |
|
---|
| 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2 role="configuration">
|
---|
| 184 | <title>Configuring ALSA Library</title>
|
---|
| 185 |
|
---|
| 186 | <sect3 id="alsa-lib-config">
|
---|
| 187 | <title>Config Files</title>
|
---|
| 188 |
|
---|
[0d50cca] | 189 | <para>
|
---|
| 190 | <filename>~/.asoundrc</filename> and
|
---|
| 191 | <filename>/etc/asound.conf</filename>
|
---|
| 192 | </para>
|
---|
[57e86a93] | 193 |
|
---|
| 194 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 195 | <primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 |
|
---|
| 198 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 199 | <primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 |
|
---|
| 202 | </sect3>
|
---|
| 203 |
|
---|
| 204 | <sect3>
|
---|
| 205 | <title>Configuration Information</title>
|
---|
| 206 |
|
---|
[0d50cca] | 207 | <para>
|
---|
| 208 | The default <filename>alsa.conf</filename> is adequate for most
|
---|
| 209 | installations. For extra functionality and/or advanced control of your
|
---|
| 210 | sound device, you may need to create additional configuration files.
|
---|
| 211 | For information on the available configuration parameters, visit
|
---|
[3e60c83f] | 212 | <ulink url="https://www.alsa-project.org/main/index.php/Asoundrc"/>.
|
---|
[0d50cca] | 213 | </para>
|
---|
[57e86a93] | 214 |
|
---|
| 215 | </sect3>
|
---|
| 216 |
|
---|
| 217 | </sect2>
|
---|
| 218 |
|
---|
| 219 | <sect2 role="content">
|
---|
| 220 | <title>Contents</title>
|
---|
| 221 |
|
---|
| 222 | <segmentedlist>
|
---|
[831c11e4] | 223 | <segtitle>Installed Program</segtitle>
|
---|
[0d50cca] | 224 | <segtitle>Installed Library</segtitle>
|
---|
[57e86a93] | 225 | <segtitle>Installed Directories</segtitle>
|
---|
| 226 |
|
---|
| 227 | <seglistitem>
|
---|
[0d50cca] | 228 | <seg>
|
---|
| 229 | aserver
|
---|
| 230 | </seg>
|
---|
| 231 | <seg>
|
---|
[11839b6f] | 232 | libasound.so and
|
---|
| 233 | libatopology.so
|
---|
[0d50cca] | 234 | </seg>
|
---|
| 235 | <seg>
|
---|
| 236 | /usr/include/alsa,
|
---|
| 237 | /usr/share/alsa and
|
---|
[0c7d410] | 238 | /usr/share/doc/alsa-lib-&alsa-lib-version;
|
---|
| 239 | </seg>
|
---|
[57e86a93] | 240 | </seglistitem>
|
---|
| 241 | </segmentedlist>
|
---|
| 242 |
|
---|
| 243 | <variablelist>
|
---|
| 244 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 245 | <?dbfo list-presentation="list"?>
|
---|
| 246 | <?dbhtml list-presentation="table"?>
|
---|
| 247 |
|
---|
[17ad62a4] | 248 | <varlistentry id="aserver">
|
---|
| 249 | <term><command>aserver</command></term>
|
---|
| 250 | <listitem>
|
---|
[0d50cca] | 251 | <para>
|
---|
[4c24eb0a] | 252 | is the ALSA server
|
---|
[0d50cca] | 253 | </para>
|
---|
[17ad62a4] | 254 | <indexterm zone="alsa-lib aserver">
|
---|
| 255 | <primary sortas="b-aserver">aserver</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
[57e86a93] | 260 | <varlistentry id="libasound">
|
---|
[0d50cca] | 261 | <term><filename class="libraryfile">libasound.so</filename></term>
|
---|
[57e86a93] | 262 | <listitem>
|
---|
[0d50cca] | 263 | <para>
|
---|
[4c24eb0a] | 264 | contains the ALSA API functions
|
---|
[0d50cca] | 265 | </para>
|
---|
[57e86a93] | 266 | <indexterm zone="alsa-lib libasound">
|
---|
[0d50cca] | 267 | <primary sortas="c-libasound">libasound.so</primary>
|
---|
[7ffd4d7] | 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
[11839b6f] | 272 | <varlistentry id="libatopology">
|
---|
| 273 | <term><filename class="libraryfile">libatopology.so</filename></term>
|
---|
| 274 | <listitem>
|
---|
| 275 | <para>
|
---|
[4c24eb0a] | 276 | contains API functions for the ALSA topologies
|
---|
[11839b6f] | 277 | </para>
|
---|
| 278 | <indexterm zone="alsa-lib libatopology">
|
---|
| 279 | <primary sortas="c-libatopology">libatopology.so</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
[8558044] | 282 | </varlistentry>
|
---|
[11839b6f] | 283 |
|
---|
[57e86a93] | 284 | </variablelist>
|
---|
| 285 |
|
---|
| 286 | </sect2>
|
---|
[48b7295] | 287 |
|
---|
| 288 | </sect1>
|
---|