/[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.11 Revision 1.12
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3 3
4<guide link = "/doc/en/alsa-guide.xml"> 4<guide link = "/doc/en/alsa-guide.xml">
5<title>Gentoo Linux ALSA Guide</title> 5<title>Gentoo Linux ALSA Guide</title>
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>
18<author title="Editor"><mail link="swift@gentoo.org">
19 Sven Vermeulen</mail>
17</author> 20</author>
18 21
19<license/> 22<license/>
20 23
21<abstract> 24<abstract>
22This guide will show you how to set up the Advanced Linux Sound Architecture (ALSA) on Gentoo Linux. 25This guide will show you how to set up the Advanced Linux Sound Architecture (ALSA) on Gentoo Linux.
23In addition to the Gentoo Linux Desktop Configuration Guide, this guide is supposed to give you more information on this subject. </abstract> 26In addition to the Gentoo Linux Desktop Configuration Guide, this guide is supposed to give you more information on this subject. </abstract>
24 27
25<version>1.2</version> 28<version>1.2</version>
26<date>5 June 2003</date> 29<date>5 June 2003</date>
27 30
28<chapter> 31<chapter>
29<title>Introduction</title> 32<title>Introduction</title>
30<section> 33<section>
31 <title>What is ALSA?</title> 34 <title>What is ALSA?</title>
185wrapper. </note> 188wrapper. </note>
186 189
187</p> 190</p>
188<p> 191<p>
189After this, the ALSA modules should be installed on your system. 192After this, the ALSA modules should be installed on your system.
190</p> 193</p>
191</body> 194</body>
192</section> 195</section>
193<section> 196<section>
194 <title>Configuration of ALSA</title> 197 <title>Configuration of ALSA</title>
195<body> 198<body>
196<p> 199<p>
197Let's start configuring now to get ALSA working properly. 200Let's start configuring now to get ALSA working properly.
198We'll need to edit some files, to let our system know about the freshly installed ALSA modules. 201We'll need to edit some files, to let our system know about the freshly installed ALSA modules.
199</p> 202</p>
203
204<p>
205First, install <c>alsa-utils</c> on your system:
200<p> 206</p>
207
208<pre caption = "Emerging alsa-utils">
209# <i>emerge alsa-utils</i>
210</pre>
211
212<p>
201First file to edit is <path>/etc/modules.d/alsa</path>. 213Hereafter, we need to edit <path>/etc/modules.d/alsa</path>.
202</p> 214</p>
203<warn> 215<warn>
204There is no need to edit <path>/etc/modules.conf</path>. Instead, always edit files in <path>/etc/modules.d</path>. 216There is no need to edit <path>/etc/modules.conf</path>. Instead, always edit files in <path>/etc/modules.d</path>.
205</warn> 217</warn>
206<p> 218<p>
207Check the ALSA portion <e>at the bottom of the file</e>. 219Check the ALSA portion <e>at the bottom of the file</e>.
208By tweaking this line you can specify the max number of soundcards you have (generally, just one). 220By tweaking this line you can specify the max number of soundcards you have (generally, just one).
209</p> 221</p>
210<p> 222<p>
211<pre caption="At the bottom of /etc/modules.d/alsa"> 223<pre caption="At the bottom of /etc/modules.d/alsa">
212# Set this to the correct number of cards. 224# Set this to the correct number of cards.
213<c>options snd cards_limit=1</c> 225<c>options snd cards_limit=1</c>
214</pre> 226</pre>
215</p> 227</p>
216<p> 228<p>
290<warn>Note that the alsasound script should be added to the "boot" runlevel, not the "default" runlevel.</warn> 302<warn>Note that the alsasound script should be added to the "boot" runlevel, not the "default" runlevel.</warn>
291</p> 303</p>
292</body> 304</body>
293</section> 305</section>
294<section> 306<section>
295 <title>Running and unmuting</title> 307 <title>Running and unmuting</title>
296<body> 308<body>
297<p> 309<p>
298Since we're Linux users, we don't want to reboot. So we'll start the alsasound script manually. 310Since we're Linux users, we don't want to reboot. So we'll start the alsasound script manually.
299</p> 311</p>
300<pre> 312<pre>
301# <c>/etc/init.d/alsasound start</c> 313# <c>/etc/init.d/alsasound start</c>
302</pre> 314</pre>
303<p> 315<p>
304ALSA is running now. If everything is ok, you should be able to see the ALSA modules loaded when running <c>lsmod</c>. 316ALSA is running now. If everything is ok, you should be able to see the ALSA modules loaded when running <c>lsmod</c>.
305However, sound won't work yet, because the channels are still muted. We need <c>alsa-utils</c> for this. 317However, sound won't work yet, because the channels are still muted. We need <c>amixer</c> for this.
306</p> 318</p>
307<pre> 319<pre caption = "Running amixer">
308# <c>emerge alsa-utils</c>
309# <c>amixer</c> 320# <i>amixer</i>
310</pre> 321</pre>
311<p> 322<p>
312<warn> 323<warn>
313You shouldn't get this, but <e>if</e> you get an error about "amixer: Mixer attach default error: No such file or directory", you should manually insmod 324You shouldn't get this, but <e>if</e> you get an error about "amixer: Mixer attach default error: No such file or directory", you should manually insmod
314<c>snd-mixer-oss</c> and <c>snd-pcm-oss</c> once. After that run amixer again. 325<c>snd-mixer-oss</c> and <c>snd-pcm-oss</c> once. After that run amixer again.
315</warn> 326</warn>
316</p> 327</p>
317<pre caption="only if you get an error when running amixer"> 328<pre caption="only if you get an error when running amixer">
318# <c>insmod snd-mixer-oss</c> 329# <c>insmod snd-mixer-oss</c>
319# <c>insmod snd-pcm-oss</c> 330# <c>insmod snd-pcm-oss</c>
320# <c>amixer</c> 331# <c>amixer</c>
321</pre> 332</pre>
322<p> 333<p>
323If you got this far, now unmute both Master and PCM channels. 334If you got this far, now unmute both Master and PCM channels.
324</p> 335</p>

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20