On Mon, 03 May 2004 10:26:57 +0200 (METDST)
Clemens Ladisch <[EMAIL PROTECTED]> wrote:

> csj wrote:
> > > >How can I define the (default) sound card used by ALSA's OSS
> > > >emulation?
> 
> By symlinking /dev/dsp to /dev/dsp2.
> 
> > I'm using running linux 2.6 with udev. Under udev I don't have
> > /dev/dsp0 or/dev/mixer0. I have /dev/dsp and /dev/mixer, which
> > aren't symlinks.
> >
> > crw-rw----    1 root     audio     14,   3 2004-05-03 06:25 /dev/dsp
> > crw-rw----    1 root     audio     14,   0 2004-05-03 06:25
> > /dev/mixer
> 
> Change the udev configuration file to give proper names (dsp0/mixer0)
> to the device nodes of the first sound card, and to name the third
> /dev/dsp.

Following your hint I composed the following udev.rules:

KERNEL="dsp",                   NAME="dsp0"
KERNEL="dsp[1-9]*",             NAME="dsp%n"
KERNEL="adsp",                  NAME="adsp0"
KERNEL="adsp[1-9]",             NAME="adsp%n"
KERNEL="mixer",                 NAME="mixer0"
KERNEL="mixer[1-9]*",           NAME="mixer%n"

This got rid of the hard /dev/dsp and /dev/mixer.  To get my third sound
card recognized, I added the following links to my links.conf:

L dsp           dsp2
L mixer         mixer2
L adsp          adsp2

What I found strange after the whole exercise is that the kernel
defaults the first sound card to dsp/mixer rather than dsp0/mixer0.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to