All of lore.kernel.org
 help / color / mirror / Atom feed
* sb 16 pro + alsa 0.5.12a + k 2.4.17
@ 2002-02-10 19:12 Ludovic Drolez
  2002-02-10 20:42 ` Erik Mouw
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Drolez @ 2002-02-10 19:12 UTC (permalink / raw)
  To: alsa-devel

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.


-- 
http://www.palmopensource.com       - The PalmOS Open Source Portal
http://www.drolez.com      - Personal site - Linux and PalmOS stuff


_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: sb 16 pro + alsa 0.5.12a + k 2.4.17
  2002-02-10 19:12 sb 16 pro + alsa 0.5.12a + k 2.4.17 Ludovic Drolez
@ 2002-02-10 20:42 ` Erik Mouw
  2002-02-10 21:44   ` Ludovic Drolez
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Mouw @ 2002-02-10 20:42 UTC (permalink / raw)
  To: Ludovic Drolez; +Cc: alsa-devel

On Sun, Feb 10, 2002 at 08:12:20PM +0100, Ludovic Drolez wrote:
> 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.

> /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 ????

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

-- 
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: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: sb 16 pro + alsa 0.5.12a + k 2.4.17
  2002-02-10 20:42 ` Erik Mouw
@ 2002-02-10 21:44   ` Ludovic Drolez
  2002-02-10 22:35     ` Erik Mouw
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Drolez @ 2002-02-10 21:44 UTC (permalink / raw)
  To: alsa-devel



Erik Mouw wrote:

> On Sun, Feb 10, 2002 at 08:12:20PM +0100, Ludovic Drolez wrote:
> 
>>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.
> 

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...


> 
>>/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 ????
>>
> 
> 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
 > nothing


> 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.
> 


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....


> 
> Erik
> 
> 


-- 
http://www.palmopensource.com       - The PalmOS Open Source Portal
http://www.drolez.com      - Personal site - Linux and PalmOS stuff


_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: sb 16 pro + alsa 0.5.12a + k 2.4.17
  2002-02-10 21:44   ` Ludovic Drolez
@ 2002-02-10 22:35     ` Erik Mouw
  2002-02-11 21:42       ` sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug Ludovic Drolez
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Mouw @ 2002-02-10 22:35 UTC (permalink / raw)
  To: Ludovic Drolez; +Cc: alsa-devel

On Sun, Feb 10, 2002 at 10:44:49PM +0100, Ludovic Drolez wrote:
> Erik Mouw wrote:
> >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"?

> >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
> > nothing

It could also be that it is compiled into the kernel itself. See
/proc/ioports to see which driver claims the ports.

> >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.
> 
> Yes, I have upgraded dozen of packages (a Debian 2.2 with bunk's packages).

OK, Adrian Bunk's packages work fine.

> 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]

-- 
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: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug
  2002-02-10 22:35     ` Erik Mouw
@ 2002-02-11 21:42       ` Ludovic Drolez
  2002-02-11 23:44         ` Frans Ketelaars
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Drolez @ 2002-02-11 21:42 UTC (permalink / raw)
  To: Erik Mouw; +Cc: alsa-devel

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:


--- include/driver.h.orig       Mon Feb 11 22:04:50 2002
+++ include/driver.h    Mon Feb 11 22:05:02 2002
@@ -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.




-- 
http://www.palmopensource.com       - The PalmOS Open Source Portal
http://www.drolez.com      - Personal site - Linux and PalmOS stuff


_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug
  2002-02-11 21:42       ` sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug Ludovic Drolez
@ 2002-02-11 23:44         ` Frans Ketelaars
  0 siblings, 0 replies; 6+ messages in thread
From: Frans Ketelaars @ 2002-02-11 23:44 UTC (permalink / raw)
  To: alsa-devel; +Cc: Ludovic Drolez

On Mon, 11 Feb 2002 22:42:17 +0100
Ludovic Drolez <ldrolez@free.fr> 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.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:
> 
> 
> --- include/driver.h.orig       Mon Feb 11 22:04:50 2002
> +++ include/driver.h    Mon Feb 11 22:05:02 2002
> @@ -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.

Did you try the snd_isapnp=0 option?

    -Frans

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-02-11 23:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-10 19:12 sb 16 pro + alsa 0.5.12a + k 2.4.17 Ludovic Drolez
2002-02-10 20:42 ` Erik Mouw
2002-02-10 21:44   ` Ludovic Drolez
2002-02-10 22:35     ` Erik Mouw
2002-02-11 21:42       ` sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug Ludovic Drolez
2002-02-11 23:44         ` Frans Ketelaars

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.