Gentoo Archives: gentoo-doc-cvs

From: Shyam Mani <fox2mike@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: alsa-guide.xml
Date: Tue, 12 Jul 2005 19:18:10
Message-Id: 200507121917.j6CJH19a021805@robin.gentoo.org
1 fox2mike 05/07/12 19:17:38
2
3 Modified: xml/htdocs/doc/en alsa-guide.xml
4 Log:
5 #95574, #98429 - Updates + Fixes to the guide. Added sections on the Audio Group and more info regarding USB + ISA sound cards. #92711 went to RESO FIXED, so genkernel information was updated to reflect the corresponding changes. Thanks to Daniel Drake(dsd), Arun Raghavan (for ISA input), Miles Lubin, Jason Bucata, Deathwing00, alin, rane, LinuxBlues on IRC for helping with proofing and corrections.
6
7 Revision Changes Path
8 1.54 +136 -38 xml/htdocs/doc/en/alsa-guide.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/alsa-guide.xml?rev=1.54&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/alsa-guide.xml?rev=1.54&content-type=text/plain&cvsroot=gentoo
12 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/alsa-guide.xml.diff?r1=1.53&r2=1.54&cvsroot=gentoo
13
14 Index: alsa-guide.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v
17 retrieving revision 1.53
18 retrieving revision 1.54
19 diff -u -r1.53 -r1.54
20 --- alsa-guide.xml 8 Jun 2005 19:54:07 -0000 1.53
21 +++ alsa-guide.xml 12 Jul 2005 19:17:38 -0000 1.54
22 @@ -1,5 +1,5 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.53 2005/06/08 19:54:07 fox2mike Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.54 2005/07/12 19:17:38 fox2mike Exp $ -->
26
27 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
28
29 @@ -15,11 +15,11 @@
30 </abstract>
31
32 <!-- The content of this document is licensed under the CC-BY-SA license -->
33 -<!-- See http://creativecommons.org/licenses/by-sa/2.0 -->
34 +<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
35 <license/>
36
37 -<version>2.2</version>
38 -<date>2005-06-09</date>
39 +<version>2.3</version>
40 +<date>2005-07-12</date>
41
42 <chapter>
43 <title>Introduction</title>
44 @@ -71,13 +71,6 @@
45 in your kernel and use <c>media-sound/alsa-driver</c>. It <e>will</e> fail.
46 </warn>
47
48 -<impo>
49 -<c>genkernel</c> users have their config built such a way that the ALSA
50 -sub-system in the kernel is active. Therefore <c>genkernel</c> users can
51 -proceed to the <uri link="#alsa-utilities">ALSA Utilities</uri> section
52 -directly.
53 -</impo>
54 -
55 <p>
56 The two options are :
57 </p>
58 @@ -164,10 +157,37 @@
59
60 <p>
61 Whichever method of install you choose, you need to know what drivers your
62 -sound card uses. <c>lspci</c> will help you in digging out the required
63 -information. Please <c>emerge sys-apps/pciutils</c> to get <c>lspci</c>, if
64 -you don't have it installed already. We now proceed to find out details about
65 -the sound card.
66 +sound card uses. In most cases, sound cards (onboard and otherwise) are PCI
67 +based and <c>lspci</c> will help you in digging out the required information.
68 +Please <c>emerge sys-apps/pciutils</c> to get <c>lspci</c>, if you don't have it
69 +installed already. In case you have a USB sound card, <c>lsusb</c> from
70 +<c>sys-apps/usbutils</c> <e>might</e> be of help. For ISA cards, try using
71 +<c>sys-apps/isapnptools</c>. Also, the following pages <e>may</e> help users
72 +with ISA based sound cards.
73 +</p>
74 +
75 +<ul>
76 + <li>
77 + <uri link="http://www.roestock.demon.co.uk/isapnptools/">The ISAPNPTOOLS
78 + Page</uri>
79 + </li>
80 + <li>
81 + <uri link="http://www2.linuxjournal.com/article/3269">LinuxJournal PnP
82 + Article</uri>
83 + </li>
84 + <li>
85 + <uri link="http://www.tldp.org/HOWTO/Sound-HOWTO/x320.html">TLDP Sound
86 + HowTo</uri>
87 + </li>
88 +</ul>
89 +
90 +<note>
91 +For ease of use/explanation, we assume the user has a PCI based sound card for
92 +the remainder of this guide.
93 +</note>
94 +
95 +<p>
96 +We now proceed to find out details about the sound card.
97 </p>
98
99 <pre caption="Soundcard Details">
100 @@ -208,6 +228,11 @@
101 Let us now configure the kernel to enable ALSA.
102 </p>
103
104 +<impo>
105 +<c>genkernel</c> users should now run <c>genkernel --menuconfig</c> and then follow
106 +the instructions in <uri link="#doc_chap2_pre3">Kernel Options for ALSA</uri>.
107 +</impo>
108 +
109 <pre caption="Heading over to the source">
110 # <i>cd /usr/src/linux</i>
111 # <i>make menuconfig</i>
112 @@ -223,13 +248,14 @@
113 kernel to ensure proper ALSA support for our sound card.
114 </p>
115
116 -<note>
117 -Please note that for the sake of ease, all examples show a modular kernel. It
118 -is advisable to follow the same. Please do <e>not</e> skip the
119 -<uri link="#alsa-config">Configuration</uri> section of this document. If
120 -you still like to have options built-in, ensure that you make changes to your
121 -config accordingly.
122 -</note>
123 +<p>
124 +Please note that for the sake of ease, all examples show ALSA built as modules.
125 +It is advisable to follow the same as it then allows the use of <c>alsaconf</c>
126 +which is a boon when you want to configure your card. Please do <e>not</e> skip the <uri
127 +link="#alsa-config">Configuration</uri> section of this document. If you still
128 +like to have options built-in, ensure that you make changes to your config
129 +accordingly.
130 +</p>
131
132 <pre caption="Kernel Options for ALSA">
133 Device Drivers ---&gt;
134 @@ -318,6 +344,12 @@
135 fail. The next code listing gives you one way of performing the checks.
136 </p>
137
138 +<note>
139 +<c>genkernel</c> users can proceed with <uri link="#doc_chap2_pre6">Installing
140 +alsa-driver</uri> as their configuration is in sync with the one shown below by
141 +default.
142 +</note>
143 +
144 <ol>
145 <li>
146 <c>CONFIG_SOUND</c> is set. (Basic Sound support enabled)
147 @@ -347,7 +379,7 @@
148 </pre>
149
150 <p>
151 -Now all you have to do is type the magic words...and no, its not abracadabra.
152 +Now all you have to do is type the magic words... and no, it's not abracadabra.
153 </p>
154
155 <pre caption="Installing alsa-driver">
156 @@ -412,10 +444,9 @@
157 your devices and try to find out your sound card. You will be asked to pick
158 your sound card from a list. Once that's done, it will ask you permission to
159 automatically make required changes to <path>/etc/modules.d/alsa</path>.
160 -It will then adjust your volume settings to optimum levels and run
161 -<c>modules-update</c> and starts the <path>/etc/init.d/alsasound</path>
162 -service. Once <c>alsaconf</c> exits, you can proceed with setting up the ALSA
163 -initscript.
164 +It will then adjust your volume settings to optimum levels, run
165 +<c>modules-update</c> and start the <path>/etc/init.d/alsasound</path> service.
166 +Once <c>alsaconf</c> exits, you can proceed with setting up the ALSA initscript.
167 </p>
168
169 </body>
170 @@ -432,8 +463,8 @@
171 </p>
172
173 <pre caption="Adding ALSA to default">
174 -# <i>rc-update add alsasound default</i>
175 - * alsasound added to runlevel default
176 +# <i>rc-update add alsasound boot</i>
177 + * alsasound added to runlevel boot
178 * rc-update complete.
179 </pre>
180
181 @@ -446,6 +477,29 @@
182 </body>
183 </section>
184 <section>
185 +<title>Audio Group</title>
186 +<body>
187 +
188 +<p>
189 +Before we move on to testing, there's one last <e>important</e> thing that needs
190 +to be setup. Rule of thumb in a *nix OS : Do not run as root unless needed.
191 +This applies here as well ;) How? Well, most of the times you should be logged
192 +in as a user and would like to listen to music or access your soundcard. For
193 +that to happen, you need to be in the "audio" group. At this point, we'll add
194 +users to the audio group, so that they won't have any issues when they want to
195 +access sound devices. We'll use <c>gpasswd</c> here and you need to be logged in
196 +as root for this to work.
197 +</p>
198 +
199 +<pre caption="Adding users to the audio group">
200 +<comment>(Substitute &lt;username&gt; with your user)</comment>
201 +# <i>gpasswd -a &lt;username&gt; audio </i>
202 +Adding user &lt;username&gt; to group audio
203 +</pre>
204 +
205 +</body>
206 +</section>
207 +<section>
208 <title>Volume Check!</title>
209 <body>
210
211 @@ -456,7 +510,7 @@
212 </p>
213
214
215
216 --
217 gentoo-doc-cvs@g.o mailing list