]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Report full pressure range for Intuos, Cintiq 13HD Touch
authorJason Gerecke <killertofu@gmail.com>
Thu, 15 Oct 2015 17:17:06 +0000 (10:17 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 21 Oct 2015 09:18:41 +0000 (11:18 +0200)
commit1870089d9744c34f549bb624e5b55a3f76997e38
treea53a31fe90b366f9367cbd07d64882f3dd7e085d
parentd1dd9d72bb8703d734829b2d3a22dd868719f2b4
HID: wacom: Report full pressure range for Intuos, Cintiq 13HD Touch

The new Intuos tablets added in 5a202ec and the Cintiq 13HD Touch added
in 1c180a5 are capable of reporting 2048 levels of pressure. Although the
kernel reports the correct range to userspace, an oversight has resulted
in the driver ingoring the 11th pressure bit and only sending pressures
of 0 through 1023.

We could fix this issue by expanding the type check to include these
devices, but it makes much more sense to just have the driver look at
the device's maximum pressure when determining if it should read the
11th bit.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c