source: multimedia/libdriv/alsa-driver.xml@ 5cd0959d

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 5cd0959d was 5cd0959d, checked in by Archaic <archaic@…>, 20 years ago

Resetting keywords

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

  • Property mode set to 100644
File size: 6.8 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<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
26contains the <acronym>ALSA</acronym> sound drivers. These are
27the 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>
44drivers, note that in your
45kernel configuration you should have <userinput>Sound Card Support
46(CONFIG_SOUND)</userinput> enabled but <emphasis>nothing</emphasis> else in
47the Sound menu (with the possible exception of TV Card Mixer support.) In
48particular, you should <emphasis>not</emphasis> have <userinput>OSS Sound
49Modules</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
53are kernel modules, they must be compiled with the same compiler used to
54compile the kernel.</para></note>
55
56<para>Install <application><acronym>ALSA</acronym> Driver</application> using
57the 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 &amp;&amp;
66make &amp;&amp;
67make 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
71will need to create the <filename class="directory">/dev</filename> entries
72using the script provided in the
73<application><acronym>ALSA</acronym> Driver</application> source
74tree:</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
84modules. Most people want
85them 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
88build the <acronym>OSS</acronym>/Free emulation modules. Again, most people
89want this so it's probably best to stick with yes.</para>
90
91<para><parameter>--with-isapnp=no</parameter>: Most sound cards these days
92are <acronym>PCI</acronym> and <acronym>ISA</acronym> Plug and Play
93support isn't needed. If you are using an <acronym>ISA</acronym> PnP sound card,
94it's best to say yes here. If your card is <acronym>ISA</acronym>, but
95not PnP, it is safer to stay with 'no'.</para>
96
97<para><parameter>--with-cards=all</parameter>: You can tell the script just
98to build the drivers for your particular sound card here. For full information
99on which drivers are available, see <command>./configure
100--help</command>. If you aren't sure which chipset your sound card uses,
101look at the file <filename>CARDS-STATUS</filename> in the
102<application><acronym>ALSA</acronym> Driver</application> source
103tree. 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
119lines to <filename>/etc/modules.conf</filename>:</para>
120
121<screen><userinput><command>cat &gt;&gt; /etc/modules.conf &lt;&lt; "EOF"
122alias char-major-14 soundcore
123alias char-major-116 snd
124
125alias snd-card-0 snd-<replaceable>[soundcard-name]</replaceable>
126
127alias sound-slot-0 snd-card-0
128
129alias sound-service-0-0 snd-mixer-oss
130alias sound-service-0-1 snd-seq-oss
131alias sound-service-0-3 snd-pcm-oss
132alias sound-service-0-8 snd-seq-midi
133EOF</command></userinput></screen>
134
135<para><replaceable>[soundcard-name]</replaceable> needs to be replaced with the
136driver relevant to your sound card. If you have more than one sound card, you
137can add additional sections by repeating the above, changing the first 0 to
1381 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
142version 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
147you 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
159contains 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>
168functionality 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
Note: See TracBrowser for help on using the repository browser.