/[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.5 Revision 1.6
186We'll need to edit some files, to let our system know about the freshly installed ALSA modules. 186We'll need to edit some files, to let our system know about the freshly installed ALSA modules.
187</p> 187</p>
188<p> 188<p>
189First file to edit is <path>/etc/modules.d/alsa</path>. 189First file to edit is <path>/etc/modules.d/alsa</path>.
190</p> 190</p>
191<warn> 191<warn>
192There is no need to edit <path>/etc/modules.conf</path>. Instead, always edit files in <path>/etc/modules.d</path>. 192There is no need to edit <path>/etc/modules.conf</path>. Instead, always edit files in <path>/etc/modules.d</path>.
193</warn> 193</warn>
194<p> 194<p>
195Check the ALSA portion <e>at the top of the file</e>. 195Check the ALSA portion <e>at the top of the file</e>.
196By adding this line you can specify the max number of soundcards you have (generally, just one). 196By adding this line you can specify the max number of soundcards you have (generally, just one).
197</p> 197</p>
198<p> 198<p>
199<pre caption="At the top of /etc/modules.d/alsa"> 199<pre caption="At the top of /etc/modules.d/alsa">
200# Alsa 0.9.X kernel modules' configuration file. 200# Alsa 0.9.X kernel modules' configuration file.
201# $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.5 2003/01/13 21:04:21 seo Exp $ 201# $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/alsa-guide.xml,v 1.6 2003/01/28 20:23:38 zhen Exp $
202 202
203# ALSA portion 203# ALSA portion
204alias char-major-116 snd 204alias char-major-116 snd
205<c>options snd snd_major=116 snd_cards_limit=1</c> 205<c>options snd major=116 cards_limit=1</c>
206# OSS/Free portion 206# OSS/Free portion
207alias char-major-14 soundcore 207alias char-major-14 soundcore
208 208
209## 209##
210## IMPORTANT: 210## IMPORTANT:
211</pre> 211</pre>
212</p> 212</p>
213<p> 213<p>
214Now we'll specify the sounddriver(s) ALSA should use. In the same file, edit like this: 214Now we'll specify the sounddriver(s) ALSA should use. In the same file, edit like this:
215<pre caption="A bit lower in /etc/modules.d/alsa"> 215<pre caption="A bit lower in /etc/modules.d/alsa">
216## and then run `update-modules' command. 216## and then run `update-modules' command.
217## Read alsa-driver's INSTALL file in /usr/share/doc for more info. 217## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
218## 218##
219## ALSA portion 219## ALSA portion
220<c>alias snd-card-0 snd-emu10k1</c> 220<c>alias snd-card-0 snd-emu10k1</c>
221<c>## If you have more than one, add: 221<c>## If you have more than one, add:
222## alias snd-card-1 snd-intel8x0 222## alias snd-card-1 snd-intel8x0
223## alias snd-card-2 snd-ens1370</c> 223## alias snd-card-2 snd-ens1370</c>
224## OSS/Free portion 224## OSS/Free portion
225## alias sound-slot-0 snd-card-0 225## alias sound-slot-0 snd-card-0
226## alias sound-slot-1 snd-card-1 226## alias sound-slot-1 snd-card-1
227## 227##
228</pre> 228</pre>
229</p> 229</p>
230<p> 230<p>
231<note> 231<note>
232If you have more than one soundcard, adjust the <c>snd_cards_limit</c> value and add more snd-card aliases to the file. 232If you have more than one soundcard, adjust the <c>cards_limit</c> value and add more snd-card aliases to the file.
233I don't have experience with this, but you can find examples for configurations with two or more soundcards in 233I don't have experience with this, but you can find examples for configurations with two or more soundcards in
234<uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/c1660.htm">Chapter 6</uri> 234<uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/c1660.htm">Chapter 6</uri>
235of the <uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/alsa-howto.html">ALSA Howto</uri>. 235of the <uri link="http://www.alsa-project.org/alsa-doc/alsa-howto/alsa-howto.html">ALSA Howto</uri>.
236</note> 236</note>
237</p> 237</p>
238<p> 238<p>
239Last thing to do in this file, at the very bottom, check if these lines are there and uncommented: 239Last thing to do in this file, at the very bottom, check if these lines are there and uncommented:
240<pre caption="at the very bottom of /etc/modules.d/alsa"> 240<pre caption="at the very bottom of /etc/modules.d/alsa">
241alias /dev/mixer snd-mixer-oss 241alias /dev/mixer snd-mixer-oss
242alias /dev/dsp snd-pcm-oss 242alias /dev/dsp snd-pcm-oss
243alias /dev/midi snd-seq-oss 243alias /dev/midi snd-seq-oss
244</pre> 244</pre>
245</p> 245</p>
246<p> 246<p>
247Now double-check the file <path>/etc/modules.d/alsa</path> and when you're sure everyting is ok, run <c>update-modules</c>. 247Now double-check the file <path>/etc/modules.d/alsa</path> and when you're sure everyting is ok, run <c>update-modules</c>.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20