[linux-audio-user] Re: modules.conf for both alsa and oss was Re: [linux-audio-user] maestro3 ?

Joachim B Haga cjhaga+list at ifi.uio.no
Wed May 21 08:04:00 EDT 2003


> i suppose if you cant run the two side by side, its
> possible i could have 2 modules.conf files, and swap them when i need
> to run the quattro....?

A bit kludgy but possible. I have both /etc/modules.conf.oss and
/etc/modules.conf.alsa, and use a small shell script to switch
between them and clean out the old modules (and some other stuff,
not relevant here):

#!/bin/sh

case $1 in
oss)    rm /etc/modules.conf
        ln -s /etc/modules.conf.oss /etc/modules.conf
        lsmod | awk '/^snd/ {print $1}' | xargs modprobe -r
        ;;
alsa)   rm /etc/modules.conf
        ln -s /etc/modules.conf.alsa /etc/modules.conf
        modprobe -r ymfpci sound
        ;;
*)      echo "Try again"
        exit 1
        ;;
esac

-- 
joachim b haga



More information about the Linux-audio-user mailing list