/[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.65
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.65 2006/03/25 06:59:01 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>
8 8
9<author title="Author"> 9<author title="Author">
10 <mail link="fox2mike@gentoo.org">Shyam Mani</mail> 10 <mail link="fox2mike@gentoo.org">Shyam Mani</mail>
11</author> 11</author>
12 12
13<abstract> 13<abstract>
14This document helps a user setup ALSA on Gentoo Linux. 14This document helps a user setup ALSA on Gentoo Linux.
15</abstract> 15</abstract>
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.11</version>
22<date>2005-09-10</date> 22<date>2006-03-25</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>
28<body> 28<body>
29 29
30<p> 30<p>
31ALSA, which stands for <e>Advanced Linux Sound Architecture</e>, provides 31ALSA, which stands for <e>Advanced Linux Sound Architecture</e>, provides
32audio and MIDI (<e>Musical Instrument Digital Interface</e>) functionality to 32audio and MIDI (<e>Musical Instrument Digital Interface</e>) functionality to
33the Linux operating system. ALSA is the default sound subsystem in the 2.6 33the Linux operating system. ALSA is the default sound subsystem in the 2.6
34kernel thereby replacing OSS (<e>Open Sound System</e>), which was used in the 34kernel thereby replacing OSS (<e>Open Sound System</e>), which was used in the
352.4 kernels. 352.4 kernels.
36</p> 36</p>
37 37
591</note> 591</note>
592 592
593<p> 593<p>
594After you're all done, your ALSA Mixer should look similar to the one below. 594After you're all done, your ALSA Mixer should look similar to the one below.
595Note the 00 instead of the MM and also the volume levels for some optimum 595Note the 00 instead of the MM and also the volume levels for some optimum
596settings. 596settings.
597</p> 597</p>
598 598
599<figure link="/images/docs/alsa-mixerunmuted.png" short="AlsaMixer Unmuted" caption="Alsa Mixer ready to roll"/> 599<figure link="/images/docs/alsa-mixerunmuted.png" short="AlsaMixer Unmuted" caption="Alsa Mixer ready to roll"/>
600 600
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
634like <c>mpg123</c> or <c>xmms</c>. If you are an ogg fan, you could use 611like <c>mpg123</c> or <c>xmms</c>. If you are an ogg fan, you could use
635<c>ogg123</c> provided by <c>media-sound/vorbis-tools</c>. Use any player you 612<c>ogg123</c> provided by <c>media-sound/vorbis-tools</c>. Use any player you
636are comfortable with. As always, <c>emerge</c> what you need. 613are comfortable with. As always, <c>emerge</c> what you need.
637</p> 614</p>
638 615
639<pre caption="Getting the software"> 616<pre caption="Getting the software">
640<comment>(Install the applications you want)</comment> 617<comment>(Install the applications you want)</comment>
641# <i>emerge madplay mpg123 xmms</i> 618# <i>emerge madplay mpg123 xmms</i>
642<comment>(To play .ogg files)</comment> 619<comment>(To play .ogg files)</comment>
643# <i>emerge vorbis-tools</i> 620# <i>emerge vorbis-tools</i>

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

  ViewVC Help
Powered by ViewVC 1.1.20