/[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.64 Revision 1.69
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.64 2006/01/01 11:51:43 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.69 2006/07/07 14:40:08 rane 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.14</version>
22<date>2005-09-10</date> 22<date>2006-07-06</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>
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
806directory after you unmerge <c>alsa-driver</c>. Be sure to remove the correct 783directory after you unmerge <c>alsa-driver</c>. Be sure to remove the correct
807kernel version and not the current one! 784kernel version and not the current one!
808</p> 785</p>
809 786
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>
812# <i>rm -rf /lib/modules/KERNELVER/alsa-driver</i> 788# <i>rm -rf /lib/modules/$(uname -r)/alsa-driver</i>
789</pre>
790
791<p>
792Another reason for error messages similar to the ones above could be a file in
793<path>/etc/modules.d</path> supplying a <c>device_mode</c> parameter when it
794isn't required. Confirm that this is indeed the issue and find out which file
795is the culprit.
813</pre> 796</p>
797
798<pre caption="Confirming and searching for device_mode">
799<comment>(Check dmesg to confirm)</comment>
800# <i>dmesg | grep device_mode</i>
801snd: Unknown parameter `device_mode'
802<comment>(Now, to get to the source of the issue)</comment>
803# <i>grep device_mode /etc/modules.d/*</i>
804</pre>
805
806<p>
807Usually it is a file called <path>alsa</path> with the line <c>options snd
808device_mode=0666</c>. Remove this line and restart the alsasound service and
809that should take care of this issue.
810</p>
814 811
815</body> 812</body>
816</section> 813</section>
817</chapter> 814</chapter>
818 815

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20