]> git.ipfire.org Git - people/ms/linux.git/commit
Input: alps - v7: sometimes a single touch is reported in mt[1]
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Dec 2014 17:53:34 +0000 (09:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:55 +0000 (06:59 -0800)
commit7b35ab6f00edbf9a5a7f942100df5290b294cc66
treeb920aa4e121543516a091f189782b57eb205842f
parent98eb06b6ca5f9e41356d51847912da48d9da3508
Input: alps - v7: sometimes a single touch is reported in mt[1]

commit 7091c443dda8c6c6d8e70e33452252f9ad3e7814 upstream.

The v7 proto differentiates between a primary touch (with high precision)
and a secondary touch (with lower precision). Normally when 2 fingers are
down and one is lifted the still present touch becomes the primary touch,
but some traces have shown that this does not happen always.

This commit deals with this by making alps_get_mt_count() not stop at the
first empty mt slot, and if a touch is present in mt[1] and not mt[0]
moving the data to mt[0] (for input_mt_assign_slots).

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=86338
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/alps.c