source: multimedia/libdriv/alsa-lib.xml@ 1473268a

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 1473268a was d8e1be0, checked in by Xi Ruoyao <xry111@…>, 12 months ago

multimedia: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

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