All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ruslan U. Zakirov" <cubic@wr.miee.ru>
To: Roger A Oksanen <raoksane@cs.Helsinki.FI>
Cc: linux-kernel@vger.kernel.org, davej@suse.de, trivial@rustcorp.com.au
Subject: Re: Radix tree related oops in 2.5.51-mm1
Date: Tue, 10 Dec 2002 20:11:56 +0300	[thread overview]
Message-ID: <7981207400.20021210201156@wr.miee.ru> (raw)
In-Reply-To: <Pine.LNX.4.44.0212101809460.6514-100000@melkki.cs.Helsinki.FI>

Hi Roger and all.
RAO> Oh, and just in case someone tries to compile with my config; to get the
RAO> ALSA AWE32 code to compile (in sb16.c) , I had to change the init variable c
RAO> sp as it was a duplicate of the global csp variable..
RAO> I should probably see(test) if the plain 2.5.51 has this problem also..
RAO> # CONFIG_SND_SB16 is not set
RAO> CONFIG_SND_SBAWE=y
RAO> CONFIG_SND_SB16_CSP=y
I have same problem with it. Somebody miss this fact when striped out
snd prefix in this driver. I've send patch to kernel list, but it was
skiped.
But with solving this problem you don't have CSP enabled because it's
disabled by default and you must use bootparams to enable it:
#ifdef CONFIG_SND_SB16_CSP
static int csp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 0};
#endif

Here is my TRIVIAL patch.
--- sound/isa/sb/sb16.c.orig    Tue Dec 10 19:46:41 2002
+++ sound/isa/sb/sb16.c Tue Dec 10 19:48:27 2002
@@ -664,7 +664,7 @@
 {
        static unsigned __initdata nr_dev = 0;
        int __attribute__ ((__unused__)) pnp = INT_MAX;
-       int __attribute__ ((__unused__)) csp = INT_MAX;
+       int __attribute__ ((__unused__)) xcsp = INT_MAX;

        if (nr_dev >= SNDRV_CARDS)
                return 0;
@@ -681,7 +681,7 @@
               get_option(&str,&mic_agc[nr_dev]) == 2
 #ifdef CONFIG_SND_SB16_CSP
               &&
-              get_option(&str,&csp[nr_dev]) == 2
+              get_option(&str,&xcsp) == 2
 #endif
 #ifdef SNDRV_SBAWE_EMU8000
               &&
@@ -694,8 +694,8 @@
                isapnp[nr_dev] = pnp;
 #endif
 #ifdef CONFIG_SND_SB16_CSP
-       if (csp != INT_MAX)
-               csp[nr_dev] = csp;
+       if (xcsp != INT_MAX)
+               csp[nr_dev] = xcsp;
 #endif
        nr_dev++;
        return 1;
Best Regards.
             Ruslan. See you later...


      reply	other threads:[~2002-12-10 17:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 16:26 Radix tree related oops in 2.5.51-mm1 Roger A Oksanen
2002-12-10 17:11 ` Ruslan U. Zakirov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7981207400.20021210201156@wr.miee.ru \
    --to=cubic@wr.miee.ru \
    --cc=davej@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raoksane@cs.Helsinki.FI \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.