OSDN Git Service

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)
commit0a286ef278529f2bc4f4bb27c4cf99c05999c818
treeb3fc8a9ad60e6d362a60e95dd0c20153c642acb6
parent2251b85f3dfd7be140e2d6a1f9d1e78287367a4f
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