2005-05-10 02:17:49 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-14 07:30:44 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-11-09 22:37:04 +08:00
|
|
|
|
2019-12-01 09:32:59 +08:00
|
|
|
<!ENTITY alsa-lib-download-http "&alsa-download-http;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
2004-06-14 07:30:44 +08:00
|
|
|
<!ENTITY alsa-lib-download-ftp "&alsa-download-ftp;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
2023-05-05 14:41:26 +08:00
|
|
|
<!ENTITY alsa-lib-md5sum "d29f5ebe9a4ff1be70508ecbf6655318">
|
|
|
|
<!ENTITY alsa-lib-size "1.1 MB">
|
2022-07-10 03:56:17 +08:00
|
|
|
<!ENTITY alsa-lib-buildsize "45 MB (with tests and docs)">
|
2021-12-16 09:10:29 +08:00
|
|
|
<!ENTITY alsa-lib-time "0.3 SBU (with tests and docs)">
|
2004-06-14 07:30:44 +08:00
|
|
|
]>
|
2004-11-09 22:37:04 +08:00
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<sect1 id="alsa-lib" xreflabel="alsa-lib-&alsa-lib-version;">
|
2005-05-10 02:17:49 +08:00
|
|
|
<?dbhtml filename="alsa-lib.html"?>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<title>alsa-lib-&alsa-lib-version;</title>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<indexterm zone="alsa-lib">
|
2012-09-13 01:18:06 +08:00
|
|
|
<primary sortas="a-alsa-lib">alsa-lib</primary>
|
2005-05-10 02:17:49 +08:00
|
|
|
</indexterm>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to ALSA Library</title>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
The <application>ALSA Library</application> package contains
|
|
|
|
the ALSA library used by programs (including <application>ALSA
|
|
|
|
Utilities</application>) requiring access to the ALSA sound
|
|
|
|
interface.
|
|
|
|
</para>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2023-02-18 12:35:46 +08:00
|
|
|
&lfs113_checked;
|
2009-08-04 23:20:12 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&alsa-lib-download-http;"/>
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&alsa-lib-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &alsa-lib-md5sum;
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Download size: &alsa-lib-size;
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &alsa-lib-buildsize;
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &alsa-lib-time;
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-04-02 14:20:02 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<bridgehead renderas="sect3">ALSA Library Dependencies</bridgehead>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2023-04-09 21:49:08 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended (Runtime)</bridgehead>
|
|
|
|
<para role="runtime">
|
|
|
|
<phrase revision='sysv'><xref linkend='elogind'/></phrase>
|
|
|
|
<phrase revision='systemd'><xref linkend='systemd'/></phrase>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If the recommended runtime dependency is not installed, you may
|
|
|
|
need to run any application requiring ALSA library as the &root;
|
|
|
|
user or a user in the
|
|
|
|
<systemitem class='groupname'>audio</systemitem> group.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para role="optional">
|
2021-08-29 23:32:39 +08:00
|
|
|
<xref linkend="doxygen"/>,
|
|
|
|
<xref linkend="python2"/>, and
|
|
|
|
<ulink url="https://www.alsa-project.org/files/pub/lib/">alsa-ucm-conf</ulink>
|
2012-09-13 01:18:06 +08:00
|
|
|
</para>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2006-04-11 02:37:19 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-09-13 01:18:06 +08:00
|
|
|
<ulink url="&blfs-wiki;/alsa-lib"/>
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
</sect2>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<sect2 role="kernel" id="alsa-lib-kernel">
|
|
|
|
<title>Kernel Configuration</title>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2014-05-24 06:37:34 +08:00
|
|
|
<para>
|
2015-11-13 22:24:57 +08:00
|
|
|
If needed, enable the following options in the kernel
|
|
|
|
configuration and recompile the kernel:
|
2014-05-24 06:37:34 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><literal>Device Drivers --->
|
2020-12-02 06:08:20 +08:00
|
|
|
<*/M> Sound card support ---> [CONFIG_SOUND]
|
|
|
|
<*/M> Advanced Linux Sound Architecture ---> [CONFIG_SND]
|
2018-02-26 03:05:49 +08:00
|
|
|
Select settings and drivers appropriate for your hardware.</literal></screen>
|
2014-05-24 06:37:34 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
In the Device Drivers ⇒ Sound card support ⇒ Advanced Linux
|
2022-04-25 07:13:17 +08:00
|
|
|
Sound Architecture section of the kernel configuration, select the
|
|
|
|
settings and drivers appropriate for your hardware. If necessary,
|
|
|
|
recompile and install your new kernel.
|
2012-09-13 01:18:06 +08:00
|
|
|
</para>
|
2005-03-28 11:04:38 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<indexterm zone="alsa-lib alsa-lib-kernel">
|
|
|
|
<primary sortas="d-ALSA">ALSA</primary>
|
|
|
|
</indexterm>
|
2005-03-28 11:04:38 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
</sect2>
|
2005-03-28 11:04:38 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of ALSA Library</title>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Install <application>ALSA Library</application> by
|
|
|
|
running the following commands:
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
2013-07-09 02:07:43 +08:00
|
|
|
<screen><userinput>./configure &&
|
2005-05-10 02:17:49 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2015-01-28 17:45:52 +08:00
|
|
|
<para>
|
|
|
|
If you have <application>Doxygen</application> installed and you wish to
|
|
|
|
build the library API documentation, run the following
|
|
|
|
commands from the top-level directory of the source tree:
|
|
|
|
</para>
|
|
|
|
|
2019-08-06 04:26:50 +08:00
|
|
|
<screen remap="doc"><userinput>make doc</userinput></screen>
|
2021-02-07 11:55:17 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
2013-07-09 02:07:43 +08:00
|
|
|
To test the results, issue: <command>make check</command>.
|
2012-09-13 01:18:06 +08:00
|
|
|
</para>
|
2021-02-07 11:55:17 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
To install the API documentation, run the following command as
|
|
|
|
the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
2019-08-06 04:26:50 +08:00
|
|
|
<screen role="root"
|
|
|
|
remap="doc"><userinput>install -v -d -m755 /usr/share/doc/alsa-lib-&alsa-lib-version;/html/search &&
|
2014-09-18 20:17:47 +08:00
|
|
|
install -v -m644 doc/doxygen/html/*.* \
|
|
|
|
/usr/share/doc/alsa-lib-&alsa-lib-version;/html &&
|
|
|
|
install -v -m644 doc/doxygen/html/search/* \
|
|
|
|
/usr/share/doc/alsa-lib-&alsa-lib-version;/html/search</userinput></screen>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring ALSA Library</title>
|
|
|
|
|
|
|
|
<sect3 id="alsa-lib-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
<filename>~/.asoundrc</filename> and
|
|
|
|
<filename>/etc/asound.conf</filename>
|
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
|
|
|
<indexterm zone="alsa-lib alsa-lib-config">
|
|
|
|
<primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="alsa-lib alsa-lib-config">
|
|
|
|
<primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
|
|
|
The default <filename>alsa.conf</filename> is adequate for most
|
|
|
|
installations. For extra functionality and/or advanced control of your
|
|
|
|
sound device, you may need to create additional configuration files.
|
|
|
|
For information on the available configuration parameters, visit
|
2021-06-17 00:21:44 +08:00
|
|
|
<ulink url="https://www.alsa-project.org/main/index.php/Asoundrc"/>.
|
2012-09-13 01:18:06 +08:00
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2009-08-04 23:20:12 +08:00
|
|
|
<segtitle>Installed Program</segtitle>
|
2012-09-13 01:18:06 +08:00
|
|
|
<segtitle>Installed Library</segtitle>
|
2005-05-10 02:17:49 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<seg>
|
|
|
|
aserver
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2019-11-24 05:42:48 +08:00
|
|
|
libasound.so and
|
|
|
|
libatopology.so
|
2012-09-13 01:18:06 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/alsa,
|
|
|
|
/usr/share/alsa and
|
2013-04-14 20:48:41 +08:00
|
|
|
/usr/share/doc/alsa-lib-&alsa-lib-version;
|
|
|
|
</seg>
|
2005-05-10 02:17:49 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2007-01-18 12:36:01 +08:00
|
|
|
<varlistentry id="aserver">
|
|
|
|
<term><command>aserver</command></term>
|
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is the ALSA server
|
2012-09-13 01:18:06 +08:00
|
|
|
</para>
|
2007-01-18 12:36:01 +08:00
|
|
|
<indexterm zone="alsa-lib aserver">
|
|
|
|
<primary sortas="b-aserver">aserver</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
<varlistentry id="libasound">
|
2012-09-13 01:18:06 +08:00
|
|
|
<term><filename class="libraryfile">libasound.so</filename></term>
|
2005-05-10 02:17:49 +08:00
|
|
|
<listitem>
|
2012-09-13 01:18:06 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains the ALSA API functions
|
2012-09-13 01:18:06 +08:00
|
|
|
</para>
|
2005-05-10 02:17:49 +08:00
|
|
|
<indexterm zone="alsa-lib libasound">
|
2012-09-13 01:18:06 +08:00
|
|
|
<primary sortas="c-libasound">libasound.so</primary>
|
2006-05-07 09:36:04 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2019-11-24 05:42:48 +08:00
|
|
|
<varlistentry id="libatopology">
|
|
|
|
<term><filename class="libraryfile">libatopology.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains API functions for the ALSA topologies
|
2019-11-24 05:42:48 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="alsa-lib libatopology">
|
|
|
|
<primary sortas="c-libatopology">libatopology.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
2021-09-07 01:42:49 +08:00
|
|
|
</varlistentry>
|
2019-11-24 05:42:48 +08:00
|
|
|
|
2005-05-10 02:17:49 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-06-14 07:30:44 +08:00
|
|
|
|
|
|
|
</sect1>
|