devfs and sound

Eric Dillenseger eric at naxalite.homelinux.org
Sat Nov 23 16:03:20 PST 2002


Hi,
devfs again.
Every sound application I tried gave me the same error: 

$:> madplay some-audio-file
MPEG Audio Decoder 0.14.2 (beta) - Copyright (C) 2000-2001 Robert Leslie
audio: /dev/dsp: No such device

So I read 'Devfs with kernel modules' hint and 'dsp+devfsd' hint.
I had a look at 
http://www.google.com/search?hl=en&lr=&ie=ISO-8859-
1&q=+site:archive.linuxfromscratch.org+/dev/dsp+devfs+linuxfromscratch&b
tnG=Google+Search
I found a link to a thread looking like my problem.
But it still doesn't work (devfs's driving me nut).
Here is my /etc/devfsd.conf:

REGISTER    .*      MKOLDCOMPAT
UNREGISTER  .*      RMOLDCOMPAT

# You may comment these out if you don't use the original "new" names
REGISTER    .*      MKNEWCOMPAT
UNREGISTER  .*      RMNEWCOMPAT

# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP      .*      MODLOAD

# Uncomment this if you want permissions to be saved and restored
# Do not do this for pseudo-terminal devices
REGISTER    ^pt[sy]     IGNORE
CREATE      ^pt[sy]     IGNORE
CHANGE      ^pt[sy]     IGNORE
DELETE      ^pt[sy]     IGNORE
REGISTER    .*      COPY    /dev-state/$devname $devpath
CREATE      .*      COPY    $devpath /dev-state/$devname
CHANGE      .*      COPY    $devpath /dev-state/$devname
DELETE      .*      CFUNCTION GLOBAL unlink /dev-state/$devname
RESTORE     /dev-state

LOOKUP      snd     MODLOAD ACTION snd
REGISTER    ^snd/.*     PERMISSIONS root.audio 660
REGISTER    ^sound/.*   PERMISSIONS root.audio 660
LOOKUP      sound/audio EXECUTE mknod -m 666 sound/audio c 14 4
LOOKUP      sound/dsp   EXECUTE mknod -m 666 sound/dsp c 14 3
LOOKUP      dsp     EXECUTE mknod -m 666 dsp c 14 3
REGISTER    sound/mixer MKOLDCOMPAT

And my /etc/modules.conf

alias char-major-89 i2c-dev
alias snd-card-0 snd-via686
alias char-major-116 snd
alias sound-slot-0 snd-card-0
alias /dev/snd* snd-via686
post-install snd-via686 /usr/sbin/alsactl restore
pre-remove snd-via686 /usr/sbin/alsactl store

lsmod output:

$:> lsmod
Module                  Size  Used by    Not tainted
soundcore               3556   0 (autoclean)
snd-via686              6308   0 (autoclean)
snd-pcm                47456   0 (autoclean) [snd-via686]
snd-timer              10176   0 (autoclean) [snd-pcm]
snd-ac97-codec         23268   0 (autoclean) [snd-via686]
snd-mpu401-uart         2560   0 (autoclean) [snd-via686]
snd-rawmidi            11584   0 (autoclean) [snd-mpu401-uart]
snd-seq-device          3792   0 (autoclean) [snd-rawmidi]
snd                    21604   0 (autoclean) [snd-via686 snd-pcm 
snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]

$:> ls /dev/dsp
crw-rw-rw-    1 root     root      14,   3 nov 24 00:53 /dev/dsp
$:> ls /dev/sound/dsp
crw-rw-rw-    1 root     root      14,   3 nov 24 00:53 /dev/sound/dsp

The only thing I've noticed in my logs is:

Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-1
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-2
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-3
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-4
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-5
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-6
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module snd-card-7
Nov 24 00:53:20 lfs modprobe: modprobe: Can't locate module 
sound-service-0-3

Someone has an idea?

--
[ -f /home/usr/bed ] mv /usr/desk /home/usr/bed && sleep
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list