Difference between revisions of "Virtual ALSA"

From WA2IAC Wiki
Jump to: navigation, search
(Created page with "= Page Objective = This page contains information about emulating ALSA in OpenVZ and/or KVM. There is no consideration given for the case of connecting to the hardware audio. ...")
 
(ALSA on OpenVZ)
Line 3: Line 3:
  
 
Note that I have a preference for OpenVZ over KVM when it can be used... because it's easier to use. So, this page will tend to focus on OpenVZ solutions.
 
Note that I have a preference for OpenVZ over KVM when it can be used... because it's easier to use. So, this page will tend to focus on OpenVZ solutions.
 +
 +
 +
== ALSA Dummy Driver ==
 +
 +
* The Official ALSA Wiki Article on the snd_dummy driver: http://www.alsa-project.org/main/index.php/Matrix:Module-dummy
 +
 +
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 http://www.tldp.org/ for details of how to compile a kernel.
 +
 +
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.
 +
 +
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type:
 +
 +
<pre>
 +
modinfo soundcore
 +
</pre>
 +
 +
If this command returns that you have this module, then you don't need to recompile your kernel.
  
 
== ALSA on OpenVZ ==
 
== ALSA on OpenVZ ==

Revision as of 17:51, 6 December 2013