All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ludovic Drolez <ldrolez@free.fr>
To: Erik Mouw <J.A.K.Mouw@its.tudelft.nl>
Cc: alsa-devel@alsa-project.org
Subject: sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug
Date: Mon, 11 Feb 2002 22:42:17 +0100	[thread overview]
Message-ID: <3C683AB9.2040402@free.fr> (raw)
In-Reply-To: 20020210223504.GD22208@arthur.ubicom.tudelft.nl

Hi !


I recompiled alsa with the '--with-debug=detect' option to find why alsa 0.5.12a works 
perfectly with my 2.2.19 kernel but not with a 2.4.17.
Both kernel are compiled with ISAPNP but Alsa is compiled '--with-isapnp=no' because the 
SB16Pro is not PNP.

With k 2.2.19, 'modprobe snd-card-sb16 snd_irq=5' gives:

Feb 11 18:46:52 red kernel: snd: SB [0x220]: DSP chip found, version = 4.13

Ok, no problem at all, now with 2.4.17:

Feb 11 19:50:57 red kernel: snd: isapnp failed for SB16
Feb 11 19:50:57 red kernel: snd: Sound Blaster 16 soundcard #1 not found at 0x220 or 
device busy
Feb 11 19:50:57 red kernel: snd: Sound Blaster 16 soundcard #2 not found or device busy 


Problem: Alsa tries to detect a PNP card even with '--with-isapnp=no' !
Indeed the 1st line (...isapnp failed...) is output by card-sb16.c line 536.
There is a bug here because 'snd_sb16_isapnp()' should not be reached because of a '#ifdef 
__ISAPNP__' and because 'CONFIG_ISAPNP=0'.

My quick fix to make my card work with 2.4.17:


--- include/driver.h.orig       Mon Feb 11 22:04:50 2002
+++ include/driver.h    Mon Feb 11 22:05:02 2002
@@ -125,21 +125,21 @@

  #if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE)
)
  #if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CO
DE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD))
  #include <linux/isapnp.h>
  #define isapnp_dev pci_dev
  #define isapnp_card pci_bus
  #else
  #include "isapnp.h"
  #endif
  #undef __ISAPNP__
-#define __ISAPNP__
+//#define __ISAPNP__
  #endif

  #ifndef MODULE_LICENSE
  #define MODULE_LICENSE(license)
  #endif

  #ifndef ALSA_BUILD
  #include <linux/asound.h>
  #include <linux/asoundid.h>
  #else


So there must be a problem with all the #if but I do not know exactly where.

(CONFIG_ISAPNP is redefined somewhere but it should not be).


Cheers,

   Ludovic Drolez.




-- 
http://www.palmopensource.com       - The PalmOS Open Source Portal
http://www.drolez.com      - Personal site - Linux and PalmOS stuff


_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

  reply	other threads:[~2002-02-11 21:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-10 19:12 sb 16 pro + alsa 0.5.12a + k 2.4.17 Ludovic Drolez
2002-02-10 20:42 ` Erik Mouw
2002-02-10 21:44   ` Ludovic Drolez
2002-02-10 22:35     ` Erik Mouw
2002-02-11 21:42       ` Ludovic Drolez [this message]
2002-02-11 23:44         ` sb 16 pro + alsa 0.5.12a + k 2.4.17 = alsa isapnp bug Frans Ketelaars

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=3C683AB9.2040402@free.fr \
    --to=ldrolez@free.fr \
    --cc=J.A.K.Mouw@its.tudelft.nl \
    --cc=alsa-devel@alsa-project.org \
    /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.