mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
Tagged alsa-lib.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4071 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
5976163d83
commit
57e86a9321
@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
||||
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
||||
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
||||
@ -12,177 +13,198 @@
|
||||
]>
|
||||
|
||||
<sect1 id="alsa-lib" xreflabel="ALSA Library-&alsa-lib-version;">
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
<?dbhtml filename="alsa-lib.html"?>
|
||||
<title>ALSA Library-&alsa-lib-version;</title>
|
||||
<indexterm zone="alsa-lib">
|
||||
<primary sortas="a-ALSA-Library">ALSA Library</primary></indexterm>
|
||||
<?dbhtml filename="alsa-lib.html"?>
|
||||
|
||||
<sect2>
|
||||
<title>Introduction to <application><acronym>ALSA</acronym>
|
||||
Library</application></title>
|
||||
<sect1info>
|
||||
<othername>$LastChangedBy$</othername>
|
||||
<date>$Date$</date>
|
||||
</sect1info>
|
||||
|
||||
<para>The <application><acronym>ALSA</acronym> Library</application> package
|
||||
contains the <acronym>ALSA</acronym> library. This is used by programs
|
||||
(including <application><acronym>ALSA</acronym> Utilities</application>)
|
||||
requiring access to the <acronym>ALSA</acronym> sound interface.</para>
|
||||
<title>ALSA Library-&alsa-lib-version;</title>
|
||||
|
||||
<sect3><title>Package information</title>
|
||||
<itemizedlist spacing='compact'>
|
||||
<listitem><para>Download (HTTP):
|
||||
<ulink url="&alsa-lib-download-http;"/></para></listitem>
|
||||
<listitem><para>Download (FTP):
|
||||
<ulink url="&alsa-lib-download-ftp;"/></para></listitem>
|
||||
<listitem><para>Download MD5 sum: &alsa-lib-md5sum;</para></listitem>
|
||||
<listitem><para>Download size: &alsa-lib-size;</para></listitem>
|
||||
<listitem><para>Estimated disk space required:
|
||||
&alsa-lib-buildsize;</para></listitem>
|
||||
<listitem><para>Estimated build time:
|
||||
&alsa-lib-time;</para></listitem></itemizedlist>
|
||||
</sect3>
|
||||
<indexterm zone="alsa-lib">
|
||||
<primary sortas="a-ALSA-Library">ALSA Library</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3><title><application><acronym>ALSA</acronym> Library</application>
|
||||
dependencies</title>
|
||||
<sect4><title>Optional</title>
|
||||
<para><ulink url="http://jackit.sourceforge.net/">JACK</ulink> and
|
||||
<xref linkend="doxygen"/></para>
|
||||
</sect4>
|
||||
</sect3>
|
||||
<sect2 role="package">
|
||||
<title>Introduction to ALSA Library</title>
|
||||
|
||||
</sect2>
|
||||
<para>The <application>ALSA Library</application> package contains
|
||||
the ALSA library. This is used by programs (including <application>ALSA
|
||||
Utilities</application>) requiring access to the ALSA sound interface.</para>
|
||||
|
||||
<sect2 id="alsa-lib-kernel">
|
||||
<title>Installation of <application><acronym>ALSA</acronym>
|
||||
Library</application>
|
||||
</title>
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&alsa-lib-download-http;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&alsa-lib-download-ftp;"/></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &alsa-lib-md5sum;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &alsa-lib-size;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &alsa-lib-buildsize;</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &alsa-lib-time;</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>In the <quote>Sound</quote> section of the kernel configuration, edit
|
||||
<userinput>Advanced Linux Sound Architecture</userinput> options to match your
|
||||
audio hardware and disable deprecated <userinput>Open Sound System</userinput>.
|
||||
Recompile and install your new kernel.</para>
|
||||
<indexterm zone="alsa-lib alsa-lib-kernel">
|
||||
<primary sortas="d-ALSA">ALSA</primary></indexterm>
|
||||
<bridgehead renderas="sect3">ALSA Library Dependencies</bridgehead>
|
||||
|
||||
<para>Install <application><acronym>ALSA</acronym> Library</application> by
|
||||
running the following commands:</para>
|
||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||
<para><ulink url="http://jackit.sourceforge.net/">JACK</ulink> and
|
||||
<xref linkend="doxygen"/></para>
|
||||
|
||||
<screen><userinput><command>./configure --enable-static &&
|
||||
make</command></userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<para>To test the results, issue: <command>make check</command>.</para>
|
||||
<sect2 role="kernel" id="alsa-lib-kernel">
|
||||
<title>Kernel Configuration</title>
|
||||
|
||||
<para>Now, as the root user:</para>
|
||||
<para>In the <quote>Sound</quote> section of the kernel configuration, edit
|
||||
<emphasis role="bold">Advanced Linux Sound Architecture</emphasis>
|
||||
options to match your audio hardware and disable deprecated
|
||||
<emphasis role="bold">Open Sound System</emphasis>.
|
||||
Recompile and install your new kernel.</para>
|
||||
|
||||
<screen><userinput role='root'><command>make install</command></userinput></screen>
|
||||
<indexterm zone="alsa-lib alsa-lib-kernel">
|
||||
<primary sortas="d-ALSA">ALSA</primary>
|
||||
</indexterm>
|
||||
|
||||
<para>If you have <application><acronym>JACK</acronym></application> installed
|
||||
and you wish to build the <application><acronym>JACK</acronym></application>
|
||||
<acronym>PCM</acronym> plugin library, run the following commands:</para>
|
||||
</sect2>
|
||||
|
||||
<screen><userinput><command>cd src/pcm/ext &&
|
||||
make jack</command></userinput></screen>
|
||||
<sect2 role="installation">
|
||||
<title>Installation of ALSA Library</title>
|
||||
|
||||
<para>Now, as the root user:</para>
|
||||
<para>Install <application>ALSALibrary</application> by
|
||||
running the following commands:</para>
|
||||
|
||||
<screen><userinput role='root'><command>make install-jack</command></userinput></screen>
|
||||
<screen><userinput>./configure --enable-static &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>Ensure the unprivileged user's current working directory is the root of
|
||||
the source tree:</para>
|
||||
<para>To test the results, issue: <command>make check</command>.</para>
|
||||
|
||||
<screen><userinput><command>cd ../../..</command></userinput></screen>
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
<para>If you have <application>Doxygen</application> installed and you wish to
|
||||
build the library <acronym>API</acronym> documentation, run the following
|
||||
commands from the top-level directory of the source tree:</para>
|
||||
<screen role="root"><userinput>make install</userinput></screen>
|
||||
|
||||
<screen><userinput><command>make doc</command></userinput></screen>
|
||||
<para>If you have <application>JACK</application> installed
|
||||
and you wish to build the <application>JACK</application>
|
||||
PCM plugin library, run the following commands:</para>
|
||||
|
||||
<para>Now, as the root user:</para>
|
||||
<screen><userinput>cd src/pcm/ext &&
|
||||
make jack</userinput></screen>
|
||||
|
||||
<screen><userinput role='root'><command>install -v -d -m755 /usr/share/alsa/doc/html &&
|
||||
install -v -m644 doc/doxygen/html/* /usr/share/alsa/doc/html</command></userinput></screen>
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
</sect2>
|
||||
<screen role="root"><userinput>make install-jack</userinput></screen>
|
||||
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
<para>Ensure the unprivileged user's current working directory is the root of
|
||||
the source tree:</para>
|
||||
|
||||
<para><parameter>--enable-static</parameter>: This switch is used to enable
|
||||
building the static library because some programs link against it.</para>
|
||||
<screen><userinput>cd ../../..</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
<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>
|
||||
|
||||
<sect2>
|
||||
<title>Configuring <application><acronym>ALSA</acronym>
|
||||
Library</application></title>
|
||||
<screen><userinput>make doc</userinput></screen>
|
||||
|
||||
<sect3 id="alsa-lib-config"><title>Config files</title>
|
||||
<para><filename>~/.asoundrc</filename>,
|
||||
<filename>/etc/asound.conf</filename>,
|
||||
<filename>/usr/share/alsa/alsa.conf</filename> and
|
||||
<filename>/usr/share/alsa/{cards,pcm}/*.conf</filename></para>
|
||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
||||
</indexterm>
|
||||
<screen role="root"><userinput>install -v -d -m755 /usr/share/alsa/doc/html &&
|
||||
install -v -m644 doc/doxygen/html/* /usr/share/alsa/doc/html</userinput></screen>
|
||||
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
||||
</indexterm>
|
||||
</sect2>
|
||||
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-usr-share-alsa-alsa.conf">/usr/share/alsa/alsa.conf</primary>
|
||||
</indexterm>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-usr-share-alsa-alsa1">.../alsa/{cards,pcm}/*.conf</primary>
|
||||
</indexterm>
|
||||
</sect3>
|
||||
<para><parameter>--enable-static</parameter>: This switch is used to enable
|
||||
building the static library because some programs link against it.</para>
|
||||
|
||||
<sect3><title>Configuration information</title>
|
||||
<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, including setup of the
|
||||
<application><acronym>JACK</acronym></application> <acronym>PCM</acronym>
|
||||
plugin, visit <ulink
|
||||
url="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"/>.</para>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
</sect2>
|
||||
<sect2 role="configuration">
|
||||
<title>Configuring ALSA Library</title>
|
||||
|
||||
<sect2>
|
||||
<title>Contents</title>
|
||||
<sect3 id="alsa-lib-config">
|
||||
<title>Config Files</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
<para><filename>~/.asoundrc</filename>,
|
||||
<filename>/etc/asound.conf</filename>,
|
||||
<filename>/usr/share/alsa/alsa.conf</filename>, and
|
||||
<filename>/usr/share/alsa/{cards,pcm}/*.conf</filename></para>
|
||||
|
||||
<seglistitem>
|
||||
<seg>alsalisp and aserver</seg>
|
||||
<seg>libasound.[so,a] and optionally, libasound_module_pcm_jack.[so,a]</seg>
|
||||
<seg>/usr/include/alsa, /usr/lib/alsa-lib, /usr/share/alsa</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-AA.asoundrc">~/.asoundrc</primary>
|
||||
</indexterm>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-etc-asound.conf">/etc/asound.conf</primary>
|
||||
</indexterm>
|
||||
|
||||
<varlistentry id="libasound">
|
||||
<term><filename class='libraryfile'>libasound.[so,a]</filename></term>
|
||||
<listitem><para>provides <acronym>ALSA</acronym> functions for application
|
||||
programs.</para>
|
||||
<indexterm zone="alsa-lib libasound">
|
||||
<primary sortas="c-libasound">libasound.[so,a]</primary>
|
||||
</indexterm></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-usr-share-alsa-alsa.conf">/usr/share/alsa/alsa.conf</primary>
|
||||
</indexterm>
|
||||
|
||||
</sect2>
|
||||
<indexterm zone="alsa-lib alsa-lib-config">
|
||||
<primary sortas="e-usr-share-alsa-alsa1">.../alsa/{cards,pcm}/*.conf</primary>
|
||||
</indexterm>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
<title>Configuration Information</title>
|
||||
|
||||
<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, including setup of the
|
||||
<application>JACK</application> PCM plugin, visit <ulink
|
||||
url="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"/>.</para>
|
||||
|
||||
</sect3>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>alsalisp and aserver</seg>
|
||||
<seg>libasound.[so,a] and optionally, libasound_module_pcm_jack.[so,a]</seg>
|
||||
<seg>/usr/include/alsa, /usr/lib/alsa-lib, and /usr/share/alsa</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="libasound">
|
||||
<term><filename class='libraryfile'>libasound.[so,a]</filename></term>
|
||||
<listitem>
|
||||
<para>provides ALSA functions for application programs.</para>
|
||||
<indexterm zone="alsa-lib libasound">
|
||||
<primary sortas="c-libasound">libasound.[so,a]</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
Loading…
Reference in New Issue
Block a user