[PlanetCCRMA] oss or no oss?

Jim Wilferling wolf67@comcast.net
Thu Apr 10 09:30:03 2003

Hey Neighbors,
  This is probably a Nando question, But I'll let the list folks take a
crack at it.
  In the ccrma @home gude, There are detailed configuration instructions
for the config of the alsa drivers, etc. I had my system set up
accordingly, then along came shrike.I downloaded the iso's and did an
update from harddisk. everything seemed to work fine.
  Several says later, I got to poking around, and realized the lines in
/etc/rc.d/rc.sysinit (sound module loading) which I had previously
commented out, were no longer commented out.I re - edired the file, and
everything seems fine. I'm fairly certain I was loading the alsa modules
even with the lines left in. But the init for the new kernel looks a
little different, so I don't recognize all of it (i.e., where before It
used to sat starting alsasound: setting latency timer blah-blah-, now I
have three different lines, the first says statting sound-module via
kt686 blah-blah, then goes into a couple of lines about seq and midi.
This is no big emergency, but If anyone would take a look at my lsmod
output and modules.conf and let me know what you think (Do I have alsa
loaded correctly? Have I gotten rid of oss drivers? Stuff like that.)
 Even though the rc.sysinit was rewritten by the install, the halt
script was not. Normal?
  The biggie -- Is the peculiarity w/redhat concerning the module
loading portion of rc.sysinit no longer applicable? Is It safe for me to
experiment with leaving the lines in? Anyway, here's my output, any
comments or suggestions are welcome.

[root@wolf67 root]# lsmod
Module                  Size  Used by    Not tainted
ide-cd                 35548   0  (autoclean)
cdrom                  33312   0  (autoclean) [ide-cd]
snd-pcm-oss            45508   0  (autoclean)
snd-mixer-oss          16536   1  (autoclean) [snd-pcm-oss]
snd-seq-midi            5248   0  (unused)
snd-seq-midi-event      5928   0  [snd-seq-midi]
snd-seq                49616   0  [snd-seq-midi snd-seq-midi-event]
snd-via82xx            16076   1
snd-ac97-codec         45536   0  [snd-via82xx]
snd-pcm                85824   0  [snd-pcm-oss snd-via82xx]
snd-timer              20776   0  [snd-seq snd-pcm]
snd-page-alloc          8600   0  [snd-via82xx snd-pcm]
snd-mpu401-uart         5488   0  [snd-via82xx]
snd-rawmidi            19648   0  [snd-seq-midi snd-mpu401-uart]
snd-seq-device          6332   0  [snd-seq-midi snd-seq snd-rawmidi]
snd                    44612   0  [snd-pcm-oss snd-mixer-oss
snd-seq-midi snd-seq-midi-event snd-seq snd-via82xx snd-ac97-codec
snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               6692   5  [snd]
autofs                 13588   0  (autoclean) (unused)
3c59x                  29936   1
ipt_REJECT              3928   6  (autoclean)
iptable_filter          2412   1  (autoclean)
ip_tables              14904   2  [ipt_REJECT iptable_filter]
keybdev                 2912   0  (unused)
mousedev                5556   1
hid                    22116   0  (unused)
input                   5792   0  [keybdev mousedev hid]
usb-uhci               27084   0  (unused)
usbcore                79808   1  [hid usb-uhci]
ext3                   71776   3
jbd                    53876   3  [ext3]

 From rc.sysinit:

# tweak isapnp settings if needed.
if [ -n "$PNP" -a  -f /proc/isapnp -a -x /sbin/sndconfig ]; then
    /sbin/sndconfig --mungepnp >/dev/null 2>&1

# Load sound modules if and only if they need persistent DMA buffers
#if grep -q "options sound dmabuf=1" /etc/modules.conf 2>/dev/null ;
#  alias=`/sbin/modprobe -c | awk '/^alias sound / { print $3 }'`
#  if [ -n "$alias" -a "$alias" != "off" ]; then
#      action $"Loading sound module ($alias): " modprobe sound
#      RETURN=$?
#  fi
#  alias=`/sbin/modprobe -c | awk '/^alias sound-slot-0 / { print $3 }'`
#  if [ -n "$alias" -a "$alias" != "off" ]; then
#      action $"Loading sound module ($alias): " modprobe sound-slot-0
#      RETURN=$?
#  fi

if [ -f /proc/sys/kernel/modprobe ]; then
   if [ -n "$USEMODULES" ]; then
       sysctl -w kernel.modprobe="/sbin/modprobe" >/dev/null 2>&1
       sysctl -w kernel.hotplug="/sbin/hotplug" >/dev/null 2>&1

my /etc/modules.conf:

alias parport_lowlevel parport_pc
alias eth0 3c59x
alias usb-controller usb-uhci

# -- Keep modules from being autocleaned
add options -k snd-card-0

# I2C module options
alias char-major-89 i2c-dev
options lm78 probe=0,0x00
options adm1021
options lm80 ignore=0,0x29,0,0x2a,0,0x2b
options lm75 ignore=0,0x4c,0,0x4d,0,0x4e

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-via82xx
alias char-major-14 soundcore
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
options snd major=116 cards_limit=1 device_mode=0666
options snd-via82xx index=0
# --- END: Generated by ALSACONF, do not edit. ---

Jim Wilferling <wolf67@comcast.net>