* config bug with sbawe and --with-isapnp=no @ 2004-01-22 11:49 Mario Loritz 2004-01-22 12:05 ` Takashi Iwai 2004-01-23 10:13 ` Mario Loritz 0 siblings, 2 replies; 10+ messages in thread From: Mario Loritz @ 2004-01-22 11:49 UTC (permalink / raw) To: alsa-devel Hello List, Since about Alsa version 0.9.8, the compilation of the alsa-driver for the Sound Blaster AWE (non-pnp) results in a non-usable driver. The driver fails to load with a message about a symbol error. (Sorry, lost the output, have to regenerate it.) If I compile the driver with pnp turned on, then I can load the driver with the option "isapnp=no", which didn't work BEFORE alsa 0.9.8. So we replaced one bug with another, didn't we? Thanks for reading, Mario ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-22 11:49 config bug with sbawe and --with-isapnp=no Mario Loritz @ 2004-01-22 12:05 ` Takashi Iwai 2004-01-23 10:13 ` Mario Loritz 1 sibling, 0 replies; 10+ messages in thread From: Takashi Iwai @ 2004-01-22 12:05 UTC (permalink / raw) To: loritz; +Cc: alsa-devel At Thu, 22 Jan 2004 12:49:07 +0100, Mario Loritz wrote: > > Hello List, > > Since about Alsa version 0.9.8, the compilation of the alsa-driver for > the Sound Blaster AWE (non-pnp) results in a non-usable driver. > > The driver fails to load with a message about a symbol error. > (Sorry, lost the output, have to regenerate it.) > > If I compile the driver with pnp turned on, then I can load the > driver with the option "isapnp=no", which didn't work BEFORE alsa 0.9.8. > > So we replaced one bug with another, didn't we? likely. please give more information: which kernel and how is the kernel config, which symbols are undefined, which configure options you gave, etc. more detail is more helpful. Takashi ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-22 11:49 config bug with sbawe and --with-isapnp=no Mario Loritz 2004-01-22 12:05 ` Takashi Iwai @ 2004-01-23 10:13 ` Mario Loritz 2004-01-23 10:26 ` Jaroslav Kysela 1 sibling, 1 reply; 10+ messages in thread From: Mario Loritz @ 2004-01-23 10:13 UTC (permalink / raw) To: alsa-devel Hello list, I reproduced the error message while the driver is loading: # rcalsasound restart Shutting down sound driver: done Starting sound driver: snd-sbawe /lib/modules/2.4.21-166-default/kernel/sound/ isa/sb/snd-sbawe.o: unresolved symbol pnp_activate_dev_R9e329e8c /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: unresolved symbol pnp_register_card_driver_R14e159bf /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: unresolved symbol pnp_manual_config_dev_R480f17aa /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: unresolved symbol pnp_release_card_device_R0d53db9b /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: unresolved symbol pnp_init_resource_table_R16084899 /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: unresolved symbol pnp_unregister_card_driver_R82704514 /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: unresolved symbol pnp_request_card_device_Rc3534026 /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: insmod /lib/ modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o failed /lib/modules/2.4.21-166-default/kernel/sound/isa/sb/snd-sbawe.o: insmod snd-sbawe failed done Starting sound driver: snd-ice1712 done What is strange is that the drivers try to use symbols like "pnp_activate" that they dont need and dont use, as the drivers were compiled WITHOUT pnp support. Thanks for the answers so far! Mario ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-23 10:13 ` Mario Loritz @ 2004-01-23 10:26 ` Jaroslav Kysela 2004-01-23 11:49 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Jaroslav Kysela @ 2004-01-23 10:26 UTC (permalink / raw) To: Mario Loritz; +Cc: alsa-devel On Fri, 23 Jan 2004, Mario Loritz wrote: > Hello list, > > I reproduced the error message while the driver is loading: Could you try the patch bellow? Jaroslav Index: pnp.h =================================================================== RCS file: /cvsroot/alsa/alsa-driver/support/pnp/pnp.h,v retrieving revision 1.4 diff -u -r1.4 pnp.h --- pnp.h 5 Sep 2003 17:44:12 -0000 1.4 +++ pnp.h 23 Jan 2004 10:25:28 -0000 @@ -186,7 +186,7 @@ #define pnp_resource_change(resource, start, size) isapnp_resource_change(resource, start, size) -#if defined(CONFIG_PNP) +#if defined(CONFIG_PNP) && (!defined(ALSA_BUILD) || defined(CONFIG_PNP_KERNEL)) struct pnp_dev * pnp_request_card_device(struct pnp_card_link *clink, const char * id, struct pnp_dev * from); void pnp_release_card_device(struct pnp_dev * dev); ----- Jaroslav Kysela <perex@suse.cz> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-23 10:26 ` Jaroslav Kysela @ 2004-01-23 11:49 ` Takashi Iwai 2004-01-24 14:57 ` Mario Loritz 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2004-01-23 11:49 UTC (permalink / raw) To: Jaroslav Kysela; +Cc: Mario Loritz, alsa-devel [-- Attachment #1: Type: text/plain, Size: 404 bytes --] At Fri, 23 Jan 2004 11:26:38 +0100 (CET), Jaroslav wrote: > > On Fri, 23 Jan 2004, Mario Loritz wrote: > > > Hello list, > > > > I reproduced the error message while the driver is loading: > > Could you try the patch bellow? i found the bug in adriver.h, which always defines CONFIG_PNP when CONFIG_ISAPNP is set. the attached patches are the fix and clean-up for pnp. please give a try. Takashi [-- Attachment #2: alsa-pnp-fix.dif --] [-- Type: application/octet-stream, Size: 3068 bytes --] Index: alsa-driver/Rules.make =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/Rules.make,v retrieving revision 1.33 diff -u -r1.33 Rules.make --- alsa-driver/Rules.make 4 Dec 2003 10:52:47 -0000 1.33 +++ alsa-driver/Rules.make 23 Jan 2004 11:10:20 -0000 @@ -129,7 +129,12 @@ patch -p0 -i $< %.isapnp: %.c +ifeq (y,$(CONFIG_ISAPNP)) $(CPP) -C -D__KERNEL__ $(CFLAGS) $(EXTRA_CFLAGS) -D__isapnp_now__ -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $(CFLAGS_$@) $< | awk -f $(TOPDIR)/utils/convert_isapnp_ids > $@ +else + rm -f $@ + touch $@ +endif # # Index: alsa-driver/configure.in =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/configure.in,v retrieving revision 1.153 diff -u -r1.153 configure.in --- alsa-driver/configure.in 22 Jan 2004 13:46:51 -0000 1.153 +++ alsa-driver/configure.in 23 Jan 2004 11:06:01 -0000 @@ -955,11 +955,11 @@ AC_SUBST(CONFIG_ISAPNP) if test "$CONFIG_ISAPNP" = "y"; then - AC_DEFINE(CONFIG_ISAPNP) + AC_DEFINE(CONFIG_SND_ISAPNP) CONFIG_PNP=$CONFIG_ISAPNP - AC_DEFINE(CONFIG_PNP) - AC_SUBST(CONFIG_PNP) + AC_DEFINE(CONFIG_SND_PNP) fi +AC_SUBST(CONFIG_PNP) dnl Check for strlcpy... AC_MSG_CHECKING(for strlcpy) Index: alsa-driver/include/adriver.h =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/include/adriver.h,v retrieving revision 1.61 diff -u -r1.61 adriver.h --- alsa-driver/include/adriver.h 21 Jan 2004 18:26:48 -0000 1.61 +++ alsa-driver/include/adriver.h 23 Jan 2004 11:15:39 -0000 @@ -151,20 +151,19 @@ #endif #endif -#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE)) -#include <linux/isapnp.h> -#ifndef CONFIG_PNP -#define CONFIG_PNP +/* isapnp support for 2.2 kernels */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0) +#undef CONFIG_ISAPNP +#ifdef CONFIG_SND_ISAPNP +#define CONFIG_ISAPNP +#endif #endif -#if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD)) -#define isapnp_dev pci_dev -#define isapnp_card pci_bus -#endif -#undef __ISAPNP__ -#define __ISAPNP__ -#else + +/* support of pnp compatible layer for 2.2/2.4 kernels */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) #undef CONFIG_PNP +#ifdef CONFIG_SND_PNP +#define CONFIG_PNP #endif #endif Index: alsa-driver/include/config.h.in =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/include/config.h.in,v retrieving revision 1.19 diff -u -r1.19 config.h.in --- alsa-driver/include/config.h.in 8 Jan 2004 14:08:19 -0000 1.19 +++ alsa-driver/include/config.h.in 23 Jan 2004 11:05:43 -0000 @@ -25,8 +25,8 @@ #undef CONFIG_SND_KERNELDIR #undef CONFIG_ISAPNP_KERNEL #undef CONFIG_PNP_KERNEL -#undef CONFIG_ISAPNP -#undef CONFIG_PNP +#undef CONFIG_SND_ISAPNP +#undef CONFIG_SND_PNP /* 2.4 kernels */ #undef CONFIG_HAVE_OLD_REQUEST_MODULE [-- Attachment #3: sb16-pnp-fix.dif --] [-- Type: application/octet-stream, Size: 720 bytes --] Index: alsa-kernel/isa/sb/sb16.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/isa/sb/sb16.c,v retrieving revision 1.34 diff -u -r1.34 sb16.c --- alsa-kernel/isa/sb/sb16.c 21 Jan 2004 18:29:46 -0000 1.34 +++ alsa-kernel/isa/sb/sb16.c 23 Jan 2004 11:23:45 -0000 @@ -157,6 +157,8 @@ static snd_card_t *snd_sb16_legacy[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; +#ifdef CONFIG_PNP + static struct pnp_card_device_id snd_sb16_pnpids[] = { #ifndef SNDRV_SBAWE /* Sound Blaster 16 PnP */ @@ -250,6 +252,8 @@ MODULE_DEVICE_TABLE(pnp_card, snd_sb16_pnpids); +#endif /* CONFIG_PNP */ + #ifdef SNDRV_SBAWE_EMU8000 #define DRIVER_NAME "snd-card-sbawe" #else [-- Attachment #4: opti9xx-pnp-fix.dif --] [-- Type: application/octet-stream, Size: 1037 bytes --] Index: alsa-driver/isa/opti9xx/opti92x-ad1848.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/isa/opti9xx/opti92x-ad1848.c,v retrieving revision 1.7 diff -u -r1.7 opti92x-ad1848.c --- alsa-driver/isa/opti9xx/opti92x-ad1848.c 13 Nov 2003 17:03:36 -0000 1.7 +++ alsa-driver/isa/opti9xx/opti92x-ad1848.c 23 Jan 2004 11:37:57 -0000 @@ -1,13 +1,12 @@ #include <linux/version.h> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 2, 0) +#define isapnp_dev pci_dev +#endif #define snd_opti9xx_fixup_dma2(pdev) \ {struct isapnp_dev *b = (struct isapnp_dev *)pdev;\ memset(&b->dma_resource[1].flags, 0, sizeof(b->dma_resource[1].flags));} -#else -#define snd_opti9xx_fixup_dma2(pdev) \ - {struct pci_dev *b = (struct pci_dev *)pdev;\ - memset(&b->dma_resource[1].flags, 0, sizeof(b->dma_resource[1].flags));} #endif #include "../../alsa-kernel/isa/opti9xx/opti92x-ad1848.c" ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-23 11:49 ` Takashi Iwai @ 2004-01-24 14:57 ` Mario Loritz 2004-01-26 11:15 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Mario Loritz @ 2004-01-24 14:57 UTC (permalink / raw) To: alsa-devel Am Freitag, 23. Januar 2004 12:49 schrieb Takashi Iwai: > i found the bug in adriver.h, which always defines CONFIG_PNP when > CONFIG_ISAPNP is set. > > the attached patches are the fix and clean-up for pnp. > please give a try. > > > Takashi After I applied the patches, something strange is happening: The module option "isapnp=yes/no" is not recognized anymore, regardless of the configure option "--with-isapnp=yes" or "no". The driver itself works, even if I compile with pnp. But why? I cannot tell the driver, that it shouldn't try pnp. Do you think the driver will still work when a pnp-card is used? I can't check this, because my sbawe32 is non-pnp. When those questions are answered and the module option "isapnp=yes/no" really isn't needed anymore, then I think the driver should be changed in the proposed way. Thanks for the solution so far. Mario Some parts of the output of "./configure --with-cards=sbawe,ice1712": ... checking for directory with kernel source... /lib/modules/2.4.21-166-default/ build checking for kernel version... 2.4.21-166-default checking for GCC version... Kernel compiler: gcc 3.3.1 (SuSE Linux) Used compiler: gcc (GCC) 3.3.1 (SuSE Linux) checking for built-in ALSA... "no" checking for existing ALSA module... "yes" checking for Red Hat kernel... "auto" checking for Red Hat kernel... "no" ... checking for kernel module symbol versions... "yes" checking for PCI support in kernel... "yes" checking for SGI/MIPS (HAL2) architecture... "no" checking for directory to store kernel modules... /lib/ modules/2.4.21-166-default/kernel/sound checking for verbose printk... on checking for debug level... none checking for ISA support in kernel... "yes" checking for processor type... "unknown" checking for SMP... "no" checking for ISA PnP driver in kernel... yes checking for PnP driver in kernel... no checking for Kernel ISA-PnP support... "no" checking for Kernel ISA-PnP module support... "yes" checking for ISA PnP support... yes .... Output of "rcalsasound restart" Shutting down sound driver: done Starting sound driver: snd-sbawe Warning: ignoring isapnp=0, no such parameter in this module Module snd-sbawe loaded, with warnings done Starting sound driver: snd-ice1712 done ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-24 14:57 ` Mario Loritz @ 2004-01-26 11:15 ` Takashi Iwai 2004-01-28 15:45 ` Mario Loritz 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2004-01-26 11:15 UTC (permalink / raw) To: loritz; +Cc: alsa-devel At Sat, 24 Jan 2004 15:57:21 +0100, Mario Loritz wrote: > > Am Freitag, 23. Januar 2004 12:49 schrieb Takashi Iwai: > > i found the bug in adriver.h, which always defines CONFIG_PNP when > > CONFIG_ISAPNP is set. > > > > the attached patches are the fix and clean-up for pnp. > > please give a try. > > > > > > Takashi > > After I applied the patches, something strange is happening: > The module option "isapnp=yes/no" is not recognized anymore, > regardless of the configure option "--with-isapnp=yes" or "no". > > The driver itself works, even if I compile with pnp. But why? I > cannot tell the driver, that it shouldn't try pnp. Do you think > the driver will still work when a pnp-card is used? I can't check > this, because my sbawe32 is non-pnp. > > When those questions are answered and the module option > "isapnp=yes/no" really isn't needed anymore, then I think the > driver should be changed in the proposed way. did you run cvscompile? otherwise it won't work properly. Takashi ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-26 11:15 ` Takashi Iwai @ 2004-01-28 15:45 ` Mario Loritz 2004-01-28 21:53 ` Mario Loritz 2004-01-29 15:12 ` Mario Loritz 0 siblings, 2 replies; 10+ messages in thread From: Mario Loritz @ 2004-01-28 15:45 UTC (permalink / raw) To: alsa-devel Am Montag, 26. Januar 2004 12:15 schrieb Takashi Iwai: > did you run cvscompile? otherwise it won't work properly. No, I didn't. Mario ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-28 15:45 ` Mario Loritz @ 2004-01-28 21:53 ` Mario Loritz 2004-01-29 15:12 ` Mario Loritz 1 sibling, 0 replies; 10+ messages in thread From: Mario Loritz @ 2004-01-28 21:53 UTC (permalink / raw) To: alsa-devel Thanks to all! The sbawe driver is working in both configurations now. (alsa 1.0.2) Mario ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: config bug with sbawe and --with-isapnp=no 2004-01-28 15:45 ` Mario Loritz 2004-01-28 21:53 ` Mario Loritz @ 2004-01-29 15:12 ` Mario Loritz 1 sibling, 0 replies; 10+ messages in thread From: Mario Loritz @ 2004-01-29 15:12 UTC (permalink / raw) To: alsa-devel Thanks to all! The sbawe driver is working in both configurations now. (alsa 1.0.2) Mario ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-01-29 15:12 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-01-22 11:49 config bug with sbawe and --with-isapnp=no Mario Loritz 2004-01-22 12:05 ` Takashi Iwai 2004-01-23 10:13 ` Mario Loritz 2004-01-23 10:26 ` Jaroslav Kysela 2004-01-23 11:49 ` Takashi Iwai 2004-01-24 14:57 ` Mario Loritz 2004-01-26 11:15 ` Takashi Iwai 2004-01-28 15:45 ` Mario Loritz 2004-01-28 21:53 ` Mario Loritz 2004-01-29 15:12 ` Mario Loritz
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.