[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231017131057.1034956-1-markus.burri@mt.com>
Date: Tue, 17 Oct 2023 15:10:57 +0200
From: Markus Burri <markus.burri@...com>
To: linux-kernel@...r.kernel.org
Cc: Markus Burri <markus.burri@...com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Henrik Rydberg <rydberg@...math.org>,
linux-input@...r.kernel.org
Subject: [PATCH v0001 1/1] input/ts: ili210x: send abs-mt-pressure for untouched
Send the ABS_MT_PRESSURE event in case of untouched with zero pressure.
Multitouch pressure is only sent on first touch.
Therefore send an ABS_MT_PRESSURE event in case of untouched with zero pressure.
This avoids that the next ABS_MT_PRESSURE event will
be filtered out by input_defuzz_abs_event() in input.c since the pressure
value has not changed.
Signed-off-by: Markus Burri <markus.burri@...com>
---
drivers/input/touchscreen/ili210x.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c
index e9bd36a..6b79513 100644
--- a/drivers/input/touchscreen/ili210x.c
+++ b/drivers/input/touchscreen/ili210x.c
@@ -318,7 +318,8 @@ static bool ili210x_report_events(struct ili210x *priv, u8 *touchdata)
if (priv->chip->has_pressure_reg)
input_report_abs(input, ABS_MT_PRESSURE, z);
contact = true;
- }
+ } else if (priv->chip->has_pressure_reg)
+ input_report_abs(input, ABS_MT_PRESSURE, 0);
}
input_mt_report_pointer_emulation(input, false);
--
2.39.2
Powered by blists - more mailing lists