slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Wed Apr 30, 2003 8:07 am Post subject: Make alsa-oss work correctly again |
|
|
After updating alsa-driver I no longer could get alsa-oss to work automatically, however much I changed in the config files. I ended up writing a small boot script, it might help some other people. It assumes the default devfsd.conf variables, ie users have to belong to audio group to be able to listen to anything
Here is the script:
Code: | #!/sbin/runscript
depend() {
need alsasound
}
start() {
ebegin "Loading alsa-oss modules"
modprobe snd-pcm-oss
modprobe snd-mixer-oss
chown -R root.audio /dev/sound
chmod -R 770 /dev/sound
eend $?
}
stop() {
ebegin "Unloading alsa-oss modules"
rmmod snd-pcm-oss
rmmod snd-mixer-oss
eend $?
}
|
Save as /etc/init.d/alsa-oss and add to boot run level.
This is very much a hack, but it works well enough for me. I thought someone might find it useful. |
|