HID: alps: fix multitouch cursor issue
authorMasaki Ota <[email protected]>
Tue, 27 Sep 2016 05:04:37 +0000 (14:04 +0900)
committerJiri Kosina <[email protected]>
Tue, 27 Sep 2016 11:50:09 +0000 (13:50 +0200)
commit9a54cf462d6f3c383a5a4f5fe15c020a03db44e6
tree53bee8d449c5d9012d72468f413d1fba8d97ce7e
parent884316deb4c9fdf9becfa31831a9e40717e3026c
HID: alps: fix multitouch cursor issue

Issue reproduction procedure:

1. three or more fingers put on Touchpad.
2. release fingers from Touchpad.
3. move the cursor by one finger.
4. the cursor does not move.

Cause:

We do not notify multi fingers state correctly to input subsystem.  For
example, when three fingers release from Touchpad, fingers state is 3 -> 0. It
needs to notify first, second and third finger's releasing state.

Fix this by not breaking out on z axis and move x,y,z input handling
code to the correct place so that it's in fact per-finger.

[[email protected]: reword changelog]
Signed-off-by: Masaki Ota <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-alps.c