From alsa-devel-owner@alsa.jcu.cz  Thu Jun 18 22:33:51 1998
Received: from elektron.elka.pw.edu.pl (root@elektron.elka.pw.edu.pl [148.81.63.249])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id WAA31192
	for <alsa-devel@alsa.jcu.cz>; Thu, 18 Jun 1998 22:33:22 +0200
Received: from default ([148.81.63.249]) by elektron.elka.pw.edu.pl with SMTP id <89804-6705>; Thu, 18 Jun 1998 22:32:48 +0200
From: "Piniek (aka Piotr Ingling)" <pingling@elka.pw.edu.pl>
To: alsa-devel@alsa.jcu.cz
Date: 	Thu, 18 Jun 1998 22:35:35 +0100
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: gusclassic module and kernel oops
Message-Id: <19980618203248Z89804-6705+1@elektron.elka.pw.edu.pl>
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

I have a SBPro and GUS ACE. When I try to load the snd-gusclassic module I 
get a kernel oops (unable to handle kernel NULL pointer dereference... etc.). 
I posted that to alsa-user list but got no responses so I decided to work it 
out myself. I managed to track down the problem. That module bails out on a 
snd_rawmidi_register function (line 257 in gusclassic.c). It's the line 936 
of rawmidi.c that this module seems to have problems with:

  idx = (rmidi -> card -> number * SND_RAWMIDI_DEVICES) + rawmidi_device;

I commented out that snd_rawmidi_register from gusclassic.c and the module 
gets compiled and works with no problems so far. Probably midi doesn't work - 
I can't check it as I don't have any .mids laying around. I don't need midi 
in fact so that's not a big problem for me but others may need it...

                         Piotr Ingling
e-mail: pingling@elka.pw.edu.pl
------------------------------------------------------------
Ceny na gieldzie komputerowej w Warszawie:
        http://home.elka.pw.edu.pl/~pingling/ceny-pl.html

