sb 16 pro + alsa 0.5.12a + k 2.4.17
Hi !
I trying to make my SB16Pro work (not pnp). I've compiled alsa with no isa pnp support but when I insert the module I get the following messages:
/lib/modules/2.4.17-k6/misc/snd-card-sb16.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters /lib/modules/2.4.17-k6/misc/snd-card-sb16.o: insmod /lib/modules/2.4.17-k6/misc/snd-card-sb16.o failed /lib/modules/2.4.17-k6/misc/snd-card-sb16.o: insmod snd-card-sb16 failed
and dmesg says:
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
snd: Sound Blaster 16 soundcard #1 not found at 0x220 or device busy
snd: Sound Blaster 16 soundcard #2 not found or device busy
BUT, If I switch to k 2.2.19 and recompile alsa 0.5.12 or 0.5.11 it works perfectly !!! So, Yet Another Kernel 2.4. bug ????
Cheers,
Ludovic Drolez.
Signature · 8 lines
http://www.palmopensource.com - The PalmOS Open Source Portal http://www.drolez.com - Personal site - Linux and PalmOS stuff _______________________________________________ Alsa-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 6 lines · Ludovic Drolez
I trying to make my SB16Pro work (not pnp). I've compiled alsa with no isa pnp support but when I insert the module I get the following messages:
/lib/modules/2.4.17-k6/misc/snd-card-sb16.o:init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
Very clear error message: please supply proper parameters for the snd-card-sb16 module. "modinfo snd-card-sb16" will tell you what parameters the module accepts.
Quoted 6 lines
/lib/modules/2.4.17-k6/misc/snd-card-sb16.o: insmod/lib/modules/2.4.17-k6/misc/snd-card-sb16.ofailed/lib/modules/2.4.17-k6/misc/snd-card-sb16.o: insmod snd-card-sb16 failedand dmesg says:
Quoted 7 lines
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
snd: Sound Blaster 16 soundcard #1 not found at0x220or device busy
snd: Sound Blaster 16 soundcard #2 not found or device busyBUT, If I switch to k 2.2.19 and recompile alsa 0.5.12 or 0.5.11 it works perfectly !!! So, Yet Another Kernel 2.4. bug ????
I don't think so. I think you either forgot to specify the correct module parameters, or you somehow loaded the kernel Soundblaster driver.
Did you read the file Documentation/Changes in the kernel source tree? The linux-2.4 kernels need quite some new userland programs to work properly.
Erik
Signature · 10 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/ _______________________________________________ Alsa-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 4 lines · Erik Mouw
Quoted 2 lines · Ludovic Drolez
I trying to make my SB16Pro work (not pnp). I've compiled alsa with no isa pnp support but when I insert the module I get the following messages:
Quoted 8 lines
Quoted 3 lines
/lib/modules/2.4.17-k6/misc/snd-card-sb16.o:init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parametersVery clear error message: please supply proper parameters for the snd-card-sb16 module. "modinfo snd-card-sb16" will tell you what parameters the module accepts.
I have supplied all parameters you can imagine. And my launch script is the same for k 2.2.19, and for 2.4.17...
Quoted 11 lines
Quoted 11 lines
/lib/modules/2.4.17-k6/misc/snd-card-sb16.o: insmod/lib/modules/2.4.17-k6/misc/snd-card-sb16.ofailed/lib/modules/2.4.17-k6/misc/snd-card-sb16.o: insmod snd-card-sb16 failedand dmesg says:
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
snd: Sound Blaster 16 soundcard #1 not found at0x220or device busy
snd: Sound Blaster 16 soundcard #2 not found or device busy
Quoted 7 lines
Quoted 2 lines
BUT, If I switch to k 2.2.19 and recompile alsa 0.5.12 or 0.5.11 it works perfectly !!! So, Yet Another Kernel 2.4. bug ????
I don't think so. I think you either forgot to specify the correct module parameters, or you somehow loaded the kernel Soundblaster driver.
lsmod |grep sb
Quoted 7 lines
nothing
Did you read the file
Documentation/Changesin the kernel source tree? The linux-2.4 kernels need quite some new userland programs to work properly.
Yes, I have upgraded dozen of packages (a Debian 2.2 with bunk's packages).
What I find strange is: the kernel is scanning for pnp card although I told alsa to ignore pnp card....
Quoted 4 lines
Erik
Signature · 8 lines
http://www.palmopensource.com - The PalmOS Open Source Portal http://www.drolez.com - Personal site - Linux and PalmOS stuff _______________________________________________ Alsa-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 7 lines · Ludovic Drolez
Quoted 3 lines · Erik Mouw
Very clear error message: please supply proper parameters for the snd-card-sb16 module. "modinfo snd-card-sb16" will tell you what parameters the module accepts.
I have supplied all parameters you can imagine. And my launch script is the same for k 2.2.19, and for 2.4.17...
And did you run "update-modules && depmod -a"?
Quoted 7 lines
Quoted 4 lines
I don't think so. I think you either forgot to specify the correct module parameters, or you somehow loaded the kernel Soundblaster driver.
lsmod |grep sb
Quoted 1 line
nothing
It could also be that it is compiled into the kernel itself. See /proc/ioports to see which driver claims the ports.
Quoted 5 lines
Quoted 3 lines
Did you read the file
Documentation/Changesin the kernel source tree? The linux-2.4 kernels need quite some new userland programs to work properly.Yes, I have upgraded dozen of packages (a Debian 2.2 with bunk's packages).
OK, Adrian Bunk's packages work fine.
Quoted 2 lines
What I find strange is: the kernel is scanning for pnp card although I told alsa to ignore pnp card....
You told the kernel that you want ISA PnP support, so the kernel will scan for cards. Recompile your kernel and disable PnP support.
Erik
[who prefers to be CC'ed on mailing lists messages]
Signature · 10 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/ _______________________________________________ Alsa-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-devel
sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug
Hi !
I recompiled alsa with the '--with-debug=detect' option to find why alsa 0.5.12a works perfectly with my 2.2.19 kernel but not with a 2.4.17. Both kernel are compiled with ISAPNP but Alsa is compiled '--with-isapnp=no' because the SB16Pro is not PNP.
With k 2.2.19, 'modprobe snd-card-sb16 snd_irq=5' gives:
Feb 11 18:46:52 red kernel: snd: SB [0x220]: DSP chip found, version = 4.13
Ok, no problem at all, now with 2.4.17:
Feb 11 19:50:57 red kernel: snd: isapnp failed for SB16 Feb 11 19:50:57 red kernel: snd: Sound Blaster 16 soundcard #1 not found at 0x220 or device busy Feb 11 19:50:57 red kernel: snd: Sound Blaster 16 soundcard #2 not found or device busy
Problem: Alsa tries to detect a PNP card even with '--with-isapnp=no' !
Indeed the 1st line (...isapnp failed...) is output by card-sb16.c line 536.
There is a bug here because 'snd_sb16_isapnp()' should not be reached because of a '#ifdef __ISAPNP__' and because 'CONFIG_ISAPNP=0'.
My quick fix to make my card work with 2.4.17:
driver.h Mon Feb 11 22:05:02 2002 renamed from driver.h.orig Mon Feb 11 22:04:50 2002 +0 -0
@@ -125,21 +125,21 @@ #if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE)
)
#if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CO
DE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD))
#include <linux/isapnp.h>
#define isapnp_dev pci_dev
#define isapnp_card pci_bus
#else
#include "isapnp.h"
#endif
#undef __ISAPNP__
-#define __ISAPNP__
+//#define __ISAPNP__
#endif
#ifndef MODULE_LICENSE
#define MODULE_LICENSE(license)
#endif
#ifndef ALSA_BUILD
#include <linux/asound.h>
#include <linux/asoundid.h>
#else
So there must be a problem with all the #if but I do not know exactly where.
(CONFIG_ISAPNP is redefined somewhere but it should not be).
Cheers,
Ludovic Drolez.
Signature · 8 lines
http://www.palmopensource.com - The PalmOS Open Source Portal http://www.drolez.com - Personal site - Linux and PalmOS stuff _______________________________________________ Alsa-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-devel
Re: sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug
Quoted 57 lines · On Mon, 11 Feb 2002 22:42:17 +0100 Ludovic Drolez <[email protected]> wrote:
Hi !
I recompiled alsa with the '--with-debug=detect' option to find why alsa 0.5.12a works perfectly with my 2.2.19 kernel but not with a 2.4.17.
Both kernel are compiled with ISAPNP but Alsa is compiled '--with-isapnp=no' because the SB16Pro is not PNP.With k 2.2.19, 'modprobe snd-card-sb16 snd_irq=5' gives:
Feb 11 18:46:52 red kernel: snd: SB [0x220]: DSP chip found, version = 4.13Ok, no problem at all, now with 2.4.17:
Feb 11 19:50:57 red kernel: snd: isapnp failed for SB16 Feb 11 19:50:57 red kernel: snd: Sound Blaster 16 soundcard #1 not found at 0x220 or device busy Feb 11 19:50:57 red kernel: snd: Sound Blaster 16 soundcard #2 not found or device busyProblem: Alsa tries to detect a PNP card even with '--with-isapnp=no' ! Indeed the 1st line (...isapnp failed...) is output by
card-sb16.cline 536. There is a bug here because 'snd_sb16_isapnp()' should not be reached because of a '#ifdef__ISAPNP__' and because 'CONFIG_ISAPNP=0'.My quick fix to make my card work with 2.4.17:
driver.h Mon Feb 11 22:05:02 2002 renamed from driver.h.orig Mon Feb 11 22:04:50 2002 +1
-1@@ -125,21 +125,21 @@ #if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE) ) #if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CO DE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD)) #include <linux/isapnp.h> #define isapnp_dev pci_dev #define isapnp_card pci_bus #else #include "isapnp.h" #endif #undef __ISAPNP__ -#define __ISAPNP__ +//#define __ISAPNP__ #endif #ifndef MODULE_LICENSE #define MODULE_LICENSE(license) #endif #ifndef ALSA_BUILD #include <linux/asound.h>#include <linux/asoundid.h> #else
Quoted 8 lines
So there must be a problem with all the #if but I do not know exactly where.
(
CONFIG_ISAPNPis redefined somewhere but it should not be).Cheers,
Ludovic Drolez.
Did you try the snd_isapnp=0 option?
-Frans
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel