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