View previous topic :: View next topic |
Author |
Message |
ydleiF Apprentice
Joined: 15 Nov 2002 Posts: 170 Location: Southeast Michigan, USA
|
Posted: Mon Jul 26, 2004 12:58 am Post subject: /etc/init.d/alsasound: how to make it stop loading OSS? |
|
|
# /etc/init.d/alsasound start
* Loading ALSA drivers...
* Using ALSA OSS emulation
* Loading: snd-mixer-oss
* Loading: snd-pcm-oss
* Loading: snd-cmipci
* Running card-dependent scripts
* Restoring Mixer Levels
I do not want OSS Loaded at all, so how do I prevent it?
I edited /etc/modules.d/alsa and commented out anything OSS related, but it still does it.
How do I stop OSS support from being loaded? |
|
Back to top |
|
|
El_Presidente_Pufferfish Veteran
Joined: 11 Jul 2002 Posts: 1179 Location: Seattle
|
Posted: Mon Jul 26, 2004 1:34 am Post subject: |
|
|
Code: | if modprobe -c | grep -q "snd.*oss$" ; then
# Test for use of OSS
einfo "Using ALSA OSS emulation"
OSS="$(modprobe -l | grep "snd.*oss" | sed -e "s:\/.*\/::" -e "s:\..*::")"
# Add oss modules to list
for i in ${OSS}
do
DRIVERS="${i} ${DRIVERS}"
done
fi
|
Looks sorta like its looking for OSS compat modules, and if it finds them, loads them.
I'd guess you should just not build the compat modules at all.
It's not loading OSS drivers, anyways, just a compatibility layer for programs that dont use ALSA natively yet |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Mon Jul 26, 2004 1:44 am Post subject: |
|
|
Dude. ALSA --> OSS compatibility is a GOOD thing. It allows you to play games or run programs which have no native ALSA driver. In short, it isn't hurting you, and you're still using ALSA. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
|