* [PATCH] change awe_wave initialization to match 2.2 better
@ 2001-02-19 19:28 Bill Nottingham
2001-02-19 22:26 ` José Luis Domingo López
0 siblings, 1 reply; 3+ messages in thread
From: Bill Nottingham @ 2001-02-19 19:28 UTC (permalink / raw)
To: linux-kernel; +Cc: alan
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
The awe_wave driver in 2.2 looked at the common I/O ports for
the card if no parameters were specified. The 2.4 driver currently
does an ISAPnP probe, but doesn't fall back to the previous probing
behavior, which means that users with working module configurations
will have theirs broken on upgrade.
The attached fixes it to fall back to 2.2-style behavior if no
parameters are specified; if 'isapnp=1' is specified, it does
not try to look for cards if the ISAPnP probe fails.
Bill
[-- Attachment #2: linux-2.4.1-awe-isapnp.patch --]
[-- Type: text/plain, Size: 723 bytes --]
--- linux/drivers/sound/awe_wave.c.foo Mon Feb 19 14:05:47 2001
+++ linux/drivers/sound/awe_wave.c Mon Feb 19 14:06:51 2001
@@ -206,7 +206,7 @@
int io = AWE_DEFAULT_BASE_ADDR; /* Emu8000 base address */
int memsize = AWE_DEFAULT_MEM_SIZE; /* memory size in Kbytes */
#if defined CONFIG_ISAPNP || defined CONFIG_ISAPNP_MODULE
-static int isapnp = 1;
+static int isapnp = -1;
#else
static int isapnp = 0;
#endif
@@ -4838,10 +4838,12 @@
if (isapnp) {
if (awe_probe_isapnp(&io) < 0) {
printk(KERN_ERR "AWE32: No ISAPnP cards found\n");
- return 0;
+ if (isapnp != -1)
+ return 0;
+ } else {
+ setup_ports(io, 0, 0);
+ return 1;
}
- setup_ports(io, 0, 0);
- return 1;
}
#endif /* isapnp */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] change awe_wave initialization to match 2.2 better
2001-02-19 19:28 [PATCH] change awe_wave initialization to match 2.2 better Bill Nottingham
@ 2001-02-19 22:26 ` José Luis Domingo López
2001-02-19 22:59 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: José Luis Domingo López @ 2001-02-19 22:26 UTC (permalink / raw)
To: linux-kernel; +Cc: alan
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1749 bytes --]
On Monday, 19 February 2001, at 14:28:09 -0500,
Bill Nottingham wrote:
> The awe_wave driver in 2.2 looked at the common I/O ports for
> the card if no parameters were specified. The 2.4 driver currently
> does an ISAPnP probe, but doesn't fall back to the previous probing
> behavior, which means that users with working module configurations
> will have theirs broken on upgrade.
>
Don't know if what follows has something to do with the patch you
submitted, but under kernel 2.2.x SB AWE 64 had a nasty problem. pnpdump
from the isapnptools (all versions I've tested) only reports one of a
total of three IO adresses for the Wavetable device:
(IO 0 (SIZE 4) (BASE 0x0620))
(IO 1 (SIZE 4) (BASE 0x0A20)) <-- not reported by pnpdump
(IO 2 (SIZE 4) (BASE 0x0E20)) <-- not reported by pnpdump
The latter two lines where manually added, as described in the
SB-AWE-HOWTO. Using isapnptools 1.21-2 (Debian Potato) the card configures
correctly, but with isapnptools 1.23-0.3 (Debian Woody) there is an error
trying to parse the first of the manually added lines (Don't know what to
do with A20)) on or around line 350).
It seem obvious that this change in behaviour is isapnptools related, but
not detecting the whole three IO addresses is an unresolved problem (as of
2.2.18, not tried with built-in PnP support in 2.4.x).
Would you need more information ?. I'm a totally kernel-devel newbie, but
with 3+ years using Linux, I think I can help with testing and triying
with kernel 2.4.x or patched 2.2.x.
--
José Luis Domingo López
Linux Registered User #189436 Debian GNU/Linux Potato (P166 64 MB RAM)
jdomingo EN internautas PUNTO org => ¿ Spam ? Atente a las consecuencias
jdomingo AT internautas DOT org => Spam at your own risk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] change awe_wave initialization to match 2.2 better
2001-02-19 22:26 ` José Luis Domingo López
@ 2001-02-19 22:59 ` Alan Cox
0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-02-19 22:59 UTC (permalink / raw)
To: José Luis Domingo López; +Cc: linux-kernel, alan
> It seem obvious that this change in behaviour is isapnptools related, but
> not detecting the whole three IO addresses is an unresolved problem (as of
> 2.2.18, not tried with built-in PnP support in 2.4.x).
Its a bug in the hardware
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-02-19 22:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-19 19:28 [PATCH] change awe_wave initialization to match 2.2 better Bill Nottingham
2001-02-19 22:26 ` José Luis Domingo López
2001-02-19 22:59 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox