[Pkg-alsa-devel] Bug#316837: alsa-modules-2.4.27-2-686: oss emulation can't co-exist with native oss

freevo freevo <freevo@chimpanzee.homeip.net>, 316837@bugs.debian.org
Mon, 04 Jul 2005 15:14:12 +0800


Package: alsa-modules-2.4.27-2-686
Severity: normal

This actually should be an upstream bug. The current oss emulation code(sound_oss.c)
use register_sound_special to register the minor device. register_sound_special 
would search for the first available slot. But the coding in alsa basically use a
hardcoded scheme to convert between also card number and minor number in oss.

This means that if there is any native oss driver loaded, the number will get all
mess up(card 0 should be minor 3 for PCM but if another oss driver is loaded, 
minor 3 would be occupied and the return would be 19 instead). While the current
code handles this case to abort, it makes mixing both oss and alsa not possible.

While not just take whatever returned as the valid one then stored it and 
unregistered accordingly ?

I need oss native driver because there is no alsa driver for my device but I need
alsa driver at the same time because there is another device that isn't supported
by oss driver.



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.31-xbox-chimpanzee-vs-ll
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)