lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 20 Mar 2023 17:00:12 +0900
From:   junghoonHyun <cjbtest001@...il.com>
To:     dmitry.torokhov@...il.com
Cc:     jeesw@...fas.com, rydberg@...math.org,
        linux-kernel@...r.kernel.org, kms2701@...isplay.com,
        hyunjunghoon@...fas.com, hbarnor@...gle.com,
        sstarkenburg@...gle.com, jbtech0701@...m.net
Subject: [PATCH] Staging: melfas_mip4: add palm sequence

add palm processing logic

Signed-off-by: JungHoon Hyun <hyunjunghoon@...fas.com>
---
 drivers/input/touchscreen/melfas_mip4.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/melfas_mip4.c b/drivers/input/touchscreen/melfas_mip4.c
index acdfbdea2b6e..311a6a1c0ac4 100644
--- a/drivers/input/touchscreen/melfas_mip4.c
+++ b/drivers/input/touchscreen/melfas_mip4.c
@@ -525,7 +525,11 @@ static void mip4_report_touch(struct mip4_ts *ts, u8 *packet)
 	} else if (state) {
 		/* Press or Move event */
 		input_mt_slot(ts->input, id);
-		input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
+		if (palm)
+			input_mt_report_slot_state(ts->input, MT_TOOL_PALM, true);
+		else
+			input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
+
 		input_report_abs(ts->input, ABS_MT_POSITION_X, x);
 		input_report_abs(ts->input, ABS_MT_POSITION_Y, y);
 		input_report_abs(ts->input, ABS_MT_PRESSURE, pressure);
@@ -1483,6 +1487,9 @@ static int mip4_probe(struct i2c_client *client)
 	input->keycodesize = sizeof(*ts->key_code);
 	input->keycodemax = ts->key_num;
 
+	input_set_abs_params(input, ABS_MT_TOOL_TYPE,
+							0, MT_TOOL_PALM, 0, 0);
+
 	input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0);
 	input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0);
 	input_set_abs_params(input, ABS_MT_PRESSURE,
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ