Skip to contentSkip to conversation

Input: xpad - correctly set LED for wireless controller

PATCH New Yang Zhao 1 participant 1 message Apr 22, 2015

Subsystems (2)
lore
Share & tools
lore

Yang Zhao

author
#0 lore raw

PATCH 1/1 Input: xpad - correctly set LED for wireless controller

The payload sent to wireless controllers to set its LED state via interrupt is correct but using the wrong control parameters, causing the packet to apparently be ignored. Sending this correctly fixes the "always blinking LED" problem on Xbox 360 wireless controllers.

---
 drivers/input/joystick/xpad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/input/joystick/xpad.c +2 -2
index 61c7611..7a0ae65 100644
@@ -1208,8 +1208,8 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
 			usb_fill_int_urb(xpad->bulk_out, udev,
 					 usb_sndintpipe(udev,
 							ep_irq_in->bEndpointAddress),
-					 xpad->bdata, XPAD_PKT_LEN,
-					 xpad_bulk_out, xpad, 0);
+					 xpad->bdata, 12,
+					 xpad_irq_out, xpad, ep_irq_in->bInterval);
 		}
 
 		/*
Signature · 1 line
2.0.5