Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1489776 > unrolled thread

[PATCH] Fix a issue that Alps Touchpad cursor does not work

Started byMasaki Ota <012nexus@gmail.com>
First post2016-09-23 07:40 +0200
Last post2016-09-26 17:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Fix a issue that Alps Touchpad cursor does not work Masaki Ota <012nexus@gmail.com> - 2016-09-23 07:40 +0200
    Re: [PATCH] Fix a issue that Alps Touchpad cursor does not work Jiri Kosina <jikos@kernel.org> - 2016-09-26 17:40 +0200

#1489776 — [PATCH] Fix a issue that Alps Touchpad cursor does not work

FromMasaki Ota <012nexus@gmail.com>
Date2016-09-23 07:40 +0200
Subject[PATCH] Fix a issue that Alps Touchpad cursor does not work
Message-ID<skrnk-81v-21@gated-at.bofh.it>
fix Touchpad cursor does not work after touching Touchpad 
by 3 or more fingers.

Signed-off-by: Masaki Ota <masaki.ota@jp.alps.com>
---
 drivers/hid/hid-alps.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
index 048befd..610df92 100644
--- a/drivers/hid/hid-alps.c
+++ b/drivers/hid/hid-alps.c
@@ -190,16 +190,16 @@ static int alps_raw_event(struct hid_device *hdev,
 			if (z != 0) {
 				input_mt_report_slot_state(hdata->input,
 					MT_TOOL_FINGER, 1);
+				input_report_abs(hdata->input,
+					ABS_MT_POSITION_X, x);
+				input_report_abs(hdata->input,
+					ABS_MT_POSITION_Y, y);
+				input_report_abs(hdata->input,
+					ABS_MT_PRESSURE, z);
 			} else {
 				input_mt_report_slot_state(hdata->input,
 					MT_TOOL_FINGER, 0);
-				break;
 			}
-
-			input_report_abs(hdata->input, ABS_MT_POSITION_X, x);
-			input_report_abs(hdata->input, ABS_MT_POSITION_Y, y);
-			input_report_abs(hdata->input, ABS_MT_PRESSURE, z);
-
 		}
 
 		input_mt_sync_frame(hdata->input);
-- 
2.7.4

[toc] | [next] | [standalone]


#1491373

FromJiri Kosina <jikos@kernel.org>
Date2016-09-26 17:40 +0200
Message-ID<slGaC-5yk-29@gated-at.bofh.it>
In reply to#1489776
On Fri, 23 Sep 2016, Masaki Ota wrote:

> fix Touchpad cursor does not work after touching Touchpad 
> by 3 or more fingers.

Please provide more verbose changelog -- namely why the current code is 
wrong and how does your patch fixes it.

Thanks.

> Signed-off-by: Masaki Ota <masaki.ota@jp.alps.com>
> ---
>  drivers/hid/hid-alps.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
> index 048befd..610df92 100644
> --- a/drivers/hid/hid-alps.c
> +++ b/drivers/hid/hid-alps.c
> @@ -190,16 +190,16 @@ static int alps_raw_event(struct hid_device *hdev,
>  			if (z != 0) {
>  				input_mt_report_slot_state(hdata->input,
>  					MT_TOOL_FINGER, 1);
> +				input_report_abs(hdata->input,
> +					ABS_MT_POSITION_X, x);
> +				input_report_abs(hdata->input,
> +					ABS_MT_POSITION_Y, y);
> +				input_report_abs(hdata->input,
> +					ABS_MT_PRESSURE, z);
>  			} else {
>  				input_mt_report_slot_state(hdata->input,
>  					MT_TOOL_FINGER, 0);
> -				break;
>  			}
> -
> -			input_report_abs(hdata->input, ABS_MT_POSITION_X, x);
> -			input_report_abs(hdata->input, ABS_MT_POSITION_Y, y);
> -			input_report_abs(hdata->input, ABS_MT_PRESSURE, z);
> -
>  		}
>  
>  		input_mt_sync_frame(hdata->input);

-- 
Jiri Kosina
SUSE Labs

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web