/[gentoo]/xml/htdocs/doc/en/alsa-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/alsa-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
6<author title="Author"><mail link="zu@pandora.be"> 6<author title="Author"><mail link="zu@pandora.be">
7 Vincent Verleye</mail> 7 Vincent Verleye</mail>
8</author> 8</author>
9<author title="Author"><mail link="g2boojum@gentoo.org"> 9<author title="Author"><mail link="g2boojum@gentoo.org">
10 Grant Goodyear</mail> 10 Grant Goodyear</mail>
11</author> 11</author>
12<author title="Author"><mail link="agenkin@gentoo.org"> 12<author title="Author"><mail link="agenkin@gentoo.org">
13 Arcady Genkin</mail> 13 Arcady Genkin</mail>
14</author> 14</author>
15<author title="Editor"><mail link="zhen@gentoo.org"> 15<author title="Editor"><mail link="zhen@gentoo.org">
16 John P. Davis</mail> 16 John P. Davis</mail>
17</author> 17</author>
18<author title="Editor"><mail link="swift@gentoo.org"> 18<author title="Editor"><mail link="swift@gentoo.org">
19 Sven Vermeulen</mail> 19 Sven Vermeulen</mail>
20</author> 20</author>
21<author title="Editor"><mail link="bennyc@gentoo.org">
22 Benny Chuang</mail>
23</author>
21 24
22<license/> 25<license/>
23 26
24<abstract> 27<abstract>
25This guide will show you how to set up the Advanced Linux Sound Architecture (ALSA) on Gentoo Linux. 28This guide will show you how to set up the Advanced Linux Sound Architecture (ALSA) on Gentoo Linux.
26In addition to the Gentoo Linux Desktop Configuration Guide, this guide is supposed to give you more information on this subject. </abstract> 29In addition to the Gentoo Linux Desktop Configuration Guide, this guide is supposed to give you more information on this subject. </abstract>
27 30
28<version>1.3</version> 31<version>1.3.1</version>
29<date>September 7, 2003</date> 32<date>September 12, 2003</date>
30 33
31<chapter> 34<chapter>
32<title>Introduction</title> 35<title>Introduction</title>
33<section> 36<section>
34 <title>What is ALSA?</title> 37 <title>What is ALSA?</title>
35<body> 38<body>
36<p> 39<p>
37The Advanced Linux Sound Architecture (ALSA) is a project to improve the Linux sound subsystem by rewriting 40The Advanced Linux Sound Architecture (ALSA) is a project to improve the Linux sound subsystem by rewriting
38large chunks of it. 41large chunks of it.
39It is anticipated that ALSA will make it into Linux kernel 2.6.x (or 3.x.x -- whichever comes first) as it becomes ready. 42It is anticipated that ALSA will make it into Linux kernel 2.6.x (or 3.x.x -- whichever comes first) as it becomes ready.
40</p> 43</p>
41 44
42<p> 45<p>
43ALSA provides audio and MIDI functionality for Linux. 46ALSA provides audio and MIDI functionality for Linux.
44</p> 47</p>
218There is no need to edit <path>/etc/modules.conf</path>. Instead, always edit files in <path>/etc/modules.d</path>. 221There is no need to edit <path>/etc/modules.conf</path>. Instead, always edit files in <path>/etc/modules.d</path>.
219</warn> 222</warn>
220<p> 223<p>
221Check the ALSA portion <e>at the bottom of the file</e>. 224Check the ALSA portion <e>at the bottom of the file</e>.
222By tweaking this line you can specify the max number of soundcards you have (generally, just one). 225By tweaking this line you can specify the max number of soundcards you have (generally, just one).
223</p> 226</p>
224<p> 227<p>
225<pre caption="At the bottom of /etc/modules.d/alsa"> 228<pre caption="At the bottom of /etc/modules.d/alsa">
226# Set this to the correct number of cards. 229# Set this to the correct number of cards.
227<c>options snd cards_limit=1</c> 230<c>options snd cards_limit=1</c>
228</pre> 231</pre>
229</p> 232</p>
230<p> 233<p>
231Now we'll specify the sounddriver(s) ALSA should use. In the same file, edit like this: 234Now we'll specify the sounddriver(s) ALSA should use. In the same file, edit like this:
232<pre caption="In /etc/modules.d/alsa"> 235<pre caption="In /etc/modules.d/alsa">
233## and then run `update-modules' command. 236## and then run `modules-update' command.
234## Read alsa-driver's INSTALL file in /usr/share/doc for more info. 237## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
235## 238##
236## ALSA portion 239## ALSA portion
237<c>alias snd-card-0 snd-emu10k1</c> 240<c>alias snd-card-0 snd-emu10k1</c>
238<c>## If you have more than one, add: 241<c>## If you have more than one, add:
239## alias snd-card-1 snd-intel8x0 242## alias snd-card-1 snd-intel8x0
240## alias snd-card-2 snd-ens1370</c> 243## alias snd-card-2 snd-ens1370</c>
241## OSS/Free portion 244## OSS/Free portion
242## alias sound-slot-0 snd-card-0 245## alias sound-slot-0 snd-card-0
243## alias sound-slot-1 snd-card-1 246## alias sound-slot-1 snd-card-1
244## 247##
245</pre> 248</pre>
246</p> 249</p>
247<p> 250<p>
248<note> 251<note>
249If you have more than one soundcard, adjust the <c>cards_limit</c> value and add more snd-card aliases to the file. 252If you have more than one soundcard, adjust the <c>cards_limit</c> value and add more snd-card aliases to the file.
250I don't have experience with this, but you can find examples for configurations with two or more soundcards in 253I don't have experience with this, but you can find examples for configurations with two or more soundcards in
251<uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/c1660.htm">Chapter 6</uri> 254<uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/c1660.htm">Chapter 6</uri>
252of the <uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/alsa-howto.html">ALSA Howto</uri>. 255of the <uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/alsa-howto.html">ALSA Howto</uri>.
253</note> 256</note>
254</p> 257</p>
255<p> 258<p>
256Last thing to do in this file, almost at the end, check if these lines are there and uncommented: 259Last thing to do in this file, almost at the end, check if these lines are there and uncommented:
257<pre caption="Near the end of /etc/modules.d/alsa"> 260<pre caption="Near the end of /etc/modules.d/alsa">
258alias /dev/mixer snd-mixer-oss 261alias /dev/mixer snd-mixer-oss
259alias /dev/dsp snd-pcm-oss 262alias /dev/dsp snd-pcm-oss
260alias /dev/midi snd-seq-oss 263alias /dev/midi snd-seq-oss
261</pre> 264</pre>
262</p> 265</p>
263<p> 266<p>
264Now double-check the file <path>/etc/modules.d/alsa</path> and when you're sure everyting is ok, run <c>update-modules</c>. 267Now double-check the file <path>/etc/modules.d/alsa</path> and when you're sure everyting is ok, run <c>modules-update</c>.
265<pre>
266# <c>update-modules</c>
267</pre> 268<pre>
269# <i>modules-update</i>
268</p> 270</pre>
271</p>
269<note> 272<note>
270Running <c>update-modules</c> here will insert the data from <path>/etc/modules.d/alsa</path> into <path>/etc/modules.conf</path> 273Running <c>modules-update</c> here will insert the data from <path>/etc/modules.d/alsa</path> into <path>/etc/modules.conf</path>
271</note> 274</note>
272<p> 275<p>
273You should also verify that /etc/devfsd.conf has the alsa devices and permissions correctly registered. 276You should also verify that /etc/devfsd.conf has the alsa devices and permissions correctly registered.
274</p> 277</p>
275<pre caption="/etc/devfsd.conf"> 278<pre caption="/etc/devfsd.conf">
276# ALSA/OSS stuff 279# ALSA/OSS stuff
277# Comment/change these if you want to change the permissions on 280# Comment/change these if you want to change the permissions on
278# the audio devices 281# the audio devices
279LOOKUP snd MODLOAD ACTION snd 282LOOKUP snd MODLOAD ACTION snd
280LOOKUP dsp MODLOAD 283LOOKUP dsp MODLOAD
281LOOKUP mixer MODLOAD 284LOOKUP mixer MODLOAD
282LOOKUP midi MODLOAD 285LOOKUP midi MODLOAD
283REGISTER sound/.* PERMISSIONS root.audio 660 286REGISTER sound/.* PERMISSIONS root.audio 660
284REGISTER snd/.* PERMISSIONS root.audio 660 287REGISTER snd/.* PERMISSIONS root.audio 660
285</pre> 288</pre>

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20