  <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.alsa-project.org/main/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zenum</id>
	<title>AlsaProject - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.alsa-project.org/main/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zenum"/>
	<link rel="alternate" type="text/html" href="https://www.alsa-project.org/wiki/Special:Contributions/Zenum"/>
	<updated>2026-04-10T22:30:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=365</id>
		<title>Matrix:Soundcard</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=365"/>
		<updated>2007-06-24T07:55:54Z</updated>

		<summary type="html">&lt;p&gt;Zenum: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
 | __TOC__&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
==Template start==&lt;br /&gt;
&lt;br /&gt;
If you are looking to specific hardware and you would like to add an extra information for selected module, please, do not modify paragraphs between Template start and Template end. Add extra information above / bellow for the specific Matrix:Module-* page.&lt;br /&gt;
&lt;br /&gt;
==Introduction for {{{name|unknown}}} soundcard==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting Linux drivers to work, you can either compile them into the kernel or build them separately as modules. Read the Kernel-HOWTO for details of how to compile a kernel.&lt;br /&gt;
&lt;br /&gt;
You must turn on the sound support soundcore module. This is in the kernel. Look in the sound drivers directory and it should be the first option. Most people enable the module setting. That way you can load and unload the module manually if you have multiple soundcards/devices or if you intend to debug or use cutting edge software which may cause your drivers to halt sometimes. Of course it also means you have more control of your system.&lt;br /&gt;
&lt;br /&gt;
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type.&lt;br /&gt;
&lt;br /&gt;
        modinfo soundcore&lt;br /&gt;
&lt;br /&gt;
If this command returns that you have this module, then you don't need to recompile your kernel.&lt;br /&gt;
&lt;br /&gt;
==Quick Install==&lt;br /&gt;
&lt;br /&gt;
NB. If you are using hg (mercurial) then you need to type&lt;br /&gt;
&lt;br /&gt;
         ./hgcompile &amp;quot;or&amp;quot; make build&lt;br /&gt;
&lt;br /&gt;
instead of&lt;br /&gt;
&lt;br /&gt;
         ./configure&lt;br /&gt;
&lt;br /&gt;
In a shell type these commands:&lt;br /&gt;
&lt;br /&gt;
Make a directory to store the alsa source code in.&lt;br /&gt;
&lt;br /&gt;
        cd /usr/src&lt;br /&gt;
        mkdir alsa&lt;br /&gt;
        cd alsa&lt;br /&gt;
        cp /downloads/alsa-* .&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-driver package&lt;br /&gt;
&lt;br /&gt;
        bunzip2 alsa-driver-xxx&lt;br /&gt;
        tar -xf alsa-driver-xxx&lt;br /&gt;
        cd alsa-driver-xxx&lt;br /&gt;
        ./configure --with-cards={{{module|unknown}}} --with-sequencer=yes;make;make install&lt;br /&gt;
&lt;br /&gt;
NB. If you are using drivers before 0.9.4 then you need to run&lt;br /&gt;
&lt;br /&gt;
 	./snddevices&lt;br /&gt;
&lt;br /&gt;
If you use devfs then you should not run the snddevices script&lt;br /&gt;
&lt;br /&gt;
The snddevices script sets the permissions for the devices it creates to root. You should&lt;br /&gt;
&lt;br /&gt;
	chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi &lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-lib package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-lib-xxx&lt;br /&gt;
        tar -xf alsa-lib-xxx&lt;br /&gt;
        cd alsa-lib-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-utils package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-utils-xxx&lt;br /&gt;
        tar -xf alsa-utils-xxx&lt;br /&gt;
        cd alsa-utils-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now insert the modules into the kernel.&lt;br /&gt;
&lt;br /&gt;
        modprobe snd-{{{module|unknown}}};modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	modprobe snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
Now adjust your soundcards volume levels. All mixer channels are muted by default. You must use a native mixer program to unmute appropriate channels, for example alsamixer from the alsa-utils package. Note that some usb-audio devices do not have internal mixer controls.&lt;br /&gt;
&lt;br /&gt;
        alsamixer&lt;br /&gt;
&lt;br /&gt;
You can also look at the utils/alsasound file. This script is designed for the RedHat distribution, but it can be used with other distributions which use System V style rc init scripts. This will allow you to load your modules at boot time. If you want to do this you could just compile them into the kernel instead and save yourself the hassle of coming to terms with the rc init scripts.&lt;br /&gt;
&lt;br /&gt;
===Setting up modprobe and kmod support===&lt;br /&gt;
&lt;br /&gt;
Before you send a mail complaining that &amp;quot;I don't have /etc/modules.conf, where do I find it .....&amp;quot; ,The /etc/conf.modules has been deprecated with a few distro's so in your case, it may still be /etc/conf.modules. Basically they are both the same, but recent version of modutils uses /etc/modules.conf instead. Nothing to worry about as such, optionally please update to latest version of modutils. This should solve your problem.&lt;br /&gt;
&lt;br /&gt;
Here's the example for this card. Copy and paste this to the bottom of your /etc/modules.conf file.&lt;br /&gt;
&lt;br /&gt;
Note to debian users: You need to save this information into a file in the /etc/modutils/ directory (Eg. /etc/modutils/alsa) and run update-modules&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias char-major-116 snd&lt;br /&gt;
        alias snd-card-0 snd-{{{module|unknown}}}&lt;br /&gt;
	# module options should go here&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias char-major-14 soundcore&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
	&lt;br /&gt;
	# card #1&lt;br /&gt;
	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
To copy and paste the above to your /etc/modules.conf file follow these instructions.&lt;br /&gt;
&lt;br /&gt;
A short explanation of what happens in the /etc/modules.conf file&lt;br /&gt;
&lt;br /&gt;
===Native Devices===&lt;br /&gt;
&lt;br /&gt;
After the main multiplexer is loaded, its code requests top level sound card module. String snd-card-%i is requested for native devices where %i is sound card number from zero to seven. String sound-slot-%i is requested for native devices where %i is slot number for ALSA owner this means sound card number. The options line allows you to set various config options before the module is loaded. String snd_id lets you set the name of the card which is returned in the /proc/asound/cards file. Other options may be available which are card specific. The options for these are found in the INSTALL file or above.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias snd-card-0 snd-hda-intel&lt;br /&gt;
        alias snd-card-1 snd-cmipci&lt;br /&gt;
	options snd-cmipci id=&amp;quot;first&amp;quot; mpu_port=0x330&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
        alias sound-slot-1 snd-card-1&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0rc5 use:&lt;br /&gt;
&lt;br /&gt;
	options snd-cmipci snd_id=&amp;quot;first&amp;quot; snd_mpu_port=0x330&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;snd_&amp;quot; prefix has been removed from the &amp;quot;module options&amp;quot; to fit with the kernel standard.&lt;br /&gt;
&lt;br /&gt;
===Autoloading OSS/free emulation===&lt;br /&gt;
&lt;br /&gt;
We are finished at this point with the configuration for ALSA native devices, but you may also need autoloading for ALSA add-on OSS/Free emulation modules. At this time only one module does not depend on any others, thus must be loaded separately, snd-pcm1-oss.o. String sound-service-%i-%i is requested for OSS/Free service where first %i means slot number e.g. card number and second %i means service number.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico&lt;br /&gt;
        /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion - card #1&lt;br /&gt;
 	alias sound-slot-0 snd-card-0&lt;br /&gt;
 	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
 	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
 	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion - card #2 (cmipci)&lt;br /&gt;
	alias sound-slot-1  snd-card-1 &lt;br /&gt;
 	alias sound-service-1-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-1-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-1-12 snd-pcm-oss&lt;br /&gt;
&lt;br /&gt;
The alias for snd-seq-oss is not necessary on the second device, because there is only one /dev/sequencer, regardless how many devices you have.&lt;br /&gt;
&lt;br /&gt;
The .asoundrc file&lt;br /&gt;
&lt;br /&gt;
Find out more about this file here.&lt;br /&gt;
&lt;br /&gt;
This file allows the you to have more advanced control over your card/device. Some very useful applications will not work without it. The .asoundrc file consists of definitions of the various cards available in your system. It also gives you access to the pcm plugins in alsa-lib. These allow you to do tricky things like combine your cards into one or access multiple i/o's on your mulitchannel card.&lt;br /&gt;
&lt;br /&gt;
Below is the most basic definition.&lt;br /&gt;
&lt;br /&gt;
Make a file called .asoundrc in your home and/or root directory.&lt;br /&gt;
&lt;br /&gt;
        vi /home/xxx/.asoundrc&lt;br /&gt;
&lt;br /&gt;
copy and paste the following into the file then save it.&lt;br /&gt;
&lt;br /&gt;
        pcm.{{{module|unkown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        ctl.{{{module|uknown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
Become an active member of the Linux Audio Community at Linux Audio Developers or Linux Audio Users&lt;br /&gt;
Learn about how to use applications that support ALSA. The Linux Audio Users Guide&lt;br /&gt;
Keep up to date with the news at M-Station or Open Audio Projects&lt;br /&gt;
The most current book about Linux audio is Linux Music and Sound&lt;br /&gt;
Find more applications at Sound &amp;amp; MIDI Software For Linux&lt;br /&gt;
&lt;br /&gt;
For professional quality, low latency audio routing use JACK - The Jack Audio Connection Kit&lt;br /&gt;
&lt;br /&gt;
==Template end==&lt;br /&gt;
&lt;br /&gt;
You can add specific hardware notes to paragraphs below.&lt;/div&gt;</summary>
		<author><name>Zenum</name></author>
	</entry>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=364</id>
		<title>Matrix:Soundcard</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=364"/>
		<updated>2007-06-24T07:55:28Z</updated>

		<summary type="html">&lt;p&gt;Zenum: /* Template end */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
 | __TOC__&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
==Template start==&lt;br /&gt;
&lt;br /&gt;
If you are looking to specific hardware and you would like to add an extra information for selected module, please, do not modify paragraphs between Template start and Template end. Add extra information above / bellow for the specific Matrix:Module-* page.&lt;br /&gt;
&lt;br /&gt;
==Introduction for {{{name|unknown}}} soundcard==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting Linux drivers to work, you can either compile them into the kernel or build them separately as modules. Read the Kernel-HOWTO for details of how to compile a kernel.&lt;br /&gt;
&lt;br /&gt;
You must turn on the sound support soundcore module. This is in the kernel. Look in the sound drivers directory and it should be the first option. Most people enable the module setting. That way you can load and unload the module manually if you have multiple soundcards/devices or if you intend to debug or use cutting edge software which may cause your drivers to halt sometimes. Of course it also means you have more control of your system.&lt;br /&gt;
&lt;br /&gt;
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type.&lt;br /&gt;
&lt;br /&gt;
        modinfo soundcore&lt;br /&gt;
&lt;br /&gt;
If this command returns that you have this module, then you don't need to recompile your kernel.&lt;br /&gt;
&lt;br /&gt;
==Quick Install==&lt;br /&gt;
&lt;br /&gt;
NB. If you are using hg (mercurial) then you need to type&lt;br /&gt;
&lt;br /&gt;
         ./hgcompile &amp;quot;or&amp;quot; make build&lt;br /&gt;
&lt;br /&gt;
instead of&lt;br /&gt;
&lt;br /&gt;
         ./configure&lt;br /&gt;
&lt;br /&gt;
In a shell type these commands:&lt;br /&gt;
&lt;br /&gt;
Make a directory to store the alsa source code in.&lt;br /&gt;
&lt;br /&gt;
        cd /usr/src&lt;br /&gt;
        mkdir alsa&lt;br /&gt;
        cd alsa&lt;br /&gt;
        cp /downloads/alsa-* .&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-driver package&lt;br /&gt;
&lt;br /&gt;
        bunzip2 alsa-driver-xxx&lt;br /&gt;
        tar -xf alsa-driver-xxx&lt;br /&gt;
        cd alsa-driver-xxx&lt;br /&gt;
        ./configure --with-cards={{{module|unknown}}} --with-sequencer=yes;make;make install&lt;br /&gt;
&lt;br /&gt;
NB. If you are using drivers before 0.9.4 then you need to run&lt;br /&gt;
&lt;br /&gt;
 	./snddevices&lt;br /&gt;
&lt;br /&gt;
If you use devfs then you should not run the snddevices script&lt;br /&gt;
&lt;br /&gt;
The snddevices script sets the permissions for the devices it creates to root. You should&lt;br /&gt;
&lt;br /&gt;
	chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi &lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-lib package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-lib-xxx&lt;br /&gt;
        tar -xf alsa-lib-xxx&lt;br /&gt;
        cd alsa-lib-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-utils package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-utils-xxx&lt;br /&gt;
        tar -xf alsa-utils-xxx&lt;br /&gt;
        cd alsa-utils-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now insert the modules into the kernel.&lt;br /&gt;
&lt;br /&gt;
        modprobe snd-{{{module|unknown}}};modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	modprobe snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
Now adjust your soundcards volume levels. All mixer channels are muted by default. You must use a native mixer program to unmute appropriate channels, for example alsamixer from the alsa-utils package. Note that some usb-audio devices do not have internal mixer controls.&lt;br /&gt;
&lt;br /&gt;
        alsamixer&lt;br /&gt;
&lt;br /&gt;
You can also look at the utils/alsasound file. This script is designed for the RedHat distribution, but it can be used with other distributions which use System V style rc init scripts. This will allow you to load your modules at boot time. If you want to do this you could just compile them into the kernel instead and save yourself the hassle of coming to terms with the rc init scripts.&lt;br /&gt;
&lt;br /&gt;
===Setting up modprobe and kmod support===&lt;br /&gt;
&lt;br /&gt;
Before you send a mail complaining that &amp;quot;I don't have /etc/modules.conf, where do I find it .....&amp;quot; ,The /etc/conf.modules has been deprecated with a few distro's so in your case, it may still be /etc/conf.modules. Basically they are both the same, but recent version of modutils uses /etc/modules.conf instead. Nothing to worry about as such, optionally please update to latest version of modutils. This should solve your problem.&lt;br /&gt;
&lt;br /&gt;
Here's the example for this card. Copy and paste this to the bottom of your /etc/modules.conf file.&lt;br /&gt;
&lt;br /&gt;
Note to debian users: You need to save this information into a file in the /etc/modutils/ directory (Eg. /etc/modutils/alsa) and run update-modules&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias char-major-116 snd&lt;br /&gt;
        alias snd-card-0 snd-{{{module|unknown}}}&lt;br /&gt;
	# module options should go here&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias char-major-14 soundcore&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
	&lt;br /&gt;
	# card #1&lt;br /&gt;
	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
To copy and paste the above to your /etc/modules.conf file follow these instructions.&lt;br /&gt;
&lt;br /&gt;
A short explanation of what happens in the /etc/modules.conf file&lt;br /&gt;
&lt;br /&gt;
===Native Devices===&lt;br /&gt;
&lt;br /&gt;
After the main multiplexer is loaded, its code requests top level sound card module. String snd-card-%i is requested for native devices where %i is sound card number from zero to seven. String sound-slot-%i is requested for native devices where %i is slot number for ALSA owner this means sound card number. The options line allows you to set various config options before the module is loaded. String snd_id lets you set the name of the card which is returned in the /proc/asound/cards file. Other options may be available which are card specific. The options for these are found in the INSTALL file or above.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias snd-card-0 snd-hda-intel&lt;br /&gt;
        alias snd-card-1 snd-cmipci&lt;br /&gt;
	options snd-cmipci id=&amp;quot;first&amp;quot; mpu_port=0x330&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
        alias sound-slot-1 snd-card-1&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0rc5 use:&lt;br /&gt;
&lt;br /&gt;
	options snd-cmipci snd_id=&amp;quot;first&amp;quot; snd_mpu_port=0x330&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;snd_&amp;quot; prefix has been removed from the &amp;quot;module options&amp;quot; to fit with the kernel standard.&lt;br /&gt;
&lt;br /&gt;
===Autoloading OSS/free emulation===&lt;br /&gt;
&lt;br /&gt;
We are finished at this point with the configuration for ALSA native devices, but you may also need autoloading for ALSA add-on OSS/Free emulation modules. At this time only one module does not depend on any others, thus must be loaded separately, snd-pcm1-oss.o. String sound-service-%i-%i is requested for OSS/Free service where first %i means slot number e.g. card number and second %i means service number.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico&lt;br /&gt;
        /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion - card #1&lt;br /&gt;
 	alias sound-slot-0 snd-card-0&lt;br /&gt;
 	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
 	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
 	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion - card #2 (cmipci)&lt;br /&gt;
	alias sound-slot-1  snd-card-1 &lt;br /&gt;
 	alias sound-service-1-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-1-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-1-12 snd-pcm-oss&lt;br /&gt;
&lt;br /&gt;
The alias for snd-seq-oss is not necessary on the second device, because there is only one /dev/sequencer, regardless how many devices you have.&lt;br /&gt;
&lt;br /&gt;
The .asoundrc file&lt;br /&gt;
&lt;br /&gt;
Find out more about this file here.&lt;br /&gt;
&lt;br /&gt;
This file allows the you to have more advanced control over your card/device. Some very useful applications will not work without it. The .asoundrc file consists of definitions of the various cards available in your system. It also gives you access to the pcm plugins in alsa-lib. These allow you to do tricky things like combine your cards into one or access multiple i/o's on your mulitchannel card.&lt;br /&gt;
&lt;br /&gt;
Below is the most basic definition.&lt;br /&gt;
&lt;br /&gt;
Make a file called .asoundrc in your home and/or root directory.&lt;br /&gt;
&lt;br /&gt;
        vi /home/xxx/.asoundrc&lt;br /&gt;
&lt;br /&gt;
copy and paste the following into the file then save it.&lt;br /&gt;
&lt;br /&gt;
        pcm.{{{module|unkown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        ctl.{{{module|uknown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
Become an active member of the Linux Audio Community at Linux Audio Developers or Linux Audio Users&lt;br /&gt;
Learn about how to use applications that support ALSA. The Linux Audio Users Guide&lt;br /&gt;
Keep up to date with the news at M-Station or Open Audio Projects&lt;br /&gt;
The most current book about Linux audio is Linux Music and Sound&lt;br /&gt;
Find more applications at Sound &amp;amp; MIDI Software For Linux&lt;br /&gt;
&lt;br /&gt;
For professional quality, low latency audio routing use JACK - The Jack Audio Connection Kit&lt;br /&gt;
&lt;br /&gt;
==Template end==&lt;br /&gt;
&lt;br /&gt;
You can add specific hardware notes to paragraphs below.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
If you are having problems where your sound card is detected but alsamixer complains there are no cards, or if sound seems to be working but you can't hear anything unless its through external speakers then have a look at [http://mcgannon.id.au/index.php?title=LG_LW60_Express this wiki] which I wrote for my LG LW60 Express laptop which has an Intel HDA ICH6 sound card, and comes up as a CMI9880 under alsa mixer. I now have sound working well but only with one channel. - zenum&lt;/div&gt;</summary>
		<author><name>Zenum</name></author>
	</entry>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=363</id>
		<title>Matrix:Soundcard</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=363"/>
		<updated>2007-06-24T07:53:35Z</updated>

		<summary type="html">&lt;p&gt;Zenum: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
 | __TOC__&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
==Template start==&lt;br /&gt;
&lt;br /&gt;
If you are looking to specific hardware and you would like to add an extra information for selected module, please, do not modify paragraphs between Template start and Template end. Add extra information above / bellow for the specific Matrix:Module-* page.&lt;br /&gt;
&lt;br /&gt;
==Introduction for {{{name|unknown}}} soundcard==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting Linux drivers to work, you can either compile them into the kernel or build them separately as modules. Read the Kernel-HOWTO for details of how to compile a kernel.&lt;br /&gt;
&lt;br /&gt;
You must turn on the sound support soundcore module. This is in the kernel. Look in the sound drivers directory and it should be the first option. Most people enable the module setting. That way you can load and unload the module manually if you have multiple soundcards/devices or if you intend to debug or use cutting edge software which may cause your drivers to halt sometimes. Of course it also means you have more control of your system.&lt;br /&gt;
&lt;br /&gt;
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type.&lt;br /&gt;
&lt;br /&gt;
        modinfo soundcore&lt;br /&gt;
&lt;br /&gt;
If this command returns that you have this module, then you don't need to recompile your kernel.&lt;br /&gt;
&lt;br /&gt;
==Quick Install==&lt;br /&gt;
&lt;br /&gt;
NB. If you are using hg (mercurial) then you need to type&lt;br /&gt;
&lt;br /&gt;
         ./hgcompile &amp;quot;or&amp;quot; make build&lt;br /&gt;
&lt;br /&gt;
instead of&lt;br /&gt;
&lt;br /&gt;
         ./configure&lt;br /&gt;
&lt;br /&gt;
In a shell type these commands:&lt;br /&gt;
&lt;br /&gt;
Make a directory to store the alsa source code in.&lt;br /&gt;
&lt;br /&gt;
        cd /usr/src&lt;br /&gt;
        mkdir alsa&lt;br /&gt;
        cd alsa&lt;br /&gt;
        cp /downloads/alsa-* .&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-driver package&lt;br /&gt;
&lt;br /&gt;
        bunzip2 alsa-driver-xxx&lt;br /&gt;
        tar -xf alsa-driver-xxx&lt;br /&gt;
        cd alsa-driver-xxx&lt;br /&gt;
        ./configure --with-cards={{{module|unknown}}} --with-sequencer=yes;make;make install&lt;br /&gt;
&lt;br /&gt;
NB. If you are using drivers before 0.9.4 then you need to run&lt;br /&gt;
&lt;br /&gt;
 	./snddevices&lt;br /&gt;
&lt;br /&gt;
If you use devfs then you should not run the snddevices script&lt;br /&gt;
&lt;br /&gt;
The snddevices script sets the permissions for the devices it creates to root. You should&lt;br /&gt;
&lt;br /&gt;
	chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi &lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-lib package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-lib-xxx&lt;br /&gt;
        tar -xf alsa-lib-xxx&lt;br /&gt;
        cd alsa-lib-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-utils package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-utils-xxx&lt;br /&gt;
        tar -xf alsa-utils-xxx&lt;br /&gt;
        cd alsa-utils-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now insert the modules into the kernel.&lt;br /&gt;
&lt;br /&gt;
        modprobe snd-{{{module|unknown}}};modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	modprobe snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
Now adjust your soundcards volume levels. All mixer channels are muted by default. You must use a native mixer program to unmute appropriate channels, for example alsamixer from the alsa-utils package. Note that some usb-audio devices do not have internal mixer controls.&lt;br /&gt;
&lt;br /&gt;
        alsamixer&lt;br /&gt;
&lt;br /&gt;
You can also look at the utils/alsasound file. This script is designed for the RedHat distribution, but it can be used with other distributions which use System V style rc init scripts. This will allow you to load your modules at boot time. If you want to do this you could just compile them into the kernel instead and save yourself the hassle of coming to terms with the rc init scripts.&lt;br /&gt;
&lt;br /&gt;
===Setting up modprobe and kmod support===&lt;br /&gt;
&lt;br /&gt;
Before you send a mail complaining that &amp;quot;I don't have /etc/modules.conf, where do I find it .....&amp;quot; ,The /etc/conf.modules has been deprecated with a few distro's so in your case, it may still be /etc/conf.modules. Basically they are both the same, but recent version of modutils uses /etc/modules.conf instead. Nothing to worry about as such, optionally please update to latest version of modutils. This should solve your problem.&lt;br /&gt;
&lt;br /&gt;
Here's the example for this card. Copy and paste this to the bottom of your /etc/modules.conf file.&lt;br /&gt;
&lt;br /&gt;
Note to debian users: You need to save this information into a file in the /etc/modutils/ directory (Eg. /etc/modutils/alsa) and run update-modules&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias char-major-116 snd&lt;br /&gt;
        alias snd-card-0 snd-{{{module|unknown}}}&lt;br /&gt;
	# module options should go here&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias char-major-14 soundcore&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
	&lt;br /&gt;
	# card #1&lt;br /&gt;
	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
To copy and paste the above to your /etc/modules.conf file follow these instructions.&lt;br /&gt;
&lt;br /&gt;
A short explanation of what happens in the /etc/modules.conf file&lt;br /&gt;
&lt;br /&gt;
===Native Devices===&lt;br /&gt;
&lt;br /&gt;
After the main multiplexer is loaded, its code requests top level sound card module. String snd-card-%i is requested for native devices where %i is sound card number from zero to seven. String sound-slot-%i is requested for native devices where %i is slot number for ALSA owner this means sound card number. The options line allows you to set various config options before the module is loaded. String snd_id lets you set the name of the card which is returned in the /proc/asound/cards file. Other options may be available which are card specific. The options for these are found in the INSTALL file or above.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias snd-card-0 snd-hda-intel&lt;br /&gt;
        alias snd-card-1 snd-cmipci&lt;br /&gt;
	options snd-cmipci id=&amp;quot;first&amp;quot; mpu_port=0x330&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
        alias sound-slot-1 snd-card-1&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0rc5 use:&lt;br /&gt;
&lt;br /&gt;
	options snd-cmipci snd_id=&amp;quot;first&amp;quot; snd_mpu_port=0x330&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;snd_&amp;quot; prefix has been removed from the &amp;quot;module options&amp;quot; to fit with the kernel standard.&lt;br /&gt;
&lt;br /&gt;
===Autoloading OSS/free emulation===&lt;br /&gt;
&lt;br /&gt;
We are finished at this point with the configuration for ALSA native devices, but you may also need autoloading for ALSA add-on OSS/Free emulation modules. At this time only one module does not depend on any others, thus must be loaded separately, snd-pcm1-oss.o. String sound-service-%i-%i is requested for OSS/Free service where first %i means slot number e.g. card number and second %i means service number.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico&lt;br /&gt;
        /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion - card #1&lt;br /&gt;
 	alias sound-slot-0 snd-card-0&lt;br /&gt;
 	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
 	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
 	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion - card #2 (cmipci)&lt;br /&gt;
	alias sound-slot-1  snd-card-1 &lt;br /&gt;
 	alias sound-service-1-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-1-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-1-12 snd-pcm-oss&lt;br /&gt;
&lt;br /&gt;
The alias for snd-seq-oss is not necessary on the second device, because there is only one /dev/sequencer, regardless how many devices you have.&lt;br /&gt;
&lt;br /&gt;
The .asoundrc file&lt;br /&gt;
&lt;br /&gt;
Find out more about this file here.&lt;br /&gt;
&lt;br /&gt;
This file allows the you to have more advanced control over your card/device. Some very useful applications will not work without it. The .asoundrc file consists of definitions of the various cards available in your system. It also gives you access to the pcm plugins in alsa-lib. These allow you to do tricky things like combine your cards into one or access multiple i/o's on your mulitchannel card.&lt;br /&gt;
&lt;br /&gt;
Below is the most basic definition.&lt;br /&gt;
&lt;br /&gt;
Make a file called .asoundrc in your home and/or root directory.&lt;br /&gt;
&lt;br /&gt;
        vi /home/xxx/.asoundrc&lt;br /&gt;
&lt;br /&gt;
copy and paste the following into the file then save it.&lt;br /&gt;
&lt;br /&gt;
        pcm.{{{module|unkown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        ctl.{{{module|uknown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
Become an active member of the Linux Audio Community at Linux Audio Developers or Linux Audio Users&lt;br /&gt;
Learn about how to use applications that support ALSA. The Linux Audio Users Guide&lt;br /&gt;
Keep up to date with the news at M-Station or Open Audio Projects&lt;br /&gt;
The most current book about Linux audio is Linux Music and Sound&lt;br /&gt;
Find more applications at Sound &amp;amp; MIDI Software For Linux&lt;br /&gt;
&lt;br /&gt;
For professional quality, low latency audio routing use JACK - The Jack Audio Connection Kit&lt;br /&gt;
&lt;br /&gt;
==Template end==&lt;br /&gt;
&lt;br /&gt;
You can add specific hardware notes to paragraphs below.&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting'''&lt;br /&gt;
&lt;br /&gt;
If you are having problems where your sound card is detected but alsamixer complains there are no cards, or if sound seems to be working but you can't hear anything unless its through external speakers then have a look at [http://mcgannon.id.au/index.php?title=LG_LW60_Express this wiki] which I wrote for my LG LW60 Express laptop which has an Intel HDA ICH6 sound card, and comes up as a CMI9880 under alsa mixer. I now have sound working well but only with one channel. - zenum&lt;/div&gt;</summary>
		<author><name>Zenum</name></author>
	</entry>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=362</id>
		<title>Matrix:Soundcard</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=362"/>
		<updated>2007-06-24T07:52:54Z</updated>

		<summary type="html">&lt;p&gt;Zenum: /* Template end */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
 | __TOC__&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
==Template start==&lt;br /&gt;
&lt;br /&gt;
If you are looking to specific hardware and you would like to add an extra information for selected module, please, do not modify paragraphs between Template start and Template end. Add extra information above / bellow for the specific Matrix:Module-* page.&lt;br /&gt;
&lt;br /&gt;
==Introduction for {{{name|unknown}}} soundcard==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting Linux drivers to work, you can either compile them into the kernel or build them separately as modules. Read the Kernel-HOWTO for details of how to compile a kernel.&lt;br /&gt;
&lt;br /&gt;
You must turn on the sound support soundcore module. This is in the kernel. Look in the sound drivers directory and it should be the first option. Most people enable the module setting. That way you can load and unload the module manually if you have multiple soundcards/devices or if you intend to debug or use cutting edge software which may cause your drivers to halt sometimes. Of course it also means you have more control of your system.&lt;br /&gt;
&lt;br /&gt;
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type.&lt;br /&gt;
&lt;br /&gt;
        modinfo soundcore&lt;br /&gt;
&lt;br /&gt;
If this command returns that you have this module, then you don't need to recompile your kernel.&lt;br /&gt;
&lt;br /&gt;
==Quick Install==&lt;br /&gt;
&lt;br /&gt;
NB. If you are using hg (mercurial) then you need to type&lt;br /&gt;
&lt;br /&gt;
         ./hgcompile &amp;quot;or&amp;quot; make build&lt;br /&gt;
&lt;br /&gt;
instead of&lt;br /&gt;
&lt;br /&gt;
         ./configure&lt;br /&gt;
&lt;br /&gt;
In a shell type these commands:&lt;br /&gt;
&lt;br /&gt;
Make a directory to store the alsa source code in.&lt;br /&gt;
&lt;br /&gt;
        cd /usr/src&lt;br /&gt;
        mkdir alsa&lt;br /&gt;
        cd alsa&lt;br /&gt;
        cp /downloads/alsa-* .&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-driver package&lt;br /&gt;
&lt;br /&gt;
        bunzip2 alsa-driver-xxx&lt;br /&gt;
        tar -xf alsa-driver-xxx&lt;br /&gt;
        cd alsa-driver-xxx&lt;br /&gt;
        ./configure --with-cards={{{module|unknown}}} --with-sequencer=yes;make;make install&lt;br /&gt;
&lt;br /&gt;
NB. If you are using drivers before 0.9.4 then you need to run&lt;br /&gt;
&lt;br /&gt;
 	./snddevices&lt;br /&gt;
&lt;br /&gt;
If you use devfs then you should not run the snddevices script&lt;br /&gt;
&lt;br /&gt;
The snddevices script sets the permissions for the devices it creates to root. You should&lt;br /&gt;
&lt;br /&gt;
	chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi &lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-lib package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-lib-xxx&lt;br /&gt;
        tar -xf alsa-lib-xxx&lt;br /&gt;
        cd alsa-lib-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-utils package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-utils-xxx&lt;br /&gt;
        tar -xf alsa-utils-xxx&lt;br /&gt;
        cd alsa-utils-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now insert the modules into the kernel.&lt;br /&gt;
&lt;br /&gt;
        modprobe snd-{{{module|unknown}}};modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	modprobe snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
Now adjust your soundcards volume levels. All mixer channels are muted by default. You must use a native mixer program to unmute appropriate channels, for example alsamixer from the alsa-utils package. Note that some usb-audio devices do not have internal mixer controls.&lt;br /&gt;
&lt;br /&gt;
        alsamixer&lt;br /&gt;
&lt;br /&gt;
You can also look at the utils/alsasound file. This script is designed for the RedHat distribution, but it can be used with other distributions which use System V style rc init scripts. This will allow you to load your modules at boot time. If you want to do this you could just compile them into the kernel instead and save yourself the hassle of coming to terms with the rc init scripts.&lt;br /&gt;
&lt;br /&gt;
===Setting up modprobe and kmod support===&lt;br /&gt;
&lt;br /&gt;
Before you send a mail complaining that &amp;quot;I don't have /etc/modules.conf, where do I find it .....&amp;quot; ,The /etc/conf.modules has been deprecated with a few distro's so in your case, it may still be /etc/conf.modules. Basically they are both the same, but recent version of modutils uses /etc/modules.conf instead. Nothing to worry about as such, optionally please update to latest version of modutils. This should solve your problem.&lt;br /&gt;
&lt;br /&gt;
Here's the example for this card. Copy and paste this to the bottom of your /etc/modules.conf file.&lt;br /&gt;
&lt;br /&gt;
Note to debian users: You need to save this information into a file in the /etc/modutils/ directory (Eg. /etc/modutils/alsa) and run update-modules&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias char-major-116 snd&lt;br /&gt;
        alias snd-card-0 snd-{{{module|unknown}}}&lt;br /&gt;
	# module options should go here&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias char-major-14 soundcore&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
	&lt;br /&gt;
	# card #1&lt;br /&gt;
	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
To copy and paste the above to your /etc/modules.conf file follow these instructions.&lt;br /&gt;
&lt;br /&gt;
A short explanation of what happens in the /etc/modules.conf file&lt;br /&gt;
&lt;br /&gt;
===Native Devices===&lt;br /&gt;
&lt;br /&gt;
After the main multiplexer is loaded, its code requests top level sound card module. String snd-card-%i is requested for native devices where %i is sound card number from zero to seven. String sound-slot-%i is requested for native devices where %i is slot number for ALSA owner this means sound card number. The options line allows you to set various config options before the module is loaded. String snd_id lets you set the name of the card which is returned in the /proc/asound/cards file. Other options may be available which are card specific. The options for these are found in the INSTALL file or above.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias snd-card-0 snd-hda-intel&lt;br /&gt;
        alias snd-card-1 snd-cmipci&lt;br /&gt;
	options snd-cmipci id=&amp;quot;first&amp;quot; mpu_port=0x330&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
        alias sound-slot-1 snd-card-1&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0rc5 use:&lt;br /&gt;
&lt;br /&gt;
	options snd-cmipci snd_id=&amp;quot;first&amp;quot; snd_mpu_port=0x330&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;snd_&amp;quot; prefix has been removed from the &amp;quot;module options&amp;quot; to fit with the kernel standard.&lt;br /&gt;
&lt;br /&gt;
===Autoloading OSS/free emulation===&lt;br /&gt;
&lt;br /&gt;
We are finished at this point with the configuration for ALSA native devices, but you may also need autoloading for ALSA add-on OSS/Free emulation modules. At this time only one module does not depend on any others, thus must be loaded separately, snd-pcm1-oss.o. String sound-service-%i-%i is requested for OSS/Free service where first %i means slot number e.g. card number and second %i means service number.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico&lt;br /&gt;
        /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion - card #1&lt;br /&gt;
 	alias sound-slot-0 snd-card-0&lt;br /&gt;
 	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
 	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
 	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion - card #2 (cmipci)&lt;br /&gt;
	alias sound-slot-1  snd-card-1 &lt;br /&gt;
 	alias sound-service-1-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-1-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-1-12 snd-pcm-oss&lt;br /&gt;
&lt;br /&gt;
The alias for snd-seq-oss is not necessary on the second device, because there is only one /dev/sequencer, regardless how many devices you have.&lt;br /&gt;
&lt;br /&gt;
The .asoundrc file&lt;br /&gt;
&lt;br /&gt;
Find out more about this file here.&lt;br /&gt;
&lt;br /&gt;
This file allows the you to have more advanced control over your card/device. Some very useful applications will not work without it. The .asoundrc file consists of definitions of the various cards available in your system. It also gives you access to the pcm plugins in alsa-lib. These allow you to do tricky things like combine your cards into one or access multiple i/o's on your mulitchannel card.&lt;br /&gt;
&lt;br /&gt;
Below is the most basic definition.&lt;br /&gt;
&lt;br /&gt;
Make a file called .asoundrc in your home and/or root directory.&lt;br /&gt;
&lt;br /&gt;
        vi /home/xxx/.asoundrc&lt;br /&gt;
&lt;br /&gt;
copy and paste the following into the file then save it.&lt;br /&gt;
&lt;br /&gt;
        pcm.{{{module|unkown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        ctl.{{{module|uknown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
Become an active member of the Linux Audio Community at Linux Audio Developers or Linux Audio Users&lt;br /&gt;
Learn about how to use applications that support ALSA. The Linux Audio Users Guide&lt;br /&gt;
Keep up to date with the news at M-Station or Open Audio Projects&lt;br /&gt;
The most current book about Linux audio is Linux Music and Sound&lt;br /&gt;
Find more applications at Sound &amp;amp; MIDI Software For Linux&lt;br /&gt;
&lt;br /&gt;
For professional quality, low latency audio routing use JACK - The Jack Audio Connection Kit&lt;br /&gt;
&lt;br /&gt;
==Template end==&lt;br /&gt;
&lt;br /&gt;
You can add specific hardware notes to paragraphs below.&lt;/div&gt;</summary>
		<author><name>Zenum</name></author>
	</entry>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=361</id>
		<title>Matrix:Soundcard</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=Matrix:Soundcard&amp;diff=361"/>
		<updated>2007-06-24T07:39:29Z</updated>

		<summary type="html">&lt;p&gt;Zenum: /* Template end */  - Added help for LG laptops&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
 | __TOC__&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
==Template start==&lt;br /&gt;
&lt;br /&gt;
If you are looking to specific hardware and you would like to add an extra information for selected module, please, do not modify paragraphs between Template start and Template end. Add extra information above / bellow for the specific Matrix:Module-* page.&lt;br /&gt;
&lt;br /&gt;
==Introduction for {{{name|unknown}}} soundcard==&lt;br /&gt;
&lt;br /&gt;
There are two ways of getting Linux drivers to work, you can either compile them into the kernel or build them separately as modules. Read the Kernel-HOWTO for details of how to compile a kernel.&lt;br /&gt;
&lt;br /&gt;
You must turn on the sound support soundcore module. This is in the kernel. Look in the sound drivers directory and it should be the first option. Most people enable the module setting. That way you can load and unload the module manually if you have multiple soundcards/devices or if you intend to debug or use cutting edge software which may cause your drivers to halt sometimes. Of course it also means you have more control of your system.&lt;br /&gt;
&lt;br /&gt;
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type.&lt;br /&gt;
&lt;br /&gt;
        modinfo soundcore&lt;br /&gt;
&lt;br /&gt;
If this command returns that you have this module, then you don't need to recompile your kernel.&lt;br /&gt;
&lt;br /&gt;
==Quick Install==&lt;br /&gt;
&lt;br /&gt;
NB. If you are using hg (mercurial) then you need to type&lt;br /&gt;
&lt;br /&gt;
         ./hgcompile &amp;quot;or&amp;quot; make build&lt;br /&gt;
&lt;br /&gt;
instead of&lt;br /&gt;
&lt;br /&gt;
         ./configure&lt;br /&gt;
&lt;br /&gt;
In a shell type these commands:&lt;br /&gt;
&lt;br /&gt;
Make a directory to store the alsa source code in.&lt;br /&gt;
&lt;br /&gt;
        cd /usr/src&lt;br /&gt;
        mkdir alsa&lt;br /&gt;
        cd alsa&lt;br /&gt;
        cp /downloads/alsa-* .&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-driver package&lt;br /&gt;
&lt;br /&gt;
        bunzip2 alsa-driver-xxx&lt;br /&gt;
        tar -xf alsa-driver-xxx&lt;br /&gt;
        cd alsa-driver-xxx&lt;br /&gt;
        ./configure --with-cards={{{module|unknown}}} --with-sequencer=yes;make;make install&lt;br /&gt;
&lt;br /&gt;
NB. If you are using drivers before 0.9.4 then you need to run&lt;br /&gt;
&lt;br /&gt;
 	./snddevices&lt;br /&gt;
&lt;br /&gt;
If you use devfs then you should not run the snddevices script&lt;br /&gt;
&lt;br /&gt;
The snddevices script sets the permissions for the devices it creates to root. You should&lt;br /&gt;
&lt;br /&gt;
	chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi &lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-lib package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-lib-xxx&lt;br /&gt;
        tar -xf alsa-lib-xxx&lt;br /&gt;
        cd alsa-lib-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the alsa-utils package&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-utils-xxx&lt;br /&gt;
        tar -xf alsa-utils-xxx&lt;br /&gt;
        cd alsa-utils-xxx&lt;br /&gt;
        ./configure;make;make install&lt;br /&gt;
&lt;br /&gt;
Now insert the modules into the kernel.&lt;br /&gt;
&lt;br /&gt;
        modprobe snd-{{{module|unknown}}};modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	modprobe snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
Now adjust your soundcards volume levels. All mixer channels are muted by default. You must use a native mixer program to unmute appropriate channels, for example alsamixer from the alsa-utils package. Note that some usb-audio devices do not have internal mixer controls.&lt;br /&gt;
&lt;br /&gt;
        alsamixer&lt;br /&gt;
&lt;br /&gt;
You can also look at the utils/alsasound file. This script is designed for the RedHat distribution, but it can be used with other distributions which use System V style rc init scripts. This will allow you to load your modules at boot time. If you want to do this you could just compile them into the kernel instead and save yourself the hassle of coming to terms with the rc init scripts.&lt;br /&gt;
&lt;br /&gt;
===Setting up modprobe and kmod support===&lt;br /&gt;
&lt;br /&gt;
Before you send a mail complaining that &amp;quot;I don't have /etc/modules.conf, where do I find it .....&amp;quot; ,The /etc/conf.modules has been deprecated with a few distro's so in your case, it may still be /etc/conf.modules. Basically they are both the same, but recent version of modutils uses /etc/modules.conf instead. Nothing to worry about as such, optionally please update to latest version of modutils. This should solve your problem.&lt;br /&gt;
&lt;br /&gt;
Here's the example for this card. Copy and paste this to the bottom of your /etc/modules.conf file.&lt;br /&gt;
&lt;br /&gt;
Note to debian users: You need to save this information into a file in the /etc/modutils/ directory (Eg. /etc/modutils/alsa) and run update-modules&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias char-major-116 snd&lt;br /&gt;
        alias snd-card-0 snd-{{{module|unknown}}}&lt;br /&gt;
	# module options should go here&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias char-major-14 soundcore&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
	&lt;br /&gt;
	# card #1&lt;br /&gt;
	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0beta11 use:&lt;br /&gt;
&lt;br /&gt;
	snd-card-{{{module|unknown}}}&lt;br /&gt;
&lt;br /&gt;
To copy and paste the above to your /etc/modules.conf file follow these instructions.&lt;br /&gt;
&lt;br /&gt;
A short explanation of what happens in the /etc/modules.conf file&lt;br /&gt;
&lt;br /&gt;
===Native Devices===&lt;br /&gt;
&lt;br /&gt;
After the main multiplexer is loaded, its code requests top level sound card module. String snd-card-%i is requested for native devices where %i is sound card number from zero to seven. String sound-slot-%i is requested for native devices where %i is slot number for ALSA owner this means sound card number. The options line allows you to set various config options before the module is loaded. String snd_id lets you set the name of the card which is returned in the /proc/asound/cards file. Other options may be available which are card specific. The options for these are found in the INSTALL file or above.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # ALSA portion&lt;br /&gt;
        alias snd-card-0 snd-hda-intel&lt;br /&gt;
        alias snd-card-1 snd-cmipci&lt;br /&gt;
	options snd-cmipci id=&amp;quot;first&amp;quot; mpu_port=0x330&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion&lt;br /&gt;
        alias sound-slot-0 snd-card-0&lt;br /&gt;
        alias sound-slot-1 snd-card-1&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
NB. For drivers older than 0.9.0rc5 use:&lt;br /&gt;
&lt;br /&gt;
	options snd-cmipci snd_id=&amp;quot;first&amp;quot; snd_mpu_port=0x330&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;snd_&amp;quot; prefix has been removed from the &amp;quot;module options&amp;quot; to fit with the kernel standard.&lt;br /&gt;
&lt;br /&gt;
===Autoloading OSS/free emulation===&lt;br /&gt;
&lt;br /&gt;
We are finished at this point with the configuration for ALSA native devices, but you may also need autoloading for ALSA add-on OSS/Free emulation modules. At this time only one module does not depend on any others, thus must be loaded separately, snd-pcm1-oss.o. String sound-service-%i-%i is requested for OSS/Free service where first %i means slot number e.g. card number and second %i means service number.&lt;br /&gt;
&lt;br /&gt;
        xyz@localhost#pico&lt;br /&gt;
        /etc/modules.conf&lt;br /&gt;
&lt;br /&gt;
        # OSS/Free portion - card #1&lt;br /&gt;
 	alias sound-slot-0 snd-card-0&lt;br /&gt;
 	alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;
 	alias sound-service-0-1 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;
 	alias sound-service-0-8 snd-seq-oss&lt;br /&gt;
 	alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;
	&lt;br /&gt;
        # OSS/Free portion - card #2 (cmipci)&lt;br /&gt;
	alias sound-slot-1  snd-card-1 &lt;br /&gt;
 	alias sound-service-1-0 snd-mixer-oss&lt;br /&gt;
	alias sound-service-1-3 snd-pcm-oss&lt;br /&gt;
	alias sound-service-1-12 snd-pcm-oss&lt;br /&gt;
&lt;br /&gt;
The alias for snd-seq-oss is not necessary on the second device, because there is only one /dev/sequencer, regardless how many devices you have.&lt;br /&gt;
&lt;br /&gt;
The .asoundrc file&lt;br /&gt;
&lt;br /&gt;
Find out more about this file here.&lt;br /&gt;
&lt;br /&gt;
This file allows the you to have more advanced control over your card/device. Some very useful applications will not work without it. The .asoundrc file consists of definitions of the various cards available in your system. It also gives you access to the pcm plugins in alsa-lib. These allow you to do tricky things like combine your cards into one or access multiple i/o's on your mulitchannel card.&lt;br /&gt;
&lt;br /&gt;
Below is the most basic definition.&lt;br /&gt;
&lt;br /&gt;
Make a file called .asoundrc in your home and/or root directory.&lt;br /&gt;
&lt;br /&gt;
        vi /home/xxx/.asoundrc&lt;br /&gt;
&lt;br /&gt;
copy and paste the following into the file then save it.&lt;br /&gt;
&lt;br /&gt;
        pcm.{{{module|unkown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        ctl.{{{module|uknown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
Become an active member of the Linux Audio Community at Linux Audio Developers or Linux Audio Users&lt;br /&gt;
Learn about how to use applications that support ALSA. The Linux Audio Users Guide&lt;br /&gt;
Keep up to date with the news at M-Station or Open Audio Projects&lt;br /&gt;
The most current book about Linux audio is Linux Music and Sound&lt;br /&gt;
Find more applications at Sound &amp;amp; MIDI Software For Linux&lt;br /&gt;
&lt;br /&gt;
For professional quality, low latency audio routing use JACK - The Jack Audio Connection Kit&lt;br /&gt;
&lt;br /&gt;
==Template end==&lt;br /&gt;
&lt;br /&gt;
You can add specific hardware notes to paragraphs below.&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting'''&lt;br /&gt;
&lt;br /&gt;
If you are having problems where your sound card is detected but alsamixer complains there are no cards, or if sound seems to be working but you can't hear anything unless its through external speakers then have a look at [http://mcgannon.id.au/index.php?title=LG_LW60_Express this wiki] which I wrote for my LG LW60 Express laptop which has an Intel HDA ICH6 sound card, and comes up as a CMI9880 under alsa mixer. I now have sound working well but only with one channel. - zenum&lt;/div&gt;</summary>
		<author><name>Zenum</name></author>
	</entry>
</feed>