Next Previous Contents

2. NOWTO - a quick install guide

If you want sound and you want it NOW! and not after reading this HOWTO, this quick tour through the ALSA driver installation might be of help.

2.1 Installing

The ALSA drivers versions 0.3.0, 0.3.1 and 0.3.2 have various problems due to the restructuring of the mixer interface. Please use an appropriate version (see the note about versions). You will probably want to use the 0.3.0-pre4 version.

Just the all time ``./configure - make - make install'' stuff. Do this for drivers, library and utilities. You need all three because the utilities help you to unmute your card. Kernels 2.2.x need to have general sound support (without choosing a specific card), whereas kernels 2.0.x need to have all sound support disabled

The ALSA drivers have their own devices, you can make them usinge the ./snddevices script.

You need to load the module for your card (or use kmod) and if you want sound to be backwards compatible with the Linux kernel sound drivers (yes you want this) you need another module called snd-pcm1-oss. See the section Which module for which card to find out which module to load. After loading, you can look in /proc/asound for various information about the ALSA drivers.

2.2 Playing and recording sound

A few remarks. ALSA has it's own devices in /dev/snd, for example /dev/snd/pcmC0D1 is Card 0, Device 1. You can use the old /dev/pcmXY devices if you loaded snd-pcm1-oss for backwards compatibility. Before you can play any sound, you need to unmute the card with "amixer". Type "amixer", then try something like

amixer pcm 100 unmute

Generally you can use options ``mute'' or ``unmute'', ``rec'' or ``norec'', numbers or left:right.

That's it! Now if it works, it works. If it doesn't work, you may need to actually read this HOWTO...


Next Previous Contents