From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760984Ab3BMVxB (ORCPT ); Wed, 13 Feb 2013 16:53:01 -0500 Received: from mail-da0-f49.google.com ([209.85.210.49]:44811 "EHLO mail-da0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760868Ab3BMVw7 (ORCPT ); Wed, 13 Feb 2013 16:52:59 -0500 Date: Wed, 13 Feb 2013 13:52:50 -0800 From: Dmitry Torokhov To: Daniel Kurtz Cc: Henrik Rydberg , Seth Forshee , Benjamin Herrenschmidt , Chung-Yih Wang , Chase Douglas , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: synaptics - disable fuzz when using mt slots Message-ID: <20130213215250.GE23390@core.coreip.homeip.net> References: <1359707312-12986-1-git-send-email-djkurtz@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1359707312-12986-1-git-send-email-djkurtz@chromium.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 01, 2013 at 04:28:32PM +0800, Daniel Kurtz wrote: > The input fuzz algorithm does a pretty good job filtering out small > jitter on input samples. > > However, there is a subtle problem when fuzz is used with mt drivers that > also use input_mt_report_pointer_emulation() to report legacy single > touch coordinates. The reported single touch coordinates are taken from > the active MT slot with smallest tracking id. However, since the MT data > is sent first, it has already had FUZZ applied. Thus, the ST coordinates > actually get FUZZ applied a second time, with the just-fuzzed MT value as > the 'old value'. > > It appears that it is non-trivial to fix this in the mt layer/input core, > so, for now, just disable fuzz for the synaptics IMAGE_SENSOR path that > uses input_mt_report_pointer_emulation(). > > Signed-off-by: Daniel Kurtz > --- > drivers/input/mouse/synaptics.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c > index 12d12ca..b6c6838 100644 > --- a/drivers/input/mouse/synaptics.c > +++ b/drivers/input/mouse/synaptics.c > @@ -1211,7 +1211,8 @@ static void set_abs_position_params(struct input_dev *dev, > int x_max = priv->x_max ?: XMAX_NOMINAL; > int y_min = priv->y_min ?: YMIN_NOMINAL; > int y_max = priv->y_max ?: YMAX_NOMINAL; > - int fuzz = SYN_CAP_REDUCED_FILTERING(priv->ext_cap_0c) ? > + int fuzz = (SYN_CAP_REDUCED_FILTERING(priv->ext_cap_0c) && > + !SYN_CAP_IMAGE_SENSOR(priv->ext_cap_0c)) ? > SYN_REDUCED_FILTER_FUZZ : 0; Hmm, instead of disabling fuzz completely maybe we should disable it only on the derived axes (ABS_X/ABS_Y) for multitouch devices? Thanks. -- Dmitry