Skip to contentSkip to conversation

alsa sound module on 2.5.72 --- does not create /dev/snd/controlC0

DISCUSSION Frank Victor Fischer 2 participants 2 messages Jun 19, 2003

lore
Share & tools
lore
#0 lore raw

Hello out there

I have just switched from 2.5.70 to 2.5.72 on my test box, and found that I have problems using the mixer for emu10k1, with both alsamixer and amixer. Using 2.5.71 hit the same problem.

Next, I have used the 2.5.70 source tree for the 2.5.72 build, but the problem persists.

I have then straced the command "amixer set Master 50 unmute" on both 2.5.70 and 2.5.72, which revealed that on .72 /dev/snd/controlC0 is not created (the mixer program cannot open it), because /dev/snd is a symbolic link to /proc/asound/dev which does not exist.

What am I missing?
I am not on the mailing list, so if possible CC to [email protected]

Thanks in advance.
Victor

(partial output from strace amixer set Master 50 unmute follows)
=====
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=7034, ...}) = 0 open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=7034, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000 read(3, "#\n# ALSA library configuration "..., 4096) = 4096

brk(0x8053000)                          = 0x8053000
brk(0x8054000)                          = 0x8054000
brk(0x8055000)                          = 0x8055000
read(3, "efaults.ctl.card\n\t\t\t}\n\t\t}\n\t}\n\tty"..., 4096) = 2938
brk(0x8056000)                          = 0x8056000
brk(0x8057000)                          = 0x8057000
brk(0x8058000)                          = 0x8058000
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40015000, 4096)                = 0
brk(0x8059000)                          = 0x8059000
access("/etc/asound.conf", R_OK)        = -1 ENOENT (No such file or directory)
access("/root/.asoundrc", R_OK)         = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/dev/aloadC0", O_RDONLY)          = 3
close(3)                                = 0
open("/dev/snd/controlC0", O_RDWR)      = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/dev/aloadC0", O_RDONLY)          = 3
close(3)                                = 0
open("/dev/snd/controlC0", O_RDWR)      = -1 ENOENT (No such file or directory)
write(2, "amixer: ", 8)                 = 8

write(2, "Mixer attach default error: No s"..., 53) = 53
========

#1 lore raw
Quoted 9 lines · Frank Victor Fischer

Hello out there

I have just switched from 2.5.70 to 2.5.72 on my test box, and found that I have problems using the mixer for emu10k1, with both alsamixer and amixer. Using 2.5.71 hit the same problem.

Next, I have used the 2.5.70 source tree for the 2.5.72 build, but the problem persists.

Quoted 6 lines

I have then straced the command "amixer set Master 50 unmute" on both 2.5.70 and 2.5.72, which revealed that on .72 /dev/snd/controlC0 is not created (the mixer program cannot open it), because /dev/snd is a symbolic link to /proc/asound/dev which does not exist.

What am I missing?

You need to rerun the snddevices scripts (distributed in the alsa-driver package) or use devfs. The dynamic devices in the proc filesystem were removed on request to clean up the ALSA code.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs