Skip to content
Snippets Groups Projects
Commit 88f6576f authored by Simon Wood's avatar Simon Wood Committed by Jiri Kosina
Browse files

HID: hid-sony - allow 3rd party INTEC controller to turn off all leds


Without this patch the 3rd party INTEC (PS3) controller will blink all
leds when user turns them off, it appears to require an extra flag set.

Signed-off-by: default avatarSimon Wood <simon@mungewell.org>
Signed-off-by: default avatarFrank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent b3ed458c
No related branches found
No related tags found
No related merge requests found
...@@ -1420,6 +1420,10 @@ static void sixaxis_state_worker(struct work_struct *work) ...@@ -1420,6 +1420,10 @@ static void sixaxis_state_worker(struct work_struct *work)
report.data.leds_bitmap |= sc->led_state[2] << 3; report.data.leds_bitmap |= sc->led_state[2] << 3;
report.data.leds_bitmap |= sc->led_state[3] << 4; report.data.leds_bitmap |= sc->led_state[3] << 4;
/* Set flag for all leds off, required for 3rd party INTEC controller */
if ((report.data.leds_bitmap & 0x1E) == 0)
report.data.leds_bitmap |= 0x20;
/* /*
* The LEDs in the report are indexed in reverse order to their * The LEDs in the report are indexed in reverse order to their
* corresponding light on the controller. * corresponding light on the controller.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment