* opl3sa2 won't load in kernel 2.4.2
@ 2001-02-28 12:28 Rob W. van Swol
2001-02-28 14:25 ` Jérôme Augé
0 siblings, 1 reply; 2+ messages in thread
From: Rob W. van Swol @ 2001-02-28 12:28 UTC (permalink / raw)
To: linux-kernel
Hi,
I cannot find an answer to my problem. Sound was always working ok in
2.2.x and 2.4.1 kernels. But now the opl3sa2 module won't load anymore.
First I got the messages:
opl3sa2: No cards found
opl3sa2: 0 PnP card(s) found.
The I added isapnp=0 to the options line in /etc/modules.conf and then I
get:
opl3sa2: Control I/O port 0x0 not free
^^^
It seems that the io address is not correctly passed to the module?!
The relevant lines from /etc/modules.conf are:
alias sound-slot-0 opl3sa2
alias sound-service-0-0 opl3sa2
alias midi opl3
options opl3 io=0x388
options opl3sa2 mss_io=0x530 irq=5 dma=1 dma2=0 mpu_io=0x330 io=0x370
isapnp=0
Any idea???
Answer please with a CC to vanswol@nlr.nl
Regards,
Rob
_____________________________________________________________
Rob W. van Swol
National Aerospace Laboratory NLR Tel. +31 527 248252
P.O. Box 153 Fax +31 527 248210
8300 AD Emmeloord E-Mail vanswol@nlr.nl
The Netherlands http://www.neonet.nl/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: opl3sa2 won't load in kernel 2.4.2
2001-02-28 12:28 opl3sa2 won't load in kernel 2.4.2 Rob W. van Swol
@ 2001-02-28 14:25 ` Jérôme Augé
0 siblings, 0 replies; 2+ messages in thread
From: Jérôme Augé @ 2001-02-28 14:25 UTC (permalink / raw)
To: Rob W. van Swol; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]
"Rob W. van Swol" wrote:
>
> Hi,
>
> I cannot find an answer to my problem. Sound was always working ok in
> 2.2.x and 2.4.1 kernels. But now the opl3sa2 module won't load anymore.
> First I got the messages:
>
> opl3sa2: No cards found
> opl3sa2: 0 PnP card(s) found.
>
> The I added isapnp=0 to the options line in /etc/modules.conf and then I
> get:
>
> opl3sa2: Control I/O port 0x0 not free
> ^^^
> It seems that the io address is not correctly passed to the module?!
>
I got the same problem and i think there is an error in opl3sa2.c ?
I thinnk the problem is in the init_opl3sa2() function, in this line :
if(!isapnp && io == -1 ) {
If you don't use/have IsaPNP then the cfg[card] struct is not/never
initialized ... ?
I made a quick patch that correct this test ... but I think we should
find a better way to choose between initializing the cfg[card] struct
using opl3sa2_isapnp_probe or using the user suplied module parameters
... no ?
--
Jérôme Augé
echo cdqgm@vnqb-hklmpkml.yp | tr khplmndvqyc nirtelacufj
[-- Attachment #2: opl3sa2-isapnp-io-test.patch --]
[-- Type: text/plain, Size: 839 bytes --]
--- opl3sa2.c.orig Wed Feb 28 14:44:03 2001
+++ opl3sa2.c Wed Feb 28 14:48:07 2001
@@ -914,13 +914,8 @@
#endif
/* If a user wants an I/O then assume they meant it */
- if(!isapnp && io == -1 ) {
- if(io == -1 || irq == -1 || dma == -1 ||
- dma2 == -1 || mss_io == -1) {
- printk(KERN_ERR
- "opl3sa2: io, mss_io, irq, dma, and dma2 must be set\n");
- return -EINVAL;
- }
+ if((io != -1) && (irq != -1) && (dma != -1) &&
+ (dma2 != -1) && (mss_io != -1) && (mpu_io !=-1)) {
/*
* Our own config:
@@ -948,6 +943,9 @@
opl3sa2_clear_slots(&cfg[card]);
opl3sa2_clear_slots(&cfg_mss[card]);
opl3sa2_clear_slots(&cfg_mpu[card]);
+ } else {
+ printk(KERN_ERR "opl3sa2: io, mss_io, irq, dma, and dma2 must be set\n");
+ return -EINVAL;
}
if(!probe_opl3sa2(&cfg[card], card) ||
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-28 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-28 12:28 opl3sa2 won't load in kernel 2.4.2 Rob W. van Swol
2001-02-28 14:25 ` Jérôme Augé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).