Commit 9c71b2c5 authored by Pali Rohár's avatar Pali Rohár Committed by Dmitry Torokhov

Input: alps - fix reporting pressure of v3 trackstick

According to documentation, all 7 lower bits represents trackpoint pressure.

Fixes: 4621c966 ("Input: alps - report pressure of v3 and v7 trackstick")
Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 6bd6ae63
......@@ -583,7 +583,7 @@ static void alps_process_trackstick_packet_v3(struct psmouse *psmouse)
x = (s8)(((packet[0] & 0x20) << 2) | (packet[1] & 0x7f));
y = (s8)(((packet[0] & 0x10) << 3) | (packet[2] & 0x7f));
z = packet[4] & 0x7c;
z = packet[4] & 0x7f;
/*
* The x and y values tend to be quite large, and when used
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment