From: clement.calmels@free.fr
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Clement Calmels <clement.calmels@free.fr>
Subject: [PATCH] Input: Fix led setting on wireless xbox 360 controller
Date: Sun, 26 Apr 2015 14:33:27 +0200 [thread overview]
Message-ID: <1430051607-1426-1-git-send-email-clement.calmels@free.fr> (raw)
From: Clement Calmels <clement.calmels@free.fr>
When a wireless xbox 360 controller connects, its leds keep blinking
instead of indicating the contoller number.
This patch fix this issue. Tested with two wireless xbox360
controllers and the USB wireless gaming receiver:
Bus 002 Device 004: ID 045e:0719 Microsoft Corp. Xbox 360 Wireless Adapter
Signed-off-by: Clement Calmels <clement.calmels@free.fr>
---
drivers/input/joystick/xpad.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 61c7611..6e211b0 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -1209,7 +1209,8 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
usb_sndintpipe(udev,
ep_irq_in->bEndpointAddress),
xpad->bdata, XPAD_PKT_LEN,
- xpad_bulk_out, xpad, 0);
+ xpad_bulk_out, xpad,
+ ep_irq_in->bInterval);
}
/*
--
2.1.4
reply other threads:[~2015-04-26 12:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1430051607-1426-1-git-send-email-clement.calmels@free.fr \
--to=clement.calmels@free.fr \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--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 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.