From: Adrian Bunk <bunk@stusta.de>
To: dtor_core@ameritech.net
Cc: Borislav Petkov <petkov@uni-muenster.de>,
perex@suse.cz, vojtech@suse.cz, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
linux-input@atrey.karlin.mff.cuni.cz
Subject: [2.6 patch] sound/pci/cs4281.c fix typos in the SUPPORT_JOYSTICK=n case
Date: Tue, 8 Mar 2005 00:06:33 +0100 [thread overview]
Message-ID: <20050307230633.GJ3170@stusta.de> (raw)
In-Reply-To: <d120d50005030714126e345fe2@mail.gmail.com>
On Mon, Mar 07, 2005 at 05:12:57PM -0500, Dmitry Torokhov wrote:
> On Mon, 7 Mar 2005 22:52:06 +0100, Adrian Bunk <bunk@stusta.de> wrote:
> > On Mon, Mar 07, 2005 at 09:41:59AM +0100, Borislav Petkov wrote:
> > >
> > > --- sound/pci/ymfpci/ymfpci.c.orig 2005-03-07 09:07:10.000000000 +0100
> > > +++ sound/pci/ymfpci/ymfpci.c 2005-03-07 09:08:02.000000000 +0100
> > > @@ -332,7 +332,9 @@ static int __devinit snd_card_ymfpci_pro
> > > }
> > > }
> > >
> > > +#ifdef SUPPORT_JOYSTICK
> > > snd_ymfpci_create_gameport(chip, dev, legacy_ctrl, legacy_ctrl2);
> > > +#endif /* SUPPORT_JOYSTICK */
> > >
> > > if ((err = snd_card_register(card)) < 0) {
> > > snd_card_free(card);
> >
> > Nice catch (but I had to apply the patch manually due to some
> > whitespace damage).
> >
> > After a quick look, it seems there are a dozen other sound drivers (most
> > OSS but also ALSA) with similar problems.
>
> Note that in input tree (and in -mm) I tried to clean up these #ifdefs
> by providing dummy functions when CONFIG_GAMEPORT is not selected. The
> original report caused by the typo in dummy function name
> (snc_ymfpci_create_gameport).
I was looking at -mm.
Ah OK, that sounds like a good solution.
I rechecked, and the only other non-OSS problems are in
sound/pci/cs4281.c where the two dummy functions have the wrong names,
too (patch below).
I'll send patches against the OSS drivers with this problem later.
> Dmitry
cu
Adrian
<-- snip -->
This patch fixes typos in the SUPPORT_JOYSTICK=n case.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.11-mm1-full/sound/pci/cs4281.c.old 2005-03-07 23:45:01.000000000 +0100
+++ linux-2.6.11-mm1-full/sound/pci/cs4281.c 2005-03-07 23:45:27.000000000 +0100
@@ -1331,8 +1331,8 @@
}
}
#else
-static inline int snd_cs4281_gameport(cs4281_t *chip) { return -ENOSYS; }
-static inline void snd_cs4281_gameport_free(cs4281_t *chip) { }
+static inline int snd_cs4281_create_gameport(cs4281_t *chip) { return -ENOSYS; }
+static inline void snd_cs4281_free_gameport(cs4281_t *chip) { }
#endif /* CONFIG_GAMEPORT || (MODULE && CONFIG_GAMEPORT_MODULE) */
-------------------------------------------------------
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
WARNING: multiple messages have this Message-ID (diff)
From: Adrian Bunk <bunk@stusta.de>
To: dtor_core@ameritech.net
Cc: Borislav Petkov <petkov@uni-muenster.de>,
perex@suse.cz, vojtech@suse.cz, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
linux-input@atrey.karlin.mff.cuni.cz
Subject: [2.6 patch] sound/pci/cs4281.c fix typos in the SUPPORT_JOYSTICK=n case
Date: Tue, 8 Mar 2005 00:06:33 +0100 [thread overview]
Message-ID: <20050307230633.GJ3170@stusta.de> (raw)
In-Reply-To: <d120d50005030714126e345fe2@mail.gmail.com>
On Mon, Mar 07, 2005 at 05:12:57PM -0500, Dmitry Torokhov wrote:
> On Mon, 7 Mar 2005 22:52:06 +0100, Adrian Bunk <bunk@stusta.de> wrote:
> > On Mon, Mar 07, 2005 at 09:41:59AM +0100, Borislav Petkov wrote:
> > >
> > > --- sound/pci/ymfpci/ymfpci.c.orig 2005-03-07 09:07:10.000000000 +0100
> > > +++ sound/pci/ymfpci/ymfpci.c 2005-03-07 09:08:02.000000000 +0100
> > > @@ -332,7 +332,9 @@ static int __devinit snd_card_ymfpci_pro
> > > }
> > > }
> > >
> > > +#ifdef SUPPORT_JOYSTICK
> > > snd_ymfpci_create_gameport(chip, dev, legacy_ctrl, legacy_ctrl2);
> > > +#endif /* SUPPORT_JOYSTICK */
> > >
> > > if ((err = snd_card_register(card)) < 0) {
> > > snd_card_free(card);
> >
> > Nice catch (but I had to apply the patch manually due to some
> > whitespace damage).
> >
> > After a quick look, it seems there are a dozen other sound drivers (most
> > OSS but also ALSA) with similar problems.
>
> Note that in input tree (and in -mm) I tried to clean up these #ifdefs
> by providing dummy functions when CONFIG_GAMEPORT is not selected. The
> original report caused by the typo in dummy function name
> (snc_ymfpci_create_gameport).
I was looking at -mm.
Ah OK, that sounds like a good solution.
I rechecked, and the only other non-OSS problems are in
sound/pci/cs4281.c where the two dummy functions have the wrong names,
too (patch below).
I'll send patches against the OSS drivers with this problem later.
> Dmitry
cu
Adrian
<-- snip -->
This patch fixes typos in the SUPPORT_JOYSTICK=n case.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.11-mm1-full/sound/pci/cs4281.c.old 2005-03-07 23:45:01.000000000 +0100
+++ linux-2.6.11-mm1-full/sound/pci/cs4281.c 2005-03-07 23:45:27.000000000 +0100
@@ -1331,8 +1331,8 @@
}
}
#else
-static inline int snd_cs4281_gameport(cs4281_t *chip) { return -ENOSYS; }
-static inline void snd_cs4281_gameport_free(cs4281_t *chip) { }
+static inline int snd_cs4281_create_gameport(cs4281_t *chip) { return -ENOSYS; }
+static inline void snd_cs4281_free_gameport(cs4281_t *chip) { }
#endif /* CONFIG_GAMEPORT || (MODULE && CONFIG_GAMEPORT_MODULE) */
next prev parent reply other threads:[~2005-03-07 23:06 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-04 11:32 2.6.11-mm1 Andrew Morton
2005-03-04 13:59 ` 2.6.11-mm1 Aurélien Francillon
2005-03-04 14:19 ` 2.6.11-mm1 Aurélien Francillon
2005-03-04 16:44 ` 2.6.11-mm1 (compile stats) John Cherry
2005-03-04 22:16 ` 2.6.11-mm1 Alexander Nyberg
2005-03-04 22:39 ` 2.6.11-mm1 Andrew Morton
2005-03-04 22:55 ` 2.6.11-mm1 Alexander Nyberg
2005-03-08 21:31 ` 2.6.11-mm1 Alexander Nyberg
2005-03-07 8:41 ` 2.6.11-mm1 Borislav Petkov
2005-03-07 21:52 ` 2.6.11-mm1: sound <-> GAMEPORT problems Adrian Bunk
2005-03-07 21:52 ` Adrian Bunk
2005-03-07 22:05 ` Dmitry Torokhov
2005-03-07 22:05 ` Dmitry Torokhov
2005-03-07 22:12 ` Dmitry Torokhov
2005-03-07 22:12 ` Dmitry Torokhov
2005-03-07 23:06 ` Adrian Bunk [this message]
2005-03-07 23:06 ` [2.6 patch] sound/pci/cs4281.c fix typos in the SUPPORT_JOYSTICK=n case Adrian Bunk
2005-03-08 10:24 ` Vojtech Pavlik
2005-03-08 10:24 ` Vojtech Pavlik
2005-03-09 11:32 ` [2.6 patch] OSS gameport fixes Adrian Bunk
2005-03-09 11:32 ` Adrian Bunk
2005-03-10 15:36 ` Dmitry Torokhov
2005-03-10 15:36 ` Dmitry Torokhov
2005-03-10 15:57 ` Vojtech Pavlik
2005-03-10 15:57 ` Vojtech Pavlik
2005-03-07 8:51 ` 2.6.11-mm1 Guillaume Thouvenin
2005-03-07 8:58 ` 2.6.11-mm1 Andrew Morton
2005-03-07 23:45 ` 2.6.11-mm1 Greg KH
2005-03-07 23:07 ` [-mm patch] sound/oss/soundcard.c: remove an unused variable Adrian Bunk
2005-03-08 2:33 ` Jesper Juhl
2005-03-10 17:21 ` 2.6.11-mm1 Tom Rini
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=20050307230633.GJ3170@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=alsa-devel@alsa-project.org \
--cc=dtor_core@ameritech.net \
--cc=linux-input@atrey.karlin.mff.cuni.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
--cc=petkov@uni-muenster.de \
--cc=vojtech@suse.cz \
/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.