source: multimedia/libdriv/alsa-driver.xml@ c6eb1ff1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c6eb1ff1 was 48b7295, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

XML update for Chapter 37

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2314 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../../general.ent">
4 %general-entities;
5
6 <!ENTITY alsa-driver-download-http "&alsa-download-http;/driver/alsa-driver-&alsa-driver-version;.tar.bz2">
7 <!ENTITY alsa-driver-download-ftp "&alsa-download-ftp;/driver/alsa-driver-&alsa-driver-version;.tar.bz2">
8 <!ENTITY alsa-driver-size "1.7 MB">
9 <!ENTITY alsa-driver-buildsize "32 MB (for all drivers)">
10 <!ENTITY alsa-driver-time "1.26 SBU (for all drivers)">
11]>
12
13<sect1 id="alsa-driver" xreflabel="ALSA Driver-&alsa-driver-version;">
14<?dbhtml filename="alsa-driver.html"?>
15<title>ALSA Driver-&alsa-driver-version;</title>
16
17<sect2>
18<title>Introduction to <application><acronym>ALSA</acronym> Driver</application>
19</title>
20
21<para>The <application><acronym>ALSA</acronym> Driver</application> package
22contains the <acronym>ALSA</acronym> sound drivers. These are
23the next generation of sound drivers for Linux.</para>
24
25<sect3><title>Package information</title>
26<itemizedlist spacing='compact'>
27<listitem><para>Download (HTTP): <ulink url="&alsa-driver-download-http;"/></para></listitem>
28<listitem><para>Download (FTP): <ulink url="&alsa-driver-download-ftp;"/></para></listitem>
29<listitem><para>Download size: &alsa-driver-size;</para></listitem>
30<listitem><para>Estimated Disk space required: &alsa-driver-buildsize;</para></listitem>
31<listitem><para>Estimated build time: &alsa-driver-time;</para></listitem></itemizedlist>
32</sect3>
33
34</sect2>
35
36<sect2>
37<title>Installation of <application><acronym>ALSA</acronym> Driver</application></title>
38
39<para>Before installing the <application><acronym>ALSA</acronym></application>
40drivers, note that in your
41kernel configuration you should have <userinput>Sound Card Support
42(CONFIG_SOUND)</userinput> enabled but <emphasis>nothing</emphasis> else in
43the Sound menu (with the possible exception of TV Card Mixer support.) In
44particular, you should <emphasis>not</emphasis> have <userinput>OSS Sound
45Modules</userinput> enabled as this will cause problems when loading the
46<application><acronym>ALSA</acronym></application> driver modules.</para>
47
48<note><para>Because <application><acronym>ALSA</acronym></application> drivers
49are kernel modules, they must be compiled with the same compiler used to
50compile the kernel.</para></note>
51
52<para>Install <application><acronym>ALSA</acronym> Driver</application> using
53the following commands:</para>
54
55<screen><userinput><command>CC=/opt/gcc-2.95.3/bin/gcc ./configure \
56 --with-moddir=/lib/modules/`uname -r`/kernel/drivers/sound \
57 --with-kernel=/lib/modules/`uname -r`/build \
58 --with-sequencer=yes \
59 --with-oss=yes \
60 --with-isapnp=no \
61 --with-cards=all &amp;&amp;
62make &amp;&amp;
63make install</command></userinput></screen>
64
65<para>If this is the first time you have installed the
66<application><acronym>ALSA</acronym></application> drivers, you
67will need to create the <filename class="directory">/dev</filename> entries
68using the script provided in the
69<application><acronym>ALSA</acronym> Driver</application> source
70tree:</para>
71<screen><userinput><command>./snddevices</command></userinput></screen>
72
73</sect2>
74
75<sect2>
76<title>Command explanations</title>
77
78<para><parameter>--with-sequencer=yes</parameter>: This tells the <application>
79<acronym>ALSA</acronym> Driver</application> package to build the sequencer
80modules. Most people want
81them so you will usually want to leave it set to yes.</para>
82
83<para><parameter>--with-oss=yes</parameter>: This tells the package to
84build the <acronym>OSS</acronym>/Free emulation modules. Again, most people
85want this so it's probably best to stick with yes.</para>
86
87<para><parameter>--with-isapnp=no</parameter>: Most sound cards these days
88are <acronym>PCI</acronym> and <acronym>ISA</acronym> Plug and Play
89support isn't needed. If you are using an <acronym>ISA</acronym> PnP sound card,
90it's best to say yes here. If your card is <acronym>ISA</acronym>, but
91not PnP, it is safer to stay with 'no'.</para>
92
93<para><parameter>--with-cards=all</parameter>: You can tell the script just
94to build the drivers for your particular sound card here. For full information
95on which drivers are available, see <command>./configure
96--help</command>. If you aren't sure which chipset your sound card uses,
97look at the file <filename>CARDS-STATUS</filename> in the
98<application><acronym>ALSA</acronym> Driver</application> source
99tree. The default specified here will build all drivers.</para>
100
101</sect2>
102
103<sect2>
104<title>Configuring <application><acronym>ALSA</acronym> Driver</application></title>
105
106<sect3><title>Config files</title>
107
108<para><filename>/etc/modules.conf</filename></para>
109
110</sect3>
111
112<sect3><title>Configuration Information</title>
113
114<para>To configure the <acronym>ALSA</acronym> drivers, you need to add some
115lines to <filename>/etc/modules.conf</filename>:</para>
116
117<screen><userinput><command>cat &gt;&gt; /etc/modules.conf &lt;&lt; "EOF"
118alias char-major-14 soundcore
119alias char-major-116 snd
120
121alias snd-card-0 snd-<replaceable>[soundcard-name]</replaceable>
122
123alias sound-slot-0 snd-card-0
124
125alias sound-service-0-0 snd-mixer-oss
126alias sound-service-0-1 snd-seq-oss
127alias sound-service-0-3 snd-pcm-oss
128alias sound-service-0-8 snd-seq-midi
129EOF</command></userinput></screen>
130
131<para><replaceable>[soundcard-name]</replaceable> needs to be replaced with the
132driver relevant to your sound card. If you have more than one sound card, you
133can add additional sections by repeating the above, changing the first 0 to
1341 and so on.</para>
135
136<para>After editing <filename>/etc/modules.conf</filename> you need to run
137<command>depmod</command>. If the drivers you have compiled are for the
138version of the kernel you are currently running, simply run:</para>
139
140<screen><userinput><command>depmod</command></userinput></screen>
141
142<para>If you are compiling drivers for a different kernel version than those
143you are running, you will need to use a line similar to:</para>
144
145<screen><userinput><command>depmod -a 2.4.22 -F /boot/System.map-2.4.22</command></userinput></screen>
146
147</sect3>
148
149</sect2>
150
151<sect2>
152<title>Contents</title>
153
154<para>The <application><acronym>ALSA</acronym> Driver</application> package
155contains the <acronym>ALSA</acronym> sound card drivers and include files.
156</para>
157
158</sect2>
159
160<sect2><title>Description</title>
161
162<sect3><title><acronym>ALSA</acronym> sound card drivers</title>
163<para>These are kernel modules which provide audio and <acronym>MIDI</acronym>
164functionality to the operating system.</para></sect3>
165
166<sect3><title>include files</title>
167<para>These are installed in <filename class="directory">/usr/include/sound
168</filename> and are required to compile certain packages such as
169<application><acronym>ALSA</acronym> Libraries</application>.
170</para></sect3>
171
172</sect2>
173
174</sect1>
175
Note: See TracBrowser for help on using the repository browser.