Input: xpad - correctly set LED for wireless controller
Subsystems (2)
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.
Signed-off-by Yang Zhao <[email protected]>
--- drivers/input/joystick/xpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/input/joystick/xpad.c +2 -2
@@ -1208,8 +1208,8 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *idusb_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