I previously reported a problem on Thu, 27 Nov 2003,
with loading the snd-interwave module from alsa-driver-1.0.0pre3
into linux-2.2.25, and a "fix" for this on Fri, 12 Dec 2003.

I have looked harder at this now and think that the fix should be
to define CONFIG_ISAPNP in support/pnp/pnp.c, before including
<linux/isapnp.h>, rather than defining it in isapnp.h.

The problem is that pnp_register_card_driver() in support/pnp/pnp.c
is calling a dummy version of isapnp_find_dev(), defined isapnp.h,
because CONFIG_ISAPNP isn't defined when isapnp.h is included in
support/pnp/pnp.c.

The problem still remains in cvsexport-2004-01-02.

A better solution seems to be this:

$ diff -u4 alsa-driver/support/pnp/pnp.c.Orig alsa-driver/support/pnp/pnp.c
--- alsa-driver/support/pnp/pnp.c.Orig  Fri Oct 31 15:02:21 2003
+++ alsa-driver/support/pnp/pnp.c       Fri Jan  9 03:51:06 2004
@@ -57,8 +57,10 @@
 #ifndef ALSA_BUILD
 #include <linux/isapnp.h>
 #include <linux/pnp.h>
 #else
+#undef CONFIG_ISAPNP
+#define CONFIG_ISAPNP
 #include <linux/isapnp.h>
 #undef CONFIG_PNP
 #define CONFIG_PNP
 #include "pnp.h"

The driver module for my UltraSound PNP sound card will not load
without such a correction.

Ted.
-- 
Ted <[EMAIL PROTECTED]>
   http://www.nowtsfree.freeserve.co.uk


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to