/[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.82 Revision 1.83
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.82 2009/01/26 09:13:56 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.83 2009/08/05 15:43:12 nightmorph Exp $ -->
3 3
4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5 5
6<guide link="/doc/en/alsa-guide.xml"> 6<guide link="/doc/en/alsa-guide.xml">
7<title>Gentoo Linux ALSA Guide</title> 7<title>Gentoo Linux ALSA Guide</title>
22 22
23<!-- The content of this document is licensed under the CC-BY-SA license --> 23<!-- The content of this document is licensed under the CC-BY-SA license -->
24<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 24<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
25<license/> 25<license/>
26 26
27<version>2.24</version> 27<version>2.25</version>
28<date>2009-01-26</date> 28<date>2009-08-05</date>
29 29
30<chapter> 30<chapter>
31<title>Introduction</title> 31<title>Introduction</title>
32<section> 32<section>
33<title>What is ALSA?</title> 33<title>What is ALSA?</title>
293 293
294<p> 294<p>
295You will now see a neat menu guided interface that will automatically probe 295You will now see a neat menu guided interface that will automatically probe
296your devices and try to find out your sound card. You will be asked to pick 296your devices and try to find out your sound card. You will be asked to pick
297your sound card from a list. Once that's done, it will ask you permission to 297your sound card from a list. Once that's done, it will ask you permission to
298automatically make required changes to <path>/etc/modules.d/alsa</path>. 298automatically make required changes to <path>/etc/modprobe.d/alsa.conf</path>.
299It will then adjust your volume settings to optimum levels, run 299It will then adjust your volume settings to optimum levels, run
300<c>update-modules</c> and start the <path>/etc/init.d/alsasound</path> service. 300<c>update-modules</c> and start the <path>/etc/init.d/alsasound</path> service.
301Once <c>alsaconf</c> exits, you can proceed with setting up the ALSA 301Once <c>alsaconf</c> exits, you can proceed with setting up the ALSA
302initscript. 302initscript.
303</p> 303</p>
615# <i>rm -rf /lib/modules/$(uname -r)/alsa-driver</i> 615# <i>rm -rf /lib/modules/$(uname -r)/alsa-driver</i>
616</pre> 616</pre>
617 617
618<p> 618<p>
619Another reason for error messages similar to the ones above could be a file in 619Another reason for error messages similar to the ones above could be a file in
620<path>/etc/modules.d</path> supplying a <c>device_mode</c> parameter when it 620<path>/etc/modprobe.d</path> supplying a <c>device_mode</c> parameter when it
621isn't required. Confirm that this is indeed the issue and find out which file 621isn't required. Confirm that this is indeed the issue and find out which file
622is the culprit. 622is the culprit.
623</p> 623</p>
624 624
625<pre caption="Confirming and searching for device_mode"> 625<pre caption="Confirming and searching for device_mode">
626<comment>(Check dmesg to confirm)</comment> 626<comment>(Check dmesg to confirm)</comment>
627# <i>dmesg | grep device_mode</i> 627# <i>dmesg | grep device_mode</i>
628snd: Unknown parameter `device_mode' 628snd: Unknown parameter `device_mode'
629<comment>(Now, to get to the source of the issue)</comment> 629<comment>(Now, to get to the source of the issue)</comment>
630# <i>grep device_mode /etc/modules.d/*</i> 630# <i>grep device_mode /etc/modprobe.d/*</i>
631</pre> 631</pre>
632 632
633<p> 633<p>
634Usually it is a file called <path>alsa</path> with the line <c>options snd 634Usually it is a file called <path>alsa</path> with the line <c>options snd
635device_mode=0666</c>. Remove this line and restart the <c>alsasound</c> service 635device_mode=0666</c>. Remove this line and restart the <c>alsasound</c> service
781<body> 781<body>
782 782
783<p> 783<p>
784You can have more than one sound card in your system simultaneously, provided 784You can have more than one sound card in your system simultaneously, provided
785that you have built ALSA as modules in your kernel. You just need to specify 785that you have built ALSA as modules in your kernel. You just need to specify
786which should be started first in <path>/etc/modules.d/alsa</path>. Your cards 786which should be started first in <path>/etc/modprobe.d/alsa.conf</path>. Your cards
787are identified by their driver names inside this file. 0 is the first card, 1 is 787are identified by their driver names inside this file. 0 is the first card, 1 is
788the second, and so on. Here's an example for a system with two sound cards. 788the second, and so on. Here's an example for a system with two sound cards.
789</p> 789</p>
790 790
791<pre caption="Two sound cards in /etc/modules.d/alsa"> 791<pre caption="Two sound cards in /etc/modprobe.d/alsa.conf">
792options snd-emu10k1 index=0 792options snd-emu10k1 index=0
793options snd-via82xx index=1 793options snd-via82xx index=1
794</pre> 794</pre>
795 795
796<p> 796<p>
797Or, if you have two cards that use the same driver, you specify them on the same 797Or, if you have two cards that use the same driver, you specify them on the same
798line, using comma-separated numbers. Here's an example for a system with three 798line, using comma-separated numbers. Here's an example for a system with three
799sound cards, two of which are the same Intel High Definition Audio card. 799sound cards, two of which are the same Intel High Definition Audio card.
800</p> 800</p>
801 801
802<pre caption="Multiple sound cards in /etc/modules.d/alsa"> 802<pre caption="Multiple sound cards in /etc/modprobe.d/alsa.conf">
803options snd-ymfpci index=0 803options snd-ymfpci index=0
804options snd-hda-intel index=1,2 804options snd-hda-intel index=1,2
805</pre> 805</pre>
806 806
807</body> 807</body>

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

  ViewVC Help
Powered by ViewVC 1.1.20