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