linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: sentelic - filter on-pad clicks in absolute mode
@ 2012-04-01 18:30 Oskari Saarenmaa
  2012-04-02 14:22 ` Chase Douglas
  0 siblings, 1 reply; 10+ messages in thread
From: Oskari Saarenmaa @ 2012-04-01 18:30 UTC (permalink / raw)
  To: Tai-hwa Liang, Dmitry Torokhov; +Cc: linux-input

On-pad clicks in absolute positioning single-finger mode are reported
without the PHY_BTN bit set, the on-pad clicks are handled by userspace
so the kernel shouldn't report them as real clicks.

Signed-off-by: Oskari Saarenmaa <os@ohmu.fi>
---
 Applies to v3.4-rc1

 drivers/input/mouse/sentelic.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/input/mouse/sentelic.c b/drivers/input/mouse/sentelic.c
index a977bfa..d4df8cd 100644
--- a/drivers/input/mouse/sentelic.c
+++ b/drivers/input/mouse/sentelic.c
@@ -741,6 +741,14 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)
 			}
 		} else {
 			/* SFAC packet */
+			if ((packet[0] & FSP_PB0_LBTN|FSP_PB0_PHY_BTN) ==
+				FSP_PB0_LBTN) {
+				/* On-pad click in SFAC mode should be handled
+				 * by userspace.  On-pad clicks in MFMC mode
+				 * are real clickpad clicks, and not ignored.
+				 */
+				packet[0] &= ~FSP_PB0_LBTN;
+			}
 
 			/* no multi-finger information */
 			ad->last_mt_fgr = 0;
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-03 16:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-01 18:30 [PATCH] Input: sentelic - filter on-pad clicks in absolute mode Oskari Saarenmaa
2012-04-02 14:22 ` Chase Douglas
2012-04-02 14:57   ` Oskari Saarenmaa
2012-04-02 15:05     ` Chase Douglas
2012-04-02 15:37       ` Oskari Saarenmaa
2012-04-02 16:04         ` Dmitry Torokhov
2012-04-02 16:06           ` Tai-hwa Liang
2012-04-02 16:35         ` Chase Douglas
2012-04-03  6:59           ` [PATCHv2] Input: sentelic - filter taps " Oskari Saarenmaa
2012-04-03 16:46             ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).