Re: [Alsa-user] Defining soundcard for OSS emulation
Brought to you by:
perex
From: csj <cs...@gm...> - 2004-05-04 18:11:41
|
On Mon, 03 May 2004 10:26:57 +0200 (METDST) Clemens Ladisch <cl...@la...> 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. |