[PlanetCCRMA] OSS emulation in ALSA.

Henrik Persson ccrma@hildur.pp.se
Sun Sep 26 10:51:02 2004


Hi.
This may be the wrong list but I give it a try.

I have some problems with OSS emulation in ALSA. I have gone thru almost every 
HOWTO on the net regarding the asym plugin and OSS. The asym plugin seems to 
work as long as I use pure ALSA apps but if I try to start an OSS app it 
eather blocks or tell me that /dev/dsp is busy.

Is there any way to make ALSA and OSS emulation to use the same asym device?

Below is my .asoundrc

Regards
Henrik

--.asoundrc --

pcm.inetl8x0 {
        type hw
        card 0
}

pcm.emu10k1 {
        type hw
        card 1
}

pcm.ice1712 {
        type hw
        card 2
}
pcm.!default {
        type plug
        slave.pcm "asymed"
}
pcm.default {
        type plug
        slave.pcm "asymed"
}
pcm.dsp0 {
        type plug
        slave.pcm "asymed"
}
pcm.asymed {
        type asym
        playback.pcm "dmixed"
        capture.pcm "dsnooped"
}
pcm.dmixed {
        type dmix
        ipc_key 1025
        slave {
                pcm "hw:0,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 48000
        }
        bindings {
                0 0
                1 1
        }
}
pcm.dsnooped {
        type dsnoop
        ipc_key 1027
        slave {
                pcm "hw:0,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 48000
        }
        bindings {
                0 0
                1 1
        }
}

ctl.intel8x0 {
        type hw
        card 0
}

ctl.emu10k1 {
        type hw
        card 1
}

ctl.ice1712 {
        type hw
        card 2
}
ctl.mixer0 {
        type hw
        card 0
}