From: Dmitry Torokhov <dtor_core@ameritech.net>
To: linux-kernel@vger.kernel.org
Cc: Guillaume Chazarain <guichaz@yahoo.fr>,
linux-joystick@atrey.karlin.mff.cuni.cz,
Andrew Morton <akpm@osdl.org>
Subject: Re: snd-ens1371 (alsa) & joystick woes
Date: Thu, 28 Apr 2005 22:12:46 -0500 [thread overview]
Message-ID: <200504282212.48456.dtor_core@ameritech.net> (raw)
In-Reply-To: <425F8B09.3010706@yahoo.fr>
On Friday 15 April 2005 04:36, Guillaume Chazarain wrote:
> Guillaume Chazarain wrote:
>
> > From 2.6.11 to 2.6.12-rc2, there are some changes in the joystick
> > behaviour
> > that I don't think are expected. It's a simple joystick using
> > analog.ko plugged
> > on a sound board using snd-ens1371. So here we go:
>
> Reverting
> http://linux.bkbits.net:8080/linux-2.5/diffs/drivers/input/joydev.c@1.31?nav=index.html|src/|src/drivers|src/drivers/input|hist/drivers/input/joydev.c
> (removing all the added " + 1" in joydev.c) fixes it for me.
>
Hi,
Could you check if the following patch from Vojtech fixes it?
Thanks!
--
Dmitry
===================================================================
ChangeSet@1.2229.1.12, 2005-04-04 15:40:40+02:00, vojtech@suse.cz
input: Fix button mapping in joydev - BTN_TRIGGER was being
mapped twice, resulting in it being the last (instead
of first) button on a joystick.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
joydev.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
diff -Nru a/drivers/input/joydev.c b/drivers/input/joydev.c
--- a/drivers/input/joydev.c 2005-04-28 22:07:31 -05:00
+++ b/drivers/input/joydev.c 2005-04-28 22:07:31 -05:00
@@ -357,7 +357,7 @@
}
#ifdef CONFIG_COMPAT
-static long joydev_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg)
+static long joydev_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
struct joydev_list *list = file->private_data;
struct joydev *joydev = list->joydev;
@@ -488,7 +488,7 @@
joydev->nkey++;
}
- for (i = 0; i < BTN_JOYSTICK - BTN_MISC + 1; i++)
+ for (i = 0; i < BTN_JOYSTICK - BTN_MISC; i++)
if (test_bit(i + BTN_MISC, dev->keybit)) {
joydev->keymap[i] = joydev->nkey;
joydev->keypam[joydev->nkey] = i + BTN_MISC;
next prev parent reply other threads:[~2005-04-29 3:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 11:10 snd-ens1371 (alsa) & joystick woes Guillaume Chazarain
2005-04-12 13:23 ` Patrick McFarland
2005-04-12 13:28 ` Guillaume Chazarain
2005-04-15 9:36 ` Guillaume Chazarain
2005-04-29 3:12 ` Dmitry Torokhov [this message]
2005-04-29 9:07 ` Guillaume Chazarain
[not found] <3Ssnv-QY-7@gated-at.bofh.it>
[not found] ` <3StMH-1XF-49@gated-at.bofh.it>
2005-04-12 21:12 ` Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
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=200504282212.48456.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@osdl.org \
--cc=guichaz@yahoo.fr \
--cc=linux-joystick@atrey.karlin.mff.cuni.cz \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox