/[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.63 Revision 1.66
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.63 2005/10/30 16:02:55 fox2mike Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.66 2006/05/01 05:52:31 fox2mike 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>
16 16
17<!-- The content of this document is licensed under the CC-BY-SA license --> 17<!-- The content of this document is licensed under the CC-BY-SA license -->
18<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 18<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
19<license/> 19<license/>
20 20
21<version>2.10</version> 21<version>2.12</version>
22<date>2005-09-10</date> 22<date>2006-05-01</date>
23 23
24<chapter> 24<chapter>
25<title>Introduction</title> 25<title>Introduction</title>
26<section> 26<section>
27<title>What is ALSA?</title> 27<title>What is ALSA?</title>
83 <li> 83 <li>
84 Use Gentoo's <c>media-sound/alsa-driver</c> package. 84 Use Gentoo's <c>media-sound/alsa-driver</c> package.
85 </li> 85 </li>
86</ol> 86</ol>
87 87
88<p> 88<p>
89We shall take a peek into both before finally deciding on one. 89We shall take a peek into both before finally deciding on one.
90</p> 90</p>
91 91
92<p> 92<p>
93If you were to use ALSA provided by the kernel, the following are the pros and 93If you were to use ALSA provided by the kernel, the following are the pros and
520<comment>(ALSA as modules)</comment> 520<comment>(ALSA as modules)</comment>
521# <i>/etc/init.d/alsasound start</i> 521# <i>/etc/init.d/alsasound start</i>
522 * Loading ALSA modules ... 522 * Loading ALSA modules ...
523 * Loading: snd-card-0 ... [ ok ] 523 * Loading: snd-card-0 ... [ ok ]
524 * Loading: snd-pcm-oss ... [ ok ] 524 * Loading: snd-pcm-oss ... [ ok ]
525 * Loading: snd-seq ... [ ok ] 525 * Loading: snd-seq ... [ ok ]
526 * Loading: snd-emu10k1-synth ... [ ok ] 526 * Loading: snd-emu10k1-synth ... [ ok ]
527 * Loading: snd-seq-midi ... [ ok ] 527 * Loading: snd-seq-midi ... [ ok ]
528 * Restoring Mixer Levels ... [ ok ] 528 * Restoring Mixer Levels ... [ ok ]
529<comment>(ALSA compiled in)</comment> 529<comment>(ALSA compiled in)</comment>
530# <i>/etc/init.d/alsasound start</i> 530# <i>/etc/init.d/alsasound start</i>
531 * Loading ALSA modules ... 531 * Loading ALSA modules ...
532 * Restoring Mixer Levels ... [ ok ] 532 * Restoring Mixer Levels ... [ ok ]
601</body> 601</body>
602</section> 602</section>
603<section> 603<section>
604<title>Sound Check!</title> 604<title>Sound Check!</title>
605<body> 605<body>
606
607<p>
608The irritating way to check your soundcard is to see if you can hear static on
609the speakers. This isn't exactly fun, but hey, it tells you the card is
610configured and working.
611</p>
612
613<pre caption="Bring on the static">
614# <i>cat /dev/urandom > /dev/dsp</i>
615</pre>
616
617<note>
618<path>/dev/dsp</path> is a symlink to <path>/dev/sound/dsp</path> and should be
619automatically created. Try re-directing the output to
620<path>/dev/sound/dsp</path> in case you don't get a "No such file or directory"
621error.
622</note>
623
624<p>
625You should hear static. Press <c>Ctrl + C</c> to stop. If you don't hear
626anything, now is a good time to go back and check/trace out the issue and
627rectify it.
628</p>
629 606
630<p> 607<p>
631Finally. Some music. If everything above is perfect, you should now be able to 608Finally. Some music. If everything above is perfect, you should now be able to
632listen to some good music. A quick way to test is to use a command line tool 609listen to some good music. A quick way to test is to use a command line tool
633like <c>media-sound/madplay</c>. You could also use something more well known 610like <c>media-sound/madplay</c>. You could also use something more well known
810<pre caption="Removing the alsa-driver modules"> 787<pre caption="Removing the alsa-driver modules">
811<comment>(Replace KERNELVER with your kernel version)</comment> 788<comment>(Replace KERNELVER with your kernel version)</comment>
812# <i>rm -rf /lib/modules/KERNELVER/alsa-driver</i> 789# <i>rm -rf /lib/modules/KERNELVER/alsa-driver</i>
813</pre> 790</pre>
814 791
792<p>
793Another reason for error messages similar to the ones above could be a file in
794<path>/etc/modules.d</path> supplying a <c>device_node</c> parameter when it
795isn't required. Confirm that this is indeed the issue and find out which file
796is the culprit.
797</p>
798
799<pre caption="Confirming and searching for device_node">
800<comment>(Check dmesg to confirm)</comment>
801# <i>dmesg | grep device_mode</i>
802snd: Unknown parameter `device_mode'
803<comment>(Now, to get to the source of the issue)</comment>
804# <i>grep device_mode /etc/modules.d/*</i>
805</pre>
806
807<p>
808Usually it is a file called <path>alsa</path> with the line <c>options snd
809device_mode=0666</c>. Remove this line and restart the alsasound service and
810that should take care of this issue.
811</p>
812
815</body> 813</body>
816</section> 814</section>
817</chapter> 815</chapter>
818 816
819<chapter> 817<chapter>

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20