Skip to contentSkip to conversation

devfs OSS /dev/sound/* problem.

DISCUSSION mjander 3 participants 3 messages Mar 10, 2003

lore
Share & tools
lore

mjander

author
#0 lore raw

Hello,

I noticed the following bug:

If i load more than one soundcard driver (example ens1371 and intel8x0),
with OSS support i get a error message from "devfs", that it "could not append
to /dev/sound", and the second soundcard is unable to create its OSS /dev/sound/*
file nodes.

I noticed similar bugs in other OSS sound drivers before, but it semes that very few people use devfs. Yesterday i checked with 0.9rc8d (previous tests with 0.9rc7) and the problem is still there.

I semes to me that the file node index passes to the corresponding devfs_register() calls is static rather incremental or -1 for automatic allocation as it should be.

Does this behave the same with any 2.5 kernel? I'm to much a coward to try 2.5, last time i did, i lost very important data.

Kernel 2.4.20 + xfs
Dist: Debian SID
ALSA: 0.9rc8d
ARCH: i386

Best Regards

Manuel Jander.
.
__________________________________________________
Enviado via NewPlanet WebMail en embedded.cl

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw
Quoted 16 lines · mjander

Hello,

I noticed the following bug:

If i load more than one soundcard driver (example ens1371 and intel8x0),
with OSS support i get a error message from "devfs", that it "could not append
to /dev/sound", and the second soundcard is unable to create its OSS /dev/sound/*
file nodes.

I noticed similar bugs in other OSS sound drivers before, but it semes that very few people use devfs. Yesterday i checked with 0.9rc8d (previous tests with 0.9rc7) and the problem is still there.

Quoted 6 lines

I semes to me that the file node index passes to the corresponding devfs_register() calls is static rather incremental or -1 for automatic allocation as it should be.

Does this behave the same with any 2.5 kernel? I'm to much a coward to try 2.5, last time i did, i lost very important data.

Try apply alsa-driver/utils/patches/soundcore.2.4.20.patch to your kernel.

Jaroslav

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

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw
In reply to mjander

At Mon, 10 Mar 2003 10:57:43 -0400,

Quoted 13 lines · mjander

Hello,

I noticed the following bug:

If i load more than one soundcard driver (example ens1371 and intel8x0),
with OSS support i get a error message from "devfs", that it "could not append
to /dev/sound", and the second soundcard is unable to create its OSS /dev/sound/*
file nodes.

Quoted 3 lines

I noticed similar bugs in other OSS sound drivers before, but it semes that very few people use devfs. Yesterday i checked with 0.9rc8d (previous tests with 0.9rc7) and the problem is still there.

this is the bug of soundcore.c, not the ALSA itself. try the patch in alsa-driver/utils/patches directory.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf