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 "06fe5819020c6684b991dcffc5471304">
|
---|
10 | <!ENTITY alsa-lib-size "820 KB">
|
---|
11 | <!ENTITY alsa-lib-buildsize "32 MB (additional 17 MB to build and install docs)">
|
---|
12 | <!ENTITY alsa-lib-time "0.3 SBU (less than 0.1 SBU to build and install docs)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="alsa-lib" xreflabel="alsa-lib-&alsa-lib-version;">
|
---|
16 | <?dbhtml filename="alsa-lib.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>alsa-lib-&alsa-lib-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="alsa-lib">
|
---|
26 | <primary sortas="a-ALSA-Library">ALSA Library</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to ALSA Library</title>
|
---|
31 |
|
---|
32 | <para>The <application>ALSA Library</application> package contains
|
---|
33 | the ALSA library. This is used by programs (including <application>ALSA
|
---|
34 | Utilities</application>) requiring access to the ALSA sound interface.</para>
|
---|
35 |
|
---|
36 | &lfs70_checked;
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url="&alsa-lib-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url="&alsa-lib-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: &alsa-lib-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: &alsa-lib-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: &alsa-lib-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: &alsa-lib-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect3">ALSA Library Dependencies</bridgehead>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
63 | <para role="optional"><xref linkend="doxygen"/> and
|
---|
64 | <ulink url="ftp://ftp.lst.de/pub/people/okir/resmgr/">resmgr</ulink></para>
|
---|
65 |
|
---|
66 | <para condition="html" role="usernotes">User Notes:
|
---|
67 | <ulink url="&blfs-wiki;/alsa-lib"/></para>
|
---|
68 |
|
---|
69 | </sect2>
|
---|
70 |
|
---|
71 | <sect2 role="kernel" id="alsa-lib-kernel">
|
---|
72 | <title>Kernel Configuration</title>
|
---|
73 |
|
---|
74 | <para>In the Device Drivers ⇒ Sound ⇒ Advanced Linux Sound
|
---|
75 | Architecture section of the kernel configuration, select the settings and
|
---|
76 | drivers appropriate for your hardware. Ensure that the deprecated Device
|
---|
77 | Drivers ⇒ Sound ⇒ Open Sound System is <emphasis>not</emphasis>
|
---|
78 | selected. If necessary, recompile and install your new kernel.</para>
|
---|
79 |
|
---|
80 | <indexterm zone="alsa-lib alsa-lib-kernel">
|
---|
81 | <primary sortas="d-ALSA">ALSA</primary>
|
---|
82 | </indexterm>
|
---|
83 |
|
---|
84 | </sect2>
|
---|
85 |
|
---|
86 | <sect2 role="installation">
|
---|
87 | <title>Installation of ALSA Library</title>
|
---|
88 |
|
---|
89 | <para>Install <application>ALSA Library</application> by
|
---|
90 | running the following commands:</para>
|
---|
91 |
|
---|
92 | <screen><userinput>./configure &&
|
---|
93 | make</userinput></screen>
|
---|
94 |
|
---|
95 | <para>This package does not come with a test suite.</para>
|
---|
96 |
|
---|
97 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
98 |
|
---|
99 | <screen role="root"><userinput>make install &&
|
---|
100 | install -v -m644 -D doc/asoundrc.txt \
|
---|
101 | /usr/share/doc/alsa-lib-&alsa-lib-version;/asoundrc.txt</userinput></screen>
|
---|
102 |
|
---|
103 | <para>If you have <application>Doxygen</application> installed and you wish to
|
---|
104 | build the library API documentation, run the following
|
---|
105 | commands from the top-level directory of the source tree:</para>
|
---|
106 |
|
---|
107 | <screen><userinput>make doc</userinput></screen>
|
---|
108 |
|
---|
109 | <para>Now, to install the API documentation, as the <systemitem
|
---|
110 | class="username">root</systemitem> user:</para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>install -v -d -m755 /usr/share/doc/alsa-lib-&alsa-lib-version;/html &&
|
---|
113 | install -v -m644 doc/doxygen/html/* /usr/share/doc/alsa-&alsa-lib-version;/html</userinput></screen>
|
---|
114 |
|
---|
115 | <para>Due to bug in libtool script it is no longer possible to build
|
---|
116 | shared and static libraries together. If you need static alsa library,
|
---|
117 | issue following commands:</para>
|
---|
118 |
|
---|
119 | <screen><userinput>make clean &&
|
---|
120 | ./configure --disable-shared --enable-static &&
|
---|
121 | make</userinput></screen>
|
---|
122 |
|
---|
123 | <para>Now, as the <systemitem class="username">root</systemitem> user
|
---|
124 | run: </para>
|
---|
125 |
|
---|
126 | <screen role="root"><userinput>install -m644 src/.libs/libasound.a /usr/lib</userinput></screen>
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="commands">
|
---|
131 | <title>Command Explanations</title>
|
---|
132 |
|
---|
133 | <para><parameter>--enable-static</parameter>: This switch is used to enable
|
---|
134 | building the static library as some programs link against it.</para>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="configuration">
|
---|
139 | <title>Configuring ALSA Library</title>
|
---|
140 |
|
---|
141 | <sect3 id="alsa-lib-config">
|
---|
142 | <title>Config Files</title>
|
---|
143 |
|
---|
144 | <para><filename>~/.asoundrc</filename>,
|
---|
145 | <filename>/etc/asound.conf</filename>,
|
---|
146 | <filename>/usr/share/alsa/alsa.conf</filename>, and
|
---|
147 | <filename>/usr/share/alsa/{cards,pcm}/*.conf</filename></para>
|
---|
148 |
|
---|
149 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
150 | <primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
---|
151 | </indexterm>
|
---|
152 |
|
---|
153 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
154 | <primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
---|
155 | </indexterm>
|
---|
156 |
|
---|
157 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
158 | <primary sortas="e-usr-share-alsa-alsa.conf">/usr/share/alsa/alsa.conf</primary>
|
---|
159 | </indexterm>
|
---|
160 |
|
---|
161 | <indexterm zone="alsa-lib alsa-lib-config">
|
---|
162 | <primary sortas="e-usr-share-alsa-alsa1">.../alsa/{cards,pcm}/*.conf</primary>
|
---|
163 | </indexterm>
|
---|
164 |
|
---|
165 | </sect3>
|
---|
166 |
|
---|
167 | <sect3>
|
---|
168 | <title>Configuration Information</title>
|
---|
169 |
|
---|
170 | <para>The default <filename>alsa.conf</filename> is adequate for most
|
---|
171 | installations. For extra functionality and/or advanced control of your sound
|
---|
172 | device, you may need to create additional configuration files. For
|
---|
173 | information on the available configuration parameters, visit <ulink
|
---|
174 | url="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"/>.</para>
|
---|
175 |
|
---|
176 | </sect3>
|
---|
177 |
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | <sect2 role="content">
|
---|
181 | <title>Contents</title>
|
---|
182 |
|
---|
183 | <segmentedlist>
|
---|
184 | <segtitle>Installed Program</segtitle>
|
---|
185 | <segtitle>Installed Libraries</segtitle>
|
---|
186 | <segtitle>Installed Directories</segtitle>
|
---|
187 |
|
---|
188 | <seglistitem>
|
---|
189 | <seg>aserver</seg>
|
---|
190 | <seg>libasound.{so,a} and smixer-*.{so,a}</seg>
|
---|
191 | <seg>/usr/include/alsa, /usr/lib/alsa-lib, /usr/share/alsa and
|
---|
192 | /usr/share/doc/alsa-lib-&alsa-lib-version;</seg>
|
---|
193 | </seglistitem>
|
---|
194 | </segmentedlist>
|
---|
195 |
|
---|
196 | <variablelist>
|
---|
197 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
198 | <?dbfo list-presentation="list"?>
|
---|
199 | <?dbhtml list-presentation="table"?>
|
---|
200 |
|
---|
201 | <varlistentry id="aserver">
|
---|
202 | <term><command>aserver</command></term>
|
---|
203 | <listitem>
|
---|
204 | <para>provides the ALSA server.</para>
|
---|
205 | <indexterm zone="alsa-lib aserver">
|
---|
206 | <primary sortas="b-aserver">aserver</primary>
|
---|
207 | </indexterm>
|
---|
208 | </listitem>
|
---|
209 | </varlistentry>
|
---|
210 |
|
---|
211 | <varlistentry id="libasound">
|
---|
212 | <term><filename class='libraryfile'>libasound.{so,a}</filename></term>
|
---|
213 | <listitem>
|
---|
214 | <para>provides ALSA functions for application programs.</para>
|
---|
215 | <indexterm zone="alsa-lib libasound">
|
---|
216 | <primary sortas="c-libasound">libasound.{so,a}</primary>
|
---|
217 | </indexterm>
|
---|
218 | </listitem>
|
---|
219 | </varlistentry>
|
---|
220 |
|
---|
221 | <varlistentry id="smixer">
|
---|
222 | <term><filename class='libraryfile'>smixer-*.{so,a}</filename></term>
|
---|
223 | <listitem>
|
---|
224 | <para>provides hardware dependent ALSA mixer functions.</para>
|
---|
225 | <indexterm zone="alsa-lib smixer">
|
---|
226 | <primary sortas="c-smixer">smixer-*.{so,a}</primary>
|
---|
227 | </indexterm>
|
---|
228 | </listitem>
|
---|
229 | </varlistentry>
|
---|
230 |
|
---|
231 | </variablelist>
|
---|
232 |
|
---|
233 | </sect2>
|
---|
234 |
|
---|
235 | </sect1>
|
---|