| 1 | <?xml version='1.0' encoding="UTF-8"?> |
1 | <?xml version='1.0' encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.21 2003/11/23 16:30:50 swift Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.25 2004/02/19 14:28:12 swift Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide link = "/doc/en/alsa-guide.xml"> |
5 | <guide link = "/doc/en/alsa-guide.xml"> |
| 6 | <title>Gentoo Linux ALSA Guide</title> |
6 | <title>Gentoo Linux ALSA Guide</title> |
| 7 | <author title="Author"> |
7 | <author title="Author"> |
| … | |
… | |
| 24 | </author> |
24 | </author> |
| 25 | <author title="Editor"> |
25 | <author title="Editor"> |
| 26 | <mail link="blubber@gentoo.org">Tiemo Kieft</mail> |
26 | <mail link="blubber@gentoo.org">Tiemo Kieft</mail> |
| 27 | </author> |
27 | </author> |
| 28 | |
28 | |
| 29 | <license/> |
|
|
| 30 | |
|
|
| 31 | <abstract> |
29 | <abstract> |
| 32 | This guide will show you how to set up the Advanced Linux Sound Architecture |
30 | This guide will show you how to set up the Advanced Linux Sound Architecture |
| 33 | (ALSA) on Gentoo Linux. In addition to the Gentoo Linux Desktop Configuration |
31 | (ALSA) on Gentoo Linux. In addition to the Gentoo Linux Desktop Configuration |
| 34 | Guide, this guide is supposed to give you more information on this subject. |
32 | Guide, this guide is supposed to give you more information on this subject. |
| 35 | </abstract> |
33 | </abstract> |
| 36 | |
34 | |
|
|
35 | <license/> |
|
|
36 | |
| 37 | <version>1.3.4</version> |
37 | <version>1.3.5</version> |
| 38 | <date>November 23, 2003</date> |
38 | <date>December 31, 2003</date> |
| 39 | |
39 | |
| 40 | <chapter> |
40 | <chapter> |
| 41 | <title>Introduction</title> |
41 | <title>Introduction</title> |
| 42 | <section> |
42 | <section> |
| 43 | <title>What is ALSA?</title> |
43 | <title>What is ALSA?</title> |
| … | |
… | |
| 96 | link="http://www.tldp.org/HOWTO/Sound-HOWTO/index.html">Linux Sound HOWTO</uri>. |
96 | link="http://www.tldp.org/HOWTO/Sound-HOWTO/index.html">Linux Sound HOWTO</uri>. |
| 97 | </p> |
97 | </p> |
| 98 | |
98 | |
| 99 | <p> |
99 | <p> |
| 100 | However, those OSS/4Front drivers have some limitations -- being commercial is |
100 | However, those OSS/4Front drivers have some limitations -- being commercial is |
| 101 | one. ALSA is an attempt to go beyond these limitations and to do so in an open |
101 | one. ALSA is an attempt to go beyond these limitations and to do so in an |
| 102 | source fashion. ALSA is a fully GPL and LGPL'ed sound driver system, that |
102 | open-source fashion. ALSA is a fully GPL and LGPL'ed sound driver system, that |
| 103 | provides a professional quality system for recording, playback, and MIDI |
103 | provides a professional quality system for recording, playback, and MIDI |
| 104 | sequencing. |
104 | sequencing. |
| 105 | </p> |
105 | </p> |
| 106 | |
106 | |
| 107 | </body> |
107 | </body> |
| … | |
… | |
| 395 | |
395 | |
| 396 | <p> |
396 | <p> |
| 397 | First thing to do now, is to make ALSA startup at boottime. Like this: |
397 | First thing to do now, is to make ALSA startup at boottime. Like this: |
| 398 | </p> |
398 | </p> |
| 399 | |
399 | |
| 400 | <pre caption="Add ALSA to the default runlevel"> |
400 | <pre caption="Add ALSA to the boot runlevel"> |
| 401 | # <i>rc-update add alsasound boot</i> |
401 | # <i>rc-update add alsasound boot</i> |
| 402 | </pre> |
402 | </pre> |
| 403 | |
403 | |
| 404 | <warn> |
404 | <warn> |
| 405 | Note that the alsasound script should be added to the "boot" runlevel, not the |
405 | Note that the alsasound script should be added to the "boot" runlevel, not the |
| … | |
… | |
| 422 | </pre> |
422 | </pre> |
| 423 | |
423 | |
| 424 | <p> |
424 | <p> |
| 425 | ALSA is running now. If everything is ok, you should be able to see the ALSA |
425 | ALSA is running now. If everything is ok, you should be able to see the ALSA |
| 426 | modules loaded when running <c>lsmod</c>. However, sound won't work yet, |
426 | modules loaded when running <c>lsmod</c>. However, sound won't work yet, |
| 427 | because the channels are still muted. We need <c>amixer</c> for this. |
427 | because the channels are still muted. We need <c>amixer</c> to fix this. |
| 428 | </p> |
428 | </p> |
| 429 | |
429 | |
| 430 | <pre caption = "Running amixer"> |
430 | <pre caption = "Running amixer"> |
| 431 | # <i>amixer</i> |
431 | # <i>amixer</i> |
| 432 | </pre> |
432 | </pre> |
| … | |
… | |
| 470 | You may want to emerge <c>alsa-xmms</c> as that will provide ALSA support for |
470 | You may want to emerge <c>alsa-xmms</c> as that will provide ALSA support for |
| 471 | XMMS. |
471 | XMMS. |
| 472 | </p> |
472 | </p> |
| 473 | |
473 | |
| 474 | <p> |
474 | <p> |
| 475 | When you reboot your system, the <c>alsasound</c> init script will properly saveand restore your volume settings. |
475 | When you reboot your system, the <c>alsasound</c> init script will |
|
|
476 | properly save and restore your volume settings. |
| 476 | </p> |
477 | </p> |
| 477 | |
478 | |
| 478 | </body> |
479 | </body> |
| 479 | </section> |
480 | </section> |
| 480 | </chapter> |
481 | </chapter> |
| 481 | |
482 | |
| 482 | <chapter> |
483 | <chapter> |
| 483 | <title>Final Notes</title> |
484 | <title>Final Notes</title> |
| 484 | <section> |
485 | <section> |
| 485 | <title>After kernel-upgrades..</title> |
486 | <title>After kernel-upgrades...</title> |
| 486 | <body> |
487 | <body> |
| 487 | |
488 | |
| 488 | <p> |
489 | <p> |
| 489 | When you ever rebuild your kernel, or upgrade to another kernel, you'll have to |
490 | When you ever rebuild your kernel, or upgrade to another kernel, you'll have to |
| 490 | rebuild the ALSA modules. |
491 | rebuild the ALSA modules. |
| 491 | </p> |
492 | </p> |
| 492 | |
493 | |
| 493 | <p> |
494 | <p> |
| 494 | Although you might have installed <c>alsa-driver</c>, <c>alsa-libs</c> and |
495 | Although you might have installed <c>alsa-driver</c>, <c>alsa-lib</c> and |
| 495 | <c>alsa-utils</c>, only the first will have to be installed again, since it will |
496 | <c>alsa-utils</c>, only the first will have to be installed again, since it will |
| 496 | put the alsa modules in <path>/lib/modules/*/kernel/sound/pci/</path>. |
497 | put the alsa modules in <path>/lib/modules/*/kernel/sound/pci/</path>. |
| 497 | </p> |
498 | </p> |
| 498 | |
499 | |
| 499 | <pre caption="needed after each kernel compile"> |
500 | <pre caption="Needed after each kernel compile"> |
| 500 | # <i>emerge alsa-driver</i> |
501 | # <i>emerge alsa-driver</i> |
| 501 | </pre> |
502 | </pre> |
| 502 | |
503 | |
| 503 | </body> |
504 | </body> |
| 504 | </section> |
505 | </section> |
| … | |
… | |
| 577 | </pre> |
578 | </pre> |
| 578 | |
579 | |
| 579 | </body> |
580 | </body> |
| 580 | </section> |
581 | </section> |
| 581 | <section> |
582 | <section> |
| 582 | <title>More links..</title> |
583 | <title>More links...</title> |
| 583 | <body> |
584 | <body> |
| 584 | |
585 | |
| 585 | <p> |
586 | <p> |
| 586 | You could check these for additional info: |
587 | You could check these for additional info: |
| 587 | </p> |
588 | </p> |