]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Fix Sixaxis cable state detection
authorFrank Praznik <frank.praznik@oh.rr.com>
Sat, 15 Mar 2014 13:41:15 +0000 (09:41 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 Apr 2014 16:44:06 +0000 (18:44 +0200)
commit2727ad768b75196b6d3ff731c26450416befa95a
tree487929d4522bb9de85996c3a077477c5101f03af
parent425648ea1b23fd1f9e9e2f56715c47e550ccbf2e
HID: sony: Fix Sixaxis cable state detection

Byte 31 of the Sixaxis report can change depending on whether or not the
controller is rumbling.  Using bit 3 is the only reliable way to detect the
state of the cable regardless of rumble activity.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c