Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: matthieu castet <castet.matthieu@free.fr>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: mpu401_pnp
Date: Mon, 07 Feb 2005 20:23:24 +0100	[thread overview]
Message-ID: <4207C02C.2060602@free.fr> (raw)
In-Reply-To: <Pine.HPX.4.33n.0502071640410.3379-100000@studcom.urz.uni-halle.de>

Hi,
Clemens Ladisch wrote:
> matthieu castet wrote:
> 
>>Ok, I found a bug in your patch : when you call pnp_register_driver, you
>>should check that it is >= 0. If not you shouldn't call
>>pnp_unregister_driver.
> 
> 
> I just copied this from the other ALSA PnP drivers.  It seems those
> have all the same bug.
$grep -rI pnp_register_driver /usr/src/linux/sound/
/usr/src/linux/sound/oss/opl3sa2.c: 
pnp_register_driver(&opl3sa2_driver);
/usr/src/linux/sound/oss/awe_wave.c:    ret = 
pnp_register_driver(&awe_pnp_driver);
/usr/src/linux/sound/oss/cs4232.c: 
(pnp_register_driver(&cs4232_driver) > 0)
/usr/src/linux/sound/oss/cs4232.c:      if 
(pnp_register_driver(&cs4232_driver) > 0)
/usr/src/linux/sound/drivers/mpu401/mpu401.c:   if ((err = 
pnp_register_driver(&snd_mpu401_pnp_driver)) >= 0) {

only old oss driver seem to use it, the other alsa driver use 
pnp_register_card_driver that seem only provide >= 0 res


Matthieu


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  parent reply	other threads:[~2005-02-07 19:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31 20:50 mpu401_pnp castet.matthieu
2005-02-07  8:46 ` mpu401_pnp Clemens Ladisch
2005-02-07 10:40   ` mpu401_pnp castet.matthieu
2005-02-07 12:10   ` mpu401_pnp matthieu castet
2005-02-07 12:59   ` mpu401_pnp matthieu castet
2005-02-07 15:54     ` mpu401_pnp Clemens Ladisch
2005-02-07 19:13       ` mpu401_pnp matthieu castet
2005-02-07 19:23       ` matthieu castet [this message]
2005-02-09 16:46         ` mpu401_pnp Clemens Ladisch
2005-02-09 14:17       ` mpu401_pnp matthieu castet
2005-02-11 10:00     ` mpu401_pnp Clemens Ladisch

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=4207C02C.2060602@free.fr \
    --to=castet.matthieu@free.fr \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox