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. For now, ALSA drivers can only be compiled as modules, although this may change when they get integrated into the standard kernel tree.
The modprobe program must know which modules are used for the device major numbers.Native ALSA devices have got default number 116. Thus a line like alias char-major-116 snd must be added to /etc/modules.conf. [1] If you have compiled the ALSA driver with the OSS/Free emulation code, then you will need to add lines as explained below: The ALSA driver uses soundcore multiplexer for 2.2+ kernels and OSS compatible devices. You should add line like alias char-major-14 soundcore
xyz@localhost#pico /etc/modules.conf # ALSA portion alias char-major-116 snd # OSS/Free portion alias char-major-14 soundcore |
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.
xyz@localhost#pico /etc/modules.conf # ALSA portion alias snd-card-0 snd-interwave alias snd-card-1 snd-card-es1370 # OSS/Free portion alias sound-slot-0 snd-card-0 alias sound-slot-1 snd-card-1 |
We are finished at this point with the configuration for ALSA native devices, but you may also need autoloading forALSA add-on OSS/Freeemulation 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.
xyz@localhost#pico
/etc/modules.conf
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-12 snd-pcm-oss
# OSS/Free portion- card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss |
| [1] | Before you send a mail complaining that "i don't have modules.conf, where do i find it ....." ,The conf.modules has been deprecated with a few distro's so in your case, it may still be conf.modules. Basically they are both same, but recent version of modutils uses modules.conf instead .Nothing to worry about as such, optionally please update to latest version of modutils.This should solve your problem. |