On my system, the "alsa" initscript fails to properly start the alsa drivers. 

According to the script, start() loads the "snd" module and checks for 
presense of /proc/asound/dev:

function start() {

    found_driver="false"
    echo -n "Starting ALSA version $alsa_version:"

  # First load the ALSA common driver and check whether devfs properly
  # can be available when the working kernel has devfs support.
    /sbin/modprobe snd
    if [ ! -e /dev/snd ]; then
      if [ -d /proc/asound/dev ]; then
        # you are using the kernel without devfs so simply create
        # symlink
        ln -s /proc/asound/dev /dev/snd
      else
        # you are using the kernel with devfs but disabling devfs.
        /sbin/modprobe -r snd
        exit 0
      fi
    fi

For systems with devfs enabled, this is no doubt functional.  However, on my 
system (no devfs), module "snd" produces the following:

[root@tetsuo proc]# ls /proc/asound
cards  devices  oss-devices  seq/  sndstat  version

As you can see, there is no directory called "dev".  Consequently, the script 
removes snd and exits.

Commenting out the "exit 0" in the code above allows the script to continue 
normally and allows alsa to properly load the drivers.

Starting alsa in that manner produces this in /proc/asound:

[root@tetsuo proc]# ls /proc/asound
0@  card1/  cards  devices  oss-devices  pcm  seq/  sndstat  timers  version

As you can see, there is still no /proc/asound/dev.  This script can only 
fail without devfs running.  You may wish to choose an alternate more 
functional method of detecting devfs.

-J

--
Versions:
Linux tetsuo.farm9.com 2.4.8-24mdksmp #1 SMP Mon Sep 17 13:36:07 CEST 2001 
i686 unknown

initscripts-6.27-10mdk

Relevant section of /etc/modules.conf:
# ALSA
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-card-emu10k1
alias sound-slot-0 snd-card-0
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-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss




-- 
John P. Silva                            [EMAIL PROTECTED]


Reply via email to