]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Add LED support for Sixaxis/Dualshock3 USB
authorSven Eckelmann <sven@narfation.org>
Tue, 19 Nov 2013 19:26:32 +0000 (20:26 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 20 Nov 2013 08:59:19 +0000 (09:59 +0100)
commit8612383c7b6411c60c727793f437061c64b07f1b
treeb3fc8a9ad60e6d362a60e95dd0c20153c642acb6
parent1e6dd819eb587c7438bb64e6f97a531003a3d9e0
HID: sony: Add LED support for Sixaxis/Dualshock3 USB

The PS3 Sixaxis controller has 4 LEDs which can be controlled using the same
command as the rumble functionality. It seems not to be possible to only change
the LED without modifying the rumble motor state. Thus both have to be stored
on the host and retransmitted when either the LED or rumble state is changed.

Third party controllers may not support to disable all LEDs at once. These
controllers automatically switch to blinking of all LEDs when no LED is active
anymore.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Tested-by: Simon Wood <simon@mungewell.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c