summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/rcar-hpbdma.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-10-28 17:49:20 +0100
committerJiri Kosina <jkosina@suse.cz>2013-10-30 14:13:29 +0100
commit08072dde333c2f09114a01b0bd32be52ecce195b (patch)
tree9f6841827abd53f5445052951ff2b1a64a925bb8 /drivers/dma/sh/rcar-hpbdma.c
parent0abda6fa81dced031e3df31ac29bfb253549c2d1 (diff)
downloadblackbird-op-linux-08072dde333c2f09114a01b0bd32be52ecce195b.tar.gz
blackbird-op-linux-08072dde333c2f09114a01b0bd32be52ecce195b.zip
HID: wiimote: add pro-controller analog stick calibration
The analog sticks of the pro-controller might report slightly off values. To guarantee a uniform setup, we now calibrate analog-stick values during pro-controller setup. Unfortunately, the pro-controller fails during normal EEPROM reads and I couldn't figure out whether there are any calibration values stored on the device. Therefore, we now use the first values reported by the device (iff they are not _way_ off, which would indicate movement) to initialize the calibration values. To allow users to change this calibration data, we provide a pro_calib sysfs attribute. We also change the "flat" values so user-space correctly smoothes our data. It makes slightly off zero-positions less visible while still guaranteeing highly precise movement reports. Note that the pro controller reports zero-positions in a quite huge range (at least: -100 to +100). Reported-by: Rafael Brune <mail@rbrune.de> Tested-by: Rafael Brune <mail@rbrune.de> Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/dma/sh/rcar-hpbdma.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud