From: 廖崇榮 <kt.liao@emc.com.tw>
To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
dmitry.torokhov@gmail.com
Cc: phoenix@emc.com.tw, jeff.chung@emc.com.tw,
charliemooney@google.com, agnescheng@google.com,
'jeff' <jeff.chuang@emc.com.tw>
Subject: RE: [PATCH] Input: /input/input-mt.c Emit BTN_TOO_FINGER in function input_mt_report_pointer_emulation if touchpad meets hover condition Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Date: Thu, 2 Jun 2016 19:57:27 +0800 [thread overview]
Message-ID: <005701d1bcc5$ef2c92b0$cd85b810$@emc.com.tw> (raw)
In-Reply-To: <1464493153-2509-1-git-send-email-kt.liao@emc.com.tw>
Hi Dmitry,
I up-streamed the patch last Sunday, please let me know if you have other
concern.
Thanks your support KT
-----Original Message-----
From: KT Liao [mailto:ktalex.liao@gmail.com]
Sent: Sunday, May 29, 2016 11:39 AM
To: linux-kernel@vger.kernel.org; linux-input@vger.kernel.org;
dmitry.torokhov@gmail.com
Cc: phoenix@emc.com.tw; kt.liao@emc.com.tw; jeff.chung@emc.com.tw;
charliemooney@google.com
Subject: [PATCH] Input: /input/input-mt.c Emit BTN_TOO_FINGER in function
input_mt_report_pointer_emulation if touchpad meets hover condition
Signed-off-by: KT Liao <kt.liao@emc.com.tw>
---
drivers/input/input-mt.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index
54fce56..b89aaa7 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -218,8 +218,17 @@ void input_mt_report_pointer_emulation(struct input_dev
*dev, bool use_count)
}
input_event(dev, EV_KEY, BTN_TOUCH, count > 0);
- if (use_count)
+
+ if (use_count) {
+ if (count == 0 &&
+ !test_bit(ABS_MT_DISTANCE, dev->absbit) &&
+ test_bit(ABS_DISTANCE, dev->absbit) &&
+ input_abs_get_val(dev, ABS_DISTANCE) != 0) {
+ count = 1;
+ }
input_mt_report_finger_count(dev, count);
+ }
+
if (oldest) {
int x = input_mt_get_value(oldest, ABS_MT_POSITION_X);
WARNING: multiple messages have this Message-ID (diff)
From: 廖崇榮 <kt.liao@emc.com.tw>
To: <linux-kernel@vger.kernel.org>, <linux-input@vger.kernel.org>,
<dmitry.torokhov@gmail.com>
Cc: <phoenix@emc.com.tw>, <jeff.chung@emc.com.tw>,
<charliemooney@google.com>, <agnescheng@google.com>,
"'jeff'" <jeff.chuang@emc.com.tw>
Subject: RE: [PATCH] Input: /input/input-mt.c Emit BTN_TOO_FINGER in function input_mt_report_pointer_emulation if touchpad meets hover condition Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Date: Thu, 2 Jun 2016 19:57:27 +0800 [thread overview]
Message-ID: <005701d1bcc5$ef2c92b0$cd85b810$@emc.com.tw> (raw)
In-Reply-To: <1464493153-2509-1-git-send-email-kt.liao@emc.com.tw>
Hi Dmitry,
I up-streamed the patch last Sunday, please let me know if you have other
concern.
Thanks your support KT
-----Original Message-----
From: KT Liao [mailto:ktalex.liao@gmail.com]
Sent: Sunday, May 29, 2016 11:39 AM
To: linux-kernel@vger.kernel.org; linux-input@vger.kernel.org;
dmitry.torokhov@gmail.com
Cc: phoenix@emc.com.tw; kt.liao@emc.com.tw; jeff.chung@emc.com.tw;
charliemooney@google.com
Subject: [PATCH] Input: /input/input-mt.c Emit BTN_TOO_FINGER in function
input_mt_report_pointer_emulation if touchpad meets hover condition
Signed-off-by: KT Liao <kt.liao@emc.com.tw>
---
drivers/input/input-mt.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index
54fce56..b89aaa7 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -218,8 +218,17 @@ void input_mt_report_pointer_emulation(struct input_dev
*dev, bool use_count)
}
input_event(dev, EV_KEY, BTN_TOUCH, count > 0);
- if (use_count)
+
+ if (use_count) {
+ if (count == 0 &&
+ !test_bit(ABS_MT_DISTANCE, dev->absbit) &&
+ test_bit(ABS_DISTANCE, dev->absbit) &&
+ input_abs_get_val(dev, ABS_DISTANCE) != 0) {
+ count = 1;
+ }
input_mt_report_finger_count(dev, count);
+ }
+
if (oldest) {
int x = input_mt_get_value(oldest, ABS_MT_POSITION_X);
--
2.7.4
next prev parent reply other threads:[~2016-06-02 11:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-29 3:39 [PATCH] Input: /input/input-mt.c Emit BTN_TOO_FINGER in function input_mt_report_pointer_emulation if touchpad meets hover condition Signed-off-by: KT Liao <kt.liao@emc.com.tw> KT Liao
2016-06-02 11:57 ` 廖崇榮 [this message]
2016-06-02 11:57 ` 廖崇榮
2016-06-13 7:29 ` 廖崇榮
2016-06-13 7:29 ` 廖崇榮
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005701d1bcc5$ef2c92b0$cd85b810$@emc.com.tw' \
--to=kt.liao@emc.com.tw \
--cc=agnescheng@google.com \
--cc=charliemooney@google.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jeff.chuang@emc.com.tw \
--cc=jeff.chung@emc.com.tw \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phoenix@emc.com.tw \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.