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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux