| 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.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> |
| … | |
… | |
| 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> |
|
|
| 608 | The irritating way to check your soundcard is to see if you can hear static on |
|
|
| 609 | the speakers. This isn't exactly fun, but hey, it tells you the card is |
|
|
| 610 | configured 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 |
|
|
| 619 | automatically 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" |
|
|
| 621 | error. |
|
|
| 622 | </note> |
|
|
| 623 | |
|
|
| 624 | <p> |
|
|
| 625 | You should hear static. Press <c>Ctrl + C</c> to stop. If you don't hear |
|
|
| 626 | anything, now is a good time to go back and check/trace out the issue and |
|
|
| 627 | rectify it. |
|
|
| 628 | </p> |
|
|
| 629 | |
606 | |
| 630 | <p> |
607 | <p> |
| 631 | Finally. Some music. If everything above is perfect, you should now be able to |
608 | Finally. Some music. If everything above is perfect, you should now be able to |
| 632 | listen to some good music. A quick way to test is to use a command line tool |
609 | listen to some good music. A quick way to test is to use a command line tool |
| 633 | like <c>media-sound/madplay</c>. You could also use something more well known |
610 | like <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> |
|
|
793 | Another 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 |
|
|
795 | isn't required. Confirm that this is indeed the issue and find out which file |
|
|
796 | is 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> |
|
|
802 | snd: 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> |
|
|
808 | Usually it is a file called <path>alsa</path> with the line <c>options snd |
|
|
809 | device_mode=0666</c>. Remove this line and restart the alsasound service and |
|
|
810 | that 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> |