Skip to contentSkip to conversation

ALSA busted in 2.5.69

DISCUSSION Torrey Hoffman 4 participants 5 messages May 8, 2003 – May 9, 2003

lore
Share & tools
lore
#0 lore raw

ALSA isn't working for me in 2.5.69. It appears to be because /proc/asound/dev is missing the control devices.

lsmod says I have:

Module                  Size  Used by
snd_cmipci             22168  -
snd_pcm                59968  -
snd_page_alloc          4140  -
snd_opl3_lib            5896  -
snd_timer              13888  -
snd_hwdep               4096  -
snd_mpu401_uart         3144  -
snd_rawmidi            12768  -
snd                    29156  -
soundcore               3296  -

and no errors were reported while loading those modules, but "ls -l /proc/asound/dev" shows only:
total 0
crw-rw-rw- 1 root root 116, 33 May 8 16:37 timer

and all the alsa utilities die trying to open other entries under /dev/snd, which is a symlink to /proc/asound/dev (as set up by the ALSA script.)

For instance, strace alsamixer shows this at the end:

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) = -1 ENODEV (No such device)
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) = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDWR) = -1 ENOENT (No such file or
directory)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000
write(1, "\n", 1
) = 1
write(2, "alsamixer: function snd_ctl_open"..., 79alsamixer: function snd_ctl_open failed for default: No such file or directory ) = 79
munmap(0x40017000, 4096) = 0
exit_group(1) = ?

Suggestions???

Signature · 1 line
Torrey Hoffman <[email protected]>
#1 lore raw
Quoted 5 lines · On 08-May-2003 Torrey Hoffman wrote:

ALSA isn't working for me in 2.5.69. It appears to be because /proc/asound/dev is missing the control devices.
open("/dev/snd/controlC0", O_RDWR) = -1 ENOENT (No such file or
directory)
[...]

If you are not using devfs, you need to create the devices. There is a script in the ALSA-driver package to do that. Otherwise I can't help you because I never tried devfs and linux 2.5.x.

Bye.

#2 lore raw
Quoted 9 lines · Giuliano Pochini
Quoted 5 lines · On 08-May-2003 Torrey Hoffman wrote:

ALSA isn't working for me in 2.5.69. It appears to be because /proc/asound/dev is missing the control devices.
open("/dev/snd/controlC0", O_RDWR) = -1 ENOENT (No such file or
directory)
[...]

Quoted 4 lines

If you are not using devfs, you need to create the devices. There is a script in the ALSA-driver package to do that. Otherwise I can't help you because I never tried devfs and linux 2.5.x.

I've the same problem, using devfs: (.69-mm3)

ds666:/dev/snd# ls -l
total 0
crw-rw----    1 root     audio    116,   0 Jan  1  1970 controlC0
crw-rw----    1 root     audio    116,  32 Jan  1  1970 controlC1
crw-rw----    1 root     audio    116,  64 Jan  1  1970 controlC2
crw-rw----    1 root     audio    116,  96 Jan  1  1970 controlC3
crw-rw----    1 root     audio    116, 128 Jan  1  1970 controlC4
crw-rw----    1 root     audio    116, 160 Jan  1  1970 controlC5
crw-rw----    1 root     audio    116, 192 Jan  1  1970 controlC6
crw-rw----    1 root     audio    116, 224 Jan  1  1970 controlC7

CONFIG_SND=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_EMU10K1=y
CONFIG_SND_VIA82XX=m

CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
CONFIG_DEVPTS_FS=y

#3 lore raw
In reply to Giuliano Pochini
Quoted 3 lines · Giuliano Pochini
Quoted 2 lines · On 08-May-2003 Torrey Hoffman wrote:

ALSA isn't working for me in 2.5.69. It appears to be because /proc/asound/dev is missing the control devices.

...

Quoted 3 lines

If you are not using devfs, you need to create the devices. There is a script in the ALSA-driver package to do that. Otherwise I can't help you because I never tried devfs and linux 2.5.x.

No. /dev/snd is a symbolic link to /proc/asound/dev, and that symbolic link was created by the script you mention. (I am not using devfs.)

So the missing "/dev/snd/controlC0" should actually be created by the ALSA modules in the proc filesystem as "/proc/asound/dev/controlC0". But only the timer device is there.

(This works under Red Hat 9's standard kernel with the ALSA 0.9.3 drivers, by the way.)

Torrey

#4 lore raw
In reply to Torrey Hoffman
Quoted 3 lines · Torrey Hoffman

ALSA isn't working for me in 2.5.69. It appears to be because /proc/asound/dev is missing the control devices.

I have been using ALSA for my soundcards for some days, and today I booted into 2.5.69, and everything still works.

I used the same .config file in both kernel versions, and did a "make oldconfig" to adapt the older to the newer version.

Quoted 2 lines

lsmod says I have:

Module                  Size  Used by
cls_u32                 6596  1 [unsafe]
sch_ingress             3264  1 [unsafe]
ipt_LOG                 4416  1 
ipt_limit               1728  1 
ipt_state               1408  1 
iptable_filter          2112  1 
ipt_MASQUERADE          2816  1 
iptable_nat            20052  2 ipt_MASQUERADE
ip_conntrack           24012  3 ipt_state,ipt_MASQUERADE,iptable_nat
ip_tables              14208  6 ipt_LOG,ipt_limit,ipt_state,iptable_filter,ipt_MASQUERADE,iptable_nat
ppp_deflate             5056  0 [unsafe]
zlib_deflate           21240  1 ppp_deflate
zlib_inflate           21056  1 ppp_deflate
bsd_comp                5376  0 [unsafe]
ppp_async               9280  1 [unsafe]
tuner                  14340  1 [unsafe]
tvaudio                19264  0 
bttv                   92384  1 
video_buf              15616  1 bttv
i2c_algo_bit            9288  1 bttv
v4l2_common             3776  1 bttv
videodev                8192  1 bttv
ppp_generic            24200  5 ppp_deflate,bsd_comp,ppp_async
slhc                    6336  1 ppp_generic
parport_pc             18784  1 
lp                      8480  0 
parport                35456  2 parport_pc,lp
snd_seq_oss            33408  0 
snd_seq_midi_event      5632  1 snd_seq_oss
snd_seq                54544  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            57220  0 
snd_mixer_oss          18880  4 snd_pcm_oss
snd_via82xx            16260  1 
snd_ymfpci             47296  2 
snd_pcm                89536  3 snd_pcm_oss,snd_via82xx,snd_ymfpci
snd_ac97_codec         46532  2 snd_via82xx,snd_ymfpci
snd_opl3_lib            9728  1 snd_ymfpci
snd_timer              21632  3 snd_seq,snd_pcm,snd_opl3_lib
snd_hwdep               7360  1 snd_opl3_lib
snd_page_alloc          8388  3 snd_via82xx,snd_ymfpci,snd_pcm
snd_mpu401_uart         5952  2 snd_via82xx,snd_ymfpci
snd_rawmidi            20736  1 snd_mpu401_uart
snd_seq_device          6916  4 snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
md5                     3712  1 
snd                    49220  15 snd_seq_oss,snd_seq_midi_event,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ymfpci,snd_pcm,snd_ac97_codec,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               6528  2 bttv,snd
ipv6                  197792  7 
8139too                18176  1 
mii                     4096  1 8139too
crc32                   3840  1 8139too
xfs                   541108  1 
dm_mod                 31680  6 
md                     40576  0 
i2c_isa                 1600  0 
i2c_core               18820  5 tuner,tvaudio,bttv,i2c_algo_bit,i2c_isa
rtc                     9572  0 
Quoted 2 lines

but "ls -l /proc/asound/dev" shows only:

total 0

crw-rw-rw-    1 root     root     116,   0 2003-05-09 21:36 controlC0
crw-rw-rw-    1 root     root     116,  32 2003-05-09 21:36 controlC1
crw-rw-rw-    1 root     root     116,  24 2003-05-09 21:36 pcmC0D0c
crw-rw-rw-    1 root     root     116,  16 2003-05-09 21:36 pcmC0D0p
crw-rw-rw-    1 root     root     116,  17 2003-05-09 21:36 pcmC0D1p
crw-rw-rw-    1 root     root     116,  18 2003-05-09 21:36 pcmC0D2p
crw-rw-rw-    1 root     root     116,  27 2003-05-09 21:36 pcmC0D3c
crw-rw-rw-    1 root     root     116,  56 2003-05-09 21:36 pcmC1D0c
crw-rw-rw-    1 root     root     116,  48 2003-05-09 21:36 pcmC1D0p
crw-rw-rw-    1 root     root     116,  49 2003-05-09 21:36 pcmC1D1p
crw-rw-rw-    1 root     root     116,   1 2003-05-09 21:36 seq
crw-rw-rw-    1 root     root     116,  33 2003-05-09 21:36 timer

Hope this helps.

Signature · 2 lines
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Sid (Linux 2.5.69)