Re: Oops on 2.3.44/loading es1371 module

From: Oleg Drokin (green@ccssu.ccssu.crimea.ua)
Date: Sun Feb 13 2000 - 11:13:02 EST


Hello!
In article <38A6C208.80823D7@somesites.com> you wrote:

r> I don't know if you folks know of this one, but I got an Oops trying to
r> load the es1371 module (sound card driver) into 2.3.44 (and 2.3.43) so
r> being such a nice person I ran it through ksymoops for ya.

r> Only notes I can think of is this is on Mandrake 7.0 and I got modutils
r> 2.3.9 using rpmfind
r> (package modutils-2.3.9-2mdk.src.rpm) and rebuilt it under 2.3.43, if
r> that might have any impact upon anything. This oops is repeatable;
r> reboot and try loading it again, oops!
It seems you have codec that is unknown for in-kernel driver.
Following patch should help you.
(Apply in in drivers/sound subdir)

--- ac97_codec.c.orig Sun Feb 13 18:07:25 2000
+++ ac97_codec.c Sun Feb 13 18:09:16 2000
@@ -381,7 +381,7 @@
         
         id1 = codec->codec_read(codec, AC97_VENDOR_ID1);
         id2 = codec->codec_read(codec, AC97_VENDOR_ID2);
- for (i = 0; i < sizeof (snd_ac97_codec_ids); i++) {
+ for (i = 0; snd_ac97_codec_ids[i].id != 0 ; i++) {
                 if (snd_ac97_codec_ids[i].id == ((id1 << 16) | id2)) {
                         codec->name = snd_ac97_codec_ids[i].name;
                         codec->codec_init = snd_ac97_codec_ids[i].init;

Bye,
    Oleg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:24 EST