[57e86a93] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[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">
|
---|
[48b7295] | 8 | <!ENTITY alsa-lib-download-ftp "&alsa-download-ftp;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
---|
[b36aabe] | 9 | <!ENTITY alsa-lib-md5sum "d29f5ebe9a4ff1be70508ecbf6655318">
|
---|
| 10 | <!ENTITY alsa-lib-size "1.1 MB">
|
---|
[60d108a] | 11 | <!ENTITY alsa-lib-buildsize "45 MB (with tests and docs)">
|
---|
[86061ad] | 12 | <!ENTITY alsa-lib-time "0.3 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 |
|
---|
[dc1a45e] | 35 | &lfs113_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>
|
---|
[efa108a6] | 70 |
|
---|
[57e86a93] | 71 | <bridgehead renderas="sect3">ALSA Library Dependencies</bridgehead>
|
---|
[48b7295] | 72 |
|
---|
[04202bd] | 73 | <bridgehead renderas="sect4">Recommended (Runtime)</bridgehead>
|
---|
| 74 | <para role="runtime">
|
---|
| 75 | <phrase revision='sysv'><xref linkend='elogind'/></phrase>
|
---|
| 76 | <phrase revision='systemd'><xref linkend='systemd'/></phrase>
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <note>
|
---|
| 80 | <para>
|
---|
| 81 | If the recommended runtime dependency is not installed, you may
|
---|
| 82 | need to run any application requiring ALSA library as the &root;
|
---|
| 83 | user or a user in the
|
---|
| 84 | <systemitem class='groupname'>audio</systemitem> group.
|
---|
| 85 | </para>
|
---|
| 86 | </note>
|
---|
| 87 |
|
---|
[57e86a93] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0d50cca] | 89 | <para role="optional">
|
---|
[c93c620c] | 90 | <xref linkend="doxygen"/>,
|
---|
| 91 | <xref linkend="python2"/>, and
|
---|
| 92 | <ulink url="https://www.alsa-project.org/files/pub/lib/">alsa-ucm-conf</ulink>
|
---|
[0d50cca] | 93 | </para>
|
---|
[48b7295] | 94 |
|
---|
[0e2aa08] | 95 | <para condition="html" role="usernotes">User Notes:
|
---|
[0d50cca] | 96 | <ulink url="&blfs-wiki;/alsa-lib"/>
|
---|
| 97 | </para>
|
---|
[57e86a93] | 98 | </sect2>
|
---|
[48b7295] | 99 |
|
---|
[57e86a93] | 100 | <sect2 role="kernel" id="alsa-lib-kernel">
|
---|
| 101 | <title>Kernel Configuration</title>
|
---|
[48b7295] | 102 |
|
---|
[35e960fb] | 103 | <para>
|
---|
[f3429309] | 104 | If needed, enable the following options in the kernel
|
---|
| 105 | configuration and recompile the kernel:
|
---|
[35e960fb] | 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <screen><literal>Device Drivers --->
|
---|
[f39cf0d0] | 109 | <*/M> Sound card support ---> [CONFIG_SOUND]
|
---|
| 110 | <*/M> Advanced Linux Sound Architecture ---> [CONFIG_SND]
|
---|
[f161544] | 111 | Select settings and drivers appropriate for your hardware.</literal></screen>
|
---|
[35e960fb] | 112 |
|
---|
[0d50cca] | 113 | <para>
|
---|
| 114 | In the Device Drivers ⇒ Sound card support ⇒ Advanced Linux
|
---|
[65be5e98] | 115 | Sound Architecture section of the kernel configuration, select the
|
---|
| 116 | settings and drivers appropriate for your hardware. If necessary,
|
---|
| 117 | recompile and install your new kernel.
|
---|
[0d50cca] | 118 | </para>
|
---|
[ac789c0] | 119 |
|
---|
[57e86a93] | 120 | <indexterm zone="alsa-lib alsa-lib-kernel">
|
---|
| 121 | <primary sortas="d-ALSA">ALSA</primary>
|
---|
| 122 | </indexterm>
|
---|
[ac789c0] | 123 |
|
---|
[57e86a93] | 124 | </sect2>
|
---|
[ac789c0] | 125 |
|
---|
[57e86a93] | 126 | <sect2 role="installation">
|
---|
| 127 | <title>Installation of ALSA Library</title>
|
---|
[48b7295] | 128 |
|
---|
[0d50cca] | 129 | <para>
|
---|
| 130 | Install <application>ALSA Library</application> by
|
---|
| 131 | running the following commands:
|
---|
| 132 | </para>
|
---|
[57e86a93] | 133 |
|
---|
[09bed9e5] | 134 | <screen><userinput>./configure &&
|
---|
[57e86a93] | 135 | make</userinput></screen>
|
---|
| 136 |
|
---|
[17833b00] | 137 | <para>
|
---|
| 138 | If you have <application>Doxygen</application> installed and you wish to
|
---|
| 139 | build the library API documentation, run the following
|
---|
| 140 | commands from the top-level directory of the source tree:
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
[2f3e3de9] | 143 | <screen remap="doc"><userinput>make doc</userinput></screen>
|
---|
[2a1e6008] | 144 |
|
---|
[0d50cca] | 145 | <para>
|
---|
[09bed9e5] | 146 | To test the results, issue: <command>make check</command>.
|
---|
[0d50cca] | 147 | </para>
|
---|
[2a1e6008] | 148 |
|
---|
[0d50cca] | 149 | <para>
|
---|
| 150 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 151 | </para>
|
---|
[57e86a93] | 152 |
|
---|
[0d50cca] | 153 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[57e86a93] | 154 |
|
---|
[0d50cca] | 155 | <para>
|
---|
| 156 | To install the API documentation, run the following command as
|
---|
| 157 | the <systemitem class="username">root</systemitem> user:
|
---|
| 158 | </para>
|
---|
[57e86a93] | 159 |
|
---|
[2f3e3de9] | 160 | <screen role="root"
|
---|
| 161 | remap="doc"><userinput>install -v -d -m755 /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search &&
|
---|
[4c70ad3e] | 162 | install -v -m644 doc/doxygen/html/*.* \
|
---|
| 163 | /usr/share/doc/alsa-lib-&alsa-lib-version;/html &&
|
---|
| 164 | install -v -m644 doc/doxygen/html/search/* \
|
---|
| 165 | /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search</userinput></screen>
|
---|
[57e86a93] | 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2 role="configuration">
|
---|
| 170 | <title>Configuring ALSA Library</title>
|
---|
| 171 |
|
---|
| 172 | <sect3 id="alsa-lib-config">
|
---|
| 173 | <title>Config Files</title>
|
---|
| 174 |
|
---|
[0d50cca] | 175 | <para>
|
---|
| 176 | <filename>~/.asoundrc</filename> and
|
---|
| 177 | <filename>/etc/asound.conf</filename>
|
---|
| 178 | </para>
|
---|
[57e86a93] | 179 |
|
---|
| 180 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 181 | <primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 |
|
---|
| 184 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 185 | <primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 |
|
---|
| 188 | </sect3>
|
---|
| 189 |
|
---|
| 190 | <sect3>
|
---|
| 191 | <title>Configuration Information</title>
|
---|
| 192 |
|
---|
[0d50cca] | 193 | <para>
|
---|
| 194 | The default <filename>alsa.conf</filename> is adequate for most
|
---|
| 195 | installations. For extra functionality and/or advanced control of your
|
---|
| 196 | sound device, you may need to create additional configuration files.
|
---|
| 197 | For information on the available configuration parameters, visit
|
---|
[3e60c83f] | 198 | <ulink url="https://www.alsa-project.org/main/index.php/Asoundrc"/>.
|
---|
[0d50cca] | 199 | </para>
|
---|
[57e86a93] | 200 |
|
---|
| 201 | </sect3>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | <sect2 role="content">
|
---|
| 206 | <title>Contents</title>
|
---|
| 207 |
|
---|
| 208 | <segmentedlist>
|
---|
[831c11e4] | 209 | <segtitle>Installed Program</segtitle>
|
---|
[0d50cca] | 210 | <segtitle>Installed Library</segtitle>
|
---|
[57e86a93] | 211 | <segtitle>Installed Directories</segtitle>
|
---|
| 212 |
|
---|
| 213 | <seglistitem>
|
---|
[0d50cca] | 214 | <seg>
|
---|
| 215 | aserver
|
---|
| 216 | </seg>
|
---|
| 217 | <seg>
|
---|
[11839b6f] | 218 | libasound.so and
|
---|
| 219 | libatopology.so
|
---|
[0d50cca] | 220 | </seg>
|
---|
| 221 | <seg>
|
---|
| 222 | /usr/include/alsa,
|
---|
| 223 | /usr/share/alsa and
|
---|
[0c7d410] | 224 | /usr/share/doc/alsa-lib-&alsa-lib-version;
|
---|
| 225 | </seg>
|
---|
[57e86a93] | 226 | </seglistitem>
|
---|
| 227 | </segmentedlist>
|
---|
| 228 |
|
---|
| 229 | <variablelist>
|
---|
| 230 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 231 | <?dbfo list-presentation="list"?>
|
---|
| 232 | <?dbhtml list-presentation="table"?>
|
---|
| 233 |
|
---|
[17ad62a4] | 234 | <varlistentry id="aserver">
|
---|
| 235 | <term><command>aserver</command></term>
|
---|
| 236 | <listitem>
|
---|
[0d50cca] | 237 | <para>
|
---|
[4c24eb0a] | 238 | is the ALSA server
|
---|
[0d50cca] | 239 | </para>
|
---|
[17ad62a4] | 240 | <indexterm zone="alsa-lib aserver">
|
---|
| 241 | <primary sortas="b-aserver">aserver</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
[57e86a93] | 246 | <varlistentry id="libasound">
|
---|
[0d50cca] | 247 | <term><filename class="libraryfile">libasound.so</filename></term>
|
---|
[57e86a93] | 248 | <listitem>
|
---|
[0d50cca] | 249 | <para>
|
---|
[4c24eb0a] | 250 | contains the ALSA API functions
|
---|
[0d50cca] | 251 | </para>
|
---|
[57e86a93] | 252 | <indexterm zone="alsa-lib libasound">
|
---|
[0d50cca] | 253 | <primary sortas="c-libasound">libasound.so</primary>
|
---|
[7ffd4d7] | 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
[11839b6f] | 258 | <varlistentry id="libatopology">
|
---|
| 259 | <term><filename class="libraryfile">libatopology.so</filename></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>
|
---|
[4c24eb0a] | 262 | contains API functions for the ALSA topologies
|
---|
[11839b6f] | 263 | </para>
|
---|
| 264 | <indexterm zone="alsa-lib libatopology">
|
---|
| 265 | <primary sortas="c-libatopology">libatopology.so</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
[8558044] | 268 | </varlistentry>
|
---|
[11839b6f] | 269 |
|
---|
[57e86a93] | 270 | </variablelist>
|
---|
| 271 |
|
---|
| 272 | </sect2>
|
---|
[48b7295] | 273 |
|
---|
| 274 | </sect1>
|
---|