  <?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=Sellsky</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=Sellsky"/>
	<link rel="alternate" type="text/html" href="https://www.alsa-project.org/wiki/Special:Contributions/Sellsky"/>
	<updated>2026-04-07T21:51:19Z</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=6735</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=6735"/>
		<updated>2014-08-27T23:22:56Z</updated>

		<summary type="html">&lt;p&gt;Sellsky: /* The .asoundrc file */ Software volume control for e. g. Asus Xonar XD/XDG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
| __TOC__&lt;br /&gt;
|}&lt;br /&gt;
==Template Matrix:Soundcard==&lt;br /&gt;
&lt;br /&gt;
This is the generic ALSA module template which is intended to give an overview for '''all''' sound modules.&lt;br /&gt;
&lt;br /&gt;
If you want to add specific hardware information or information for a specific module, please '''DO NOT modify''' this template. Add extra information above and/or bellow to the specific Matrix:Module-* page instead. Please read the [[Matrix:Description|Universal Soundcard Description]] for more details.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;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 [http://www.tldp.org/ 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/&amp;amp;#x200B;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 &amp;lt;tt&amp;gt;soundcore&amp;lt;/tt&amp;gt; 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 installation==&lt;br /&gt;
&lt;br /&gt;
This explains how to build from source tarballs. See [[GIT_Server]] for instructions on getting and using the latest source from git repositories.&lt;br /&gt;
&lt;br /&gt;
Type the following commands in the shell of your choice.&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 &amp;lt;tt&amp;gt;alsa-driver&amp;lt;/tt&amp;gt; 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;
Now unzip and install the &amp;lt;tt&amp;gt;alsa-lib&amp;lt;/tt&amp;gt; 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 &amp;lt;tt&amp;gt;alsa-firmware&amp;lt;/tt&amp;gt; package:&lt;br /&gt;
&lt;br /&gt;
        cd ..&lt;br /&gt;
        bunzip2 alsa-firmware-xxx&lt;br /&gt;
        tar -xf alsa-firmware-xxx&lt;br /&gt;
        cd alsa-firmware-xxx&lt;br /&gt;
        ./configure ; make ; make install&lt;br /&gt;
&lt;br /&gt;
Now unzip and install the &amp;lt;tt&amp;gt;alsa-utils&amp;lt;/tt&amp;gt; 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;
Now adjust your soundcard's volume levels. All mixer channels are muted by default. You must use a native mixer program to unmute appropriate channels, for example &amp;lt;tt&amp;gt;alsamixer&amp;lt;/tt&amp;gt; from the &amp;lt;tt&amp;gt;alsa-utils&amp;lt;/tt&amp;gt; package. Note that some usb-audio devices do not have internal mixer controls. Run:&lt;br /&gt;
&lt;br /&gt;
        alsamixer&lt;br /&gt;
&lt;br /&gt;
You can also look at the utils/&amp;amp;#x200B;alsasound file. This script is designed for the ''RedHat Linux'' distribution, but it can also be used with other distributions which use System&amp;amp;nbsp;V style rc init scripts. This will allow you to load your modules at boot time. If you don't want to do this you can of course 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 &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modules.conf&amp;lt;/tt&amp;gt;, where do I find it ……&amp;quot; ‒ the &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;conf.modules&amp;lt;/tt&amp;gt; has been deprecated with a few distro's, but in your case it may still be &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;conf.modules&amp;lt;/tt&amp;gt;. Basically they are both the same, but recent version of &amp;lt;tt&amp;gt;modutils&amp;lt;/tt&amp;gt; use &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modules.conf&amp;lt;/tt&amp;gt; instead. Nothing to worry about as such, optionally please update to the latest version of &amp;lt;tt&amp;gt;modutils&amp;lt;/tt&amp;gt;. 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 &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modules.conf&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
{{Note|'''Debian GNU/Linux users''' need to save this information into a file in the &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modutils/&amp;lt;/tt&amp;gt; directory (eg. &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modutils/&amp;amp;#x200B;alsa&amp;lt;/tt&amp;gt;) and run &amp;lt;tt&amp;gt;update-modules&amp;lt;/tt&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note also that the kernel module '''soundcore''' has been renamed in Debian kernels &amp;gt;2.6.23 into '''snd'''. A workaround is to put a symlink at /lib/modules/x.x.xx/kernel/sound/soundcore.ko pointing to '''snd.ko'''}}&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;
To copy and paste the above to your &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modules.conf&amp;lt;/tt&amp;gt; file follow these [http://www.alsa-project.org/alsa-doc/doc-php/file-edit.php instructions].&lt;br /&gt;
&lt;br /&gt;
==modules.conf==&lt;br /&gt;
&lt;br /&gt;
This is a short explanation of what happens in the &amp;lt;tt&amp;gt;/etc/&amp;amp;#x200B;modules.conf&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
===Native devices===&lt;br /&gt;
&lt;br /&gt;
After the main multiplexer is loaded, its code automatically requests the top level sound card module. String &amp;lt;tt&amp;gt;snd-card-''%i''&amp;lt;/tt&amp;gt; is requested for native devices where ''%i'' is the sound card number, counted from zero (the first sound card) to seven (the eighth sound card). String &amp;lt;tt&amp;gt;sound-slot-''%i''&amp;lt;/tt&amp;gt; is requested for native devices where ''%i'' is slot number for the corresponding ALSA owner (which is basically the sound card number). The options line allows you to set various configuration options before the module is loaded. String &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt; (or &amp;lt;tt&amp;gt;snd_id&amp;lt;/tt&amp;gt;) lets you set the name of the card which is then returned in the &amp;lt;tt&amp;gt;/proc/&amp;amp;#x200B;asound/&amp;amp;#x200B;cards&amp;lt;/tt&amp;gt; file, i.e. to user space applications. Other options may be available depending on the specific card. Options for these cards are found in the &amp;lt;tt&amp;gt;INSTALL&amp;lt;/tt&amp;gt; file or above.&lt;br /&gt;
&lt;br /&gt;
        username@hostname# 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;
{{Note|&lt;br /&gt;
''For drivers older than 0.9.0rc5 use:''&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;options snd-cmipci snd_id=&amp;quot;first&amp;quot; snd_mpu_port=0x330&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|NB}}&lt;br /&gt;
&lt;br /&gt;
{{Note|The &amp;quot;&amp;lt;tt&amp;gt;snd_&amp;lt;/tt&amp;gt;&amp;quot; prefix has been removed from the module options to fit with the kernel standard.|NB}}&lt;br /&gt;
&lt;br /&gt;
===Autoloading OSS/free emulation===&lt;br /&gt;
&lt;br /&gt;
At this point we are finished with the configuration for ALSA native devices, but you may also need autoloading for the OSS/Free emulation modules, an ALSA add-on. At this time only one module does not depend on any others, thus must be loaded separately: &amp;lt;tt&amp;gt;snd-pcm1-oss&amp;lt;/tt&amp;gt;. String &amp;lt;tt&amp;gt;sound-service-''%i''-''%i''&amp;lt;/tt&amp;gt; is required for OSS/Free service where the first ''%i'' is the slot number/&amp;amp;#x200B;sound card number and the second ''%i'' is the service number.&lt;br /&gt;
&lt;br /&gt;
        username@hostname# pico /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 &amp;lt;tt&amp;gt;snd-seq-oss&amp;lt;/tt&amp;gt; is not necessary on the second device, because there is only one &amp;lt;tt&amp;gt;/dev/&amp;amp;#x200B;sequencer&amp;lt;/tt&amp;gt; regardless how many devices you have.&lt;br /&gt;
&lt;br /&gt;
===The .asoundrc file===&lt;br /&gt;
&lt;br /&gt;
[[Asoundrc|This file]] allows you to have more advanced control over your card/&amp;amp;#x200B;device. For most setups the default, system-wide configuration is sufficient. You may change this file only for special setup. The &amp;lt;tt&amp;gt;.asoundrc&amp;lt;/tt&amp;gt; file consists of definitions for the various sound devices available in your system. It also provides access to the pcm plugins in &amp;lt;tt&amp;gt;alsa-lib&amp;lt;/tt&amp;gt;. These allow you to do tricky things like combine your cards into one or access multiple I/O streams on your multi-channel card.&lt;br /&gt;
&lt;br /&gt;
Below is the most basic definition (only example - not required to define at all).&lt;br /&gt;
&lt;br /&gt;
Make a file called &amp;lt;tt&amp;gt;.asoundrc&amp;lt;/tt&amp;gt; in your home and/&amp;amp;#x200B;or root directory:&lt;br /&gt;
&lt;br /&gt;
        vi ~/.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|unknown}}} {&lt;br /&gt;
           type hw&lt;br /&gt;
           card 0&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
====Software volume control====&lt;br /&gt;
If your card doesn't have hardware volume control (e. g. Asus Xonar XD/XDG), you might want to create software Master control. Edit .asoundrc as follows.&lt;br /&gt;
&lt;br /&gt;
        pcm.softvol {&lt;br /&gt;
           type softvol&lt;br /&gt;
           slave {&lt;br /&gt;
              pcm &amp;quot;dmix&amp;quot;&lt;br /&gt;
           }&lt;br /&gt;
           control {&lt;br /&gt;
              name &amp;quot;Master&amp;quot;&lt;br /&gt;
              card 0&lt;br /&gt;
           }&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        pcm.!default {&lt;br /&gt;
          type plug&lt;br /&gt;
          slave.pcm &amp;quot;softvol&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
Restart alsa, then open a music player, play a file and close the player. Then check alsamixer, as you should have a Master volume control. Note that this control doesn't have a mute option.&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
[[Category:Module]]&lt;br /&gt;
'''Generic'''&lt;br /&gt;
&amp;lt;!-- LINKS THAT ARE BROKEN: --&lt;br /&gt;
&amp;lt;!-- NOTE: find some new ones and add them here --&lt;br /&gt;
* Become an active member of the Linux Audio Community at [http://www.linuxdj.com/audio/lad/index.php Linux Audio Developers] or [http://www.linuxdj.com/audio/lad/subscribelau.php Linux Audio Users]&lt;br /&gt;
* Learn about how to use applications that support ALSA. [http://lau.linuxaudio.org/guide/index.php The Linux Audio Users Guide] --&amp;gt;&lt;br /&gt;
* Keep up to date with the news at [http://www.mstation.org/ M-Station]&amp;lt;!-- or [http://audio.opensrc.org/ Open Audio Projects]--&amp;gt;&lt;br /&gt;
* The most current book about Linux audio is [http://www.nostarch.com/lms.htm Linux Music and Sound] (September 2000)&lt;br /&gt;
* Find more applications at [http://sound.condorow.net/ Sound &amp;amp; MIDI Software For Linux SourceForge]&lt;br /&gt;
* For professional quality, low latency audio routing use [http://jackaudio.org/ JACK] ‒ the “Jack Audio Connection Kit”.&lt;br /&gt;
&lt;br /&gt;
'''Specific'''&lt;br /&gt;
* [[Special:Whatlinkshere/Matrix:{{PAGENAME}}|Users of this module]]&lt;br /&gt;
* [http://www-old.alsa-project.org/alsa-doc/doc-php/template.php?module={{{module}}}#notes Old User contributed notes] at www-old.alsa-project.org (old page)&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Template Matrix:Soundcard – bottom notes==&lt;br /&gt;
&lt;br /&gt;
If you have additional ''specific'' links, add them directly after this template to the specific Matrix:Module-* page. You can also add specific hardware notes to paragraphs below. Please read the [[Matrix:Description|Universal Soundcard Description]] for more details.&lt;br /&gt;
&lt;br /&gt;
'''DO NOT modify''' this template with specific module information.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sellsky</name></author>
	</entry>
</feed>