[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160509071838.881700164@linuxfoundation.org>
Date: Mon, 9 May 2016 09:18:38 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Knut Wohlrab <Knut.Wohlrab@...bosch.com>,
Oleksij Rempel <linux@...pel-privat.de>,
Dirk Behme <dirk.behme@...bosch.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>
Subject: [PATCH 4.4 33/67] Input: zforce_ts - fix dual touch recognition
4.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Knut Wohlrab <Knut.Wohlrab@...bosch.com>
commit 6984ab1ab35f422292b7781c65284038bcc0f6a6 upstream.
A wrong decoding of the touch coordinate message causes a wrong touch
ID. Touch ID for dual touch must be 0 or 1.
According to the actual Neonode nine byte touch coordinate coding,
the state is transported in the lower nibble and the touch ID in
the higher nibble of payload byte five.
Signed-off-by: Knut Wohlrab <Knut.Wohlrab@...bosch.com>
Signed-off-by: Oleksij Rempel <linux@...pel-privat.de>
Signed-off-by: Dirk Behme <dirk.behme@...bosch.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/input/touchscreen/zforce_ts.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/input/touchscreen/zforce_ts.c
+++ b/drivers/input/touchscreen/zforce_ts.c
@@ -370,8 +370,8 @@ static int zforce_touch_event(struct zfo
point.coord_x = point.coord_y = 0;
}
- point.state = payload[9 * i + 5] & 0x03;
- point.id = (payload[9 * i + 5] & 0xfc) >> 2;
+ point.state = payload[9 * i + 5] & 0x0f;
+ point.id = (payload[9 * i + 5] & 0xf0) >> 4;
/* determine touch major, minor and orientation */
point.area_major = max(payload[9 * i + 6],
Powered by blists - more mailing lists