[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1430051607-1426-1-git-send-email-clement.calmels@free.fr>
Date: Sun, 26 Apr 2015 14:33:27 +0200
From: clement.calmels@...e.fr
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Clement Calmels <clement.calmels@...e.fr>
Subject: [PATCH] Input: Fix led setting on wireless xbox 360 controller
From: Clement Calmels <clement.calmels@...e.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@...e.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists