[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">
|
---|
[3e60c83f] | 9 | <!ENTITY alsa-lib-md5sum "c8335793e7828803311edc48fb71662e">
|
---|
| 10 | <!ENTITY alsa-lib-size "1.0 MB">
|
---|
| 11 | <!ENTITY alsa-lib-buildsize "35 MB (with tests)">
|
---|
[76c3cd71] | 12 | <!ENTITY alsa-lib-time "0.3 SBU (with tests)">
|
---|
[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 |
|
---|
[57e86a93] | 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[48b7295] | 21 |
|
---|
[a027d7d3] | 22 | <title>alsa-lib-&alsa-lib-version;</title>
|
---|
[48b7295] | 23 |
|
---|
[57e86a93] | 24 | <indexterm zone="alsa-lib">
|
---|
[0d50cca] | 25 | <primary sortas="a-alsa-lib">alsa-lib</primary>
|
---|
[57e86a93] | 26 | </indexterm>
|
---|
[48b7295] | 27 |
|
---|
[57e86a93] | 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to ALSA Library</title>
|
---|
[48b7295] | 30 |
|
---|
[0d50cca] | 31 | <para>
|
---|
| 32 | The <application>ALSA Library</application> package contains
|
---|
| 33 | the ALSA library used by programs (including <application>ALSA
|
---|
| 34 | Utilities</application>) requiring access to the ALSA sound
|
---|
| 35 | interface.
|
---|
| 36 | </para>
|
---|
[48b7295] | 37 |
|
---|
[d437f756] | 38 | &lfs101_checked;
|
---|
[831c11e4] | 39 |
|
---|
[57e86a93] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[0d50cca] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&alsa-lib-download-http;"/>
|
---|
| 45 | </para>
|
---|
[57e86a93] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[0d50cca] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&alsa-lib-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[57e86a93] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[0d50cca] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &alsa-lib-md5sum;
|
---|
| 55 | </para>
|
---|
[57e86a93] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[0d50cca] | 58 | <para>
|
---|
| 59 | Download size: &alsa-lib-size;
|
---|
| 60 | </para>
|
---|
[57e86a93] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[0d50cca] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &alsa-lib-buildsize;
|
---|
| 65 | </para>
|
---|
[57e86a93] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[0d50cca] | 68 | <para>
|
---|
| 69 | Estimated build time: &alsa-lib-time;
|
---|
| 70 | </para>
|
---|
[57e86a93] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[efa108a6] | 73 |
|
---|
[57e86a93] | 74 | <bridgehead renderas="sect3">ALSA Library Dependencies</bridgehead>
|
---|
[48b7295] | 75 |
|
---|
[57e86a93] | 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0d50cca] | 77 | <para role="optional">
|
---|
| 78 | <xref linkend="doxygen"/> and
|
---|
[f3429309] | 79 | <xref linkend="python2"/>
|
---|
[0d50cca] | 80 | </para>
|
---|
[48b7295] | 81 |
|
---|
[0e2aa08] | 82 | <para condition="html" role="usernotes">User Notes:
|
---|
[0d50cca] | 83 | <ulink url="&blfs-wiki;/alsa-lib"/>
|
---|
| 84 | </para>
|
---|
[57e86a93] | 85 | </sect2>
|
---|
[48b7295] | 86 |
|
---|
[57e86a93] | 87 | <sect2 role="kernel" id="alsa-lib-kernel">
|
---|
| 88 | <title>Kernel Configuration</title>
|
---|
[48b7295] | 89 |
|
---|
[35e960fb] | 90 | <para>
|
---|
[f3429309] | 91 | If needed, enable the following options in the kernel
|
---|
| 92 | configuration and recompile the kernel:
|
---|
[35e960fb] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <screen><literal>Device Drivers --->
|
---|
[f39cf0d0] | 96 | <*/M> Sound card support ---> [CONFIG_SOUND]
|
---|
| 97 | <*/M> Advanced Linux Sound Architecture ---> [CONFIG_SND]
|
---|
[f161544] | 98 | Select settings and drivers appropriate for your hardware.</literal></screen>
|
---|
[35e960fb] | 99 |
|
---|
[0d50cca] | 100 | <para>
|
---|
| 101 | In the Device Drivers ⇒ Sound card support ⇒ Advanced Linux
|
---|
| 102 | Sound Architecture section of the kernel configuration, select the settings
|
---|
| 103 | and drivers appropriate for your hardware. Ensure that the deprecated Device
|
---|
| 104 | Drivers ⇒ Sound card support ⇒ Open Sound System is
|
---|
| 105 | <emphasis>not</emphasis> selected. If necessary, recompile and install your
|
---|
| 106 | new kernel.
|
---|
| 107 | </para>
|
---|
[ac789c0] | 108 |
|
---|
[57e86a93] | 109 | <indexterm zone="alsa-lib alsa-lib-kernel">
|
---|
| 110 | <primary sortas="d-ALSA">ALSA</primary>
|
---|
| 111 | </indexterm>
|
---|
[ac789c0] | 112 |
|
---|
[57e86a93] | 113 | </sect2>
|
---|
[ac789c0] | 114 |
|
---|
[57e86a93] | 115 | <sect2 role="installation">
|
---|
| 116 | <title>Installation of ALSA Library</title>
|
---|
[48b7295] | 117 |
|
---|
[0d50cca] | 118 | <para>
|
---|
| 119 | Install <application>ALSA Library</application> by
|
---|
| 120 | running the following commands:
|
---|
| 121 | </para>
|
---|
[57e86a93] | 122 |
|
---|
[09bed9e5] | 123 | <screen><userinput>./configure &&
|
---|
[57e86a93] | 124 | make</userinput></screen>
|
---|
| 125 |
|
---|
[17833b00] | 126 | <para>
|
---|
| 127 | If you have <application>Doxygen</application> installed and you wish to
|
---|
| 128 | build the library API documentation, run the following
|
---|
| 129 | commands from the top-level directory of the source tree:
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
[2f3e3de9] | 132 | <screen remap="doc"><userinput>make doc</userinput></screen>
|
---|
[2a1e6008] | 133 |
|
---|
[0d50cca] | 134 | <para>
|
---|
[09bed9e5] | 135 | To test the results, issue: <command>make check</command>.
|
---|
[0d50cca] | 136 | </para>
|
---|
[2a1e6008] | 137 |
|
---|
[0d50cca] | 138 | <para>
|
---|
| 139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 140 | </para>
|
---|
[57e86a93] | 141 |
|
---|
[0d50cca] | 142 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[57e86a93] | 143 |
|
---|
[0d50cca] | 144 | <para>
|
---|
| 145 | To install the API documentation, run the following command as
|
---|
| 146 | the <systemitem class="username">root</systemitem> user:
|
---|
| 147 | </para>
|
---|
[57e86a93] | 148 |
|
---|
[2f3e3de9] | 149 | <screen role="root"
|
---|
| 150 | remap="doc"><userinput>install -v -d -m755 /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search &&
|
---|
[4c70ad3e] | 151 | install -v -m644 doc/doxygen/html/*.* \
|
---|
| 152 | /usr/share/doc/alsa-lib-&alsa-lib-version;/html &&
|
---|
| 153 | install -v -m644 doc/doxygen/html/search/* \
|
---|
| 154 | /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search</userinput></screen>
|
---|
[57e86a93] | 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | <sect2 role="configuration">
|
---|
| 159 | <title>Configuring ALSA Library</title>
|
---|
| 160 |
|
---|
| 161 | <sect3 id="alsa-lib-config">
|
---|
| 162 | <title>Config Files</title>
|
---|
| 163 |
|
---|
[0d50cca] | 164 | <para>
|
---|
| 165 | <filename>~/.asoundrc</filename> and
|
---|
| 166 | <filename>/etc/asound.conf</filename>
|
---|
| 167 | </para>
|
---|
[57e86a93] | 168 |
|
---|
| 169 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 170 | <primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 |
|
---|
| 173 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
| 174 | <primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 |
|
---|
| 177 | </sect3>
|
---|
| 178 |
|
---|
| 179 | <sect3>
|
---|
| 180 | <title>Configuration Information</title>
|
---|
| 181 |
|
---|
[0d50cca] | 182 | <para>
|
---|
| 183 | The default <filename>alsa.conf</filename> is adequate for most
|
---|
| 184 | installations. For extra functionality and/or advanced control of your
|
---|
| 185 | sound device, you may need to create additional configuration files.
|
---|
| 186 | For information on the available configuration parameters, visit
|
---|
[3e60c83f] | 187 | <ulink url="https://www.alsa-project.org/main/index.php/Asoundrc"/>.
|
---|
[0d50cca] | 188 | </para>
|
---|
[57e86a93] | 189 |
|
---|
| 190 | </sect3>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
| 193 |
|
---|
| 194 | <sect2 role="content">
|
---|
| 195 | <title>Contents</title>
|
---|
| 196 |
|
---|
| 197 | <segmentedlist>
|
---|
[831c11e4] | 198 | <segtitle>Installed Program</segtitle>
|
---|
[0d50cca] | 199 | <segtitle>Installed Library</segtitle>
|
---|
[57e86a93] | 200 | <segtitle>Installed Directories</segtitle>
|
---|
| 201 |
|
---|
| 202 | <seglistitem>
|
---|
[0d50cca] | 203 | <seg>
|
---|
| 204 | aserver
|
---|
| 205 | </seg>
|
---|
| 206 | <seg>
|
---|
[11839b6f] | 207 | libasound.so and
|
---|
| 208 | libatopology.so
|
---|
[0d50cca] | 209 | </seg>
|
---|
| 210 | <seg>
|
---|
| 211 | /usr/include/alsa,
|
---|
| 212 | /usr/share/alsa and
|
---|
[0c7d410] | 213 | /usr/share/doc/alsa-lib-&alsa-lib-version;
|
---|
| 214 | </seg>
|
---|
[57e86a93] | 215 | </seglistitem>
|
---|
| 216 | </segmentedlist>
|
---|
| 217 |
|
---|
| 218 | <variablelist>
|
---|
| 219 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 220 | <?dbfo list-presentation="list"?>
|
---|
| 221 | <?dbhtml list-presentation="table"?>
|
---|
| 222 |
|
---|
[17ad62a4] | 223 | <varlistentry id="aserver">
|
---|
| 224 | <term><command>aserver</command></term>
|
---|
| 225 | <listitem>
|
---|
[0d50cca] | 226 | <para>
|
---|
[4c24eb0a] | 227 | is the ALSA server
|
---|
[0d50cca] | 228 | </para>
|
---|
[17ad62a4] | 229 | <indexterm zone="alsa-lib aserver">
|
---|
| 230 | <primary sortas="b-aserver">aserver</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
[57e86a93] | 235 | <varlistentry id="libasound">
|
---|
[0d50cca] | 236 | <term><filename class="libraryfile">libasound.so</filename></term>
|
---|
[57e86a93] | 237 | <listitem>
|
---|
[0d50cca] | 238 | <para>
|
---|
[4c24eb0a] | 239 | contains the ALSA API functions
|
---|
[0d50cca] | 240 | </para>
|
---|
[57e86a93] | 241 | <indexterm zone="alsa-lib libasound">
|
---|
[0d50cca] | 242 | <primary sortas="c-libasound">libasound.so</primary>
|
---|
[7ffd4d7] | 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
[11839b6f] | 247 | <varlistentry id="libatopology">
|
---|
| 248 | <term><filename class="libraryfile">libatopology.so</filename></term>
|
---|
| 249 | <listitem>
|
---|
| 250 | <para>
|
---|
[4c24eb0a] | 251 | contains API functions for the ALSA topologies
|
---|
[11839b6f] | 252 | </para>
|
---|
| 253 | <indexterm zone="alsa-lib libatopology">
|
---|
| 254 | <primary sortas="c-libatopology">libatopology.so</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
[57e86a93] | 259 | </variablelist>
|
---|
| 260 |
|
---|
| 261 | </sect2>
|
---|
[48b7295] | 262 |
|
---|
| 263 | </sect1>
|
---|