Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756391AbYKUOo7 (ORCPT ); Fri, 21 Nov 2008 09:44:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756038AbYKUOos (ORCPT ); Fri, 21 Nov 2008 09:44:48 -0500 Received: from csmtp1.one.com ([195.47.247.21]:43609 "EHLO csmtp1.b-one.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753292AbYKUOor (ORCPT ); Fri, 21 Nov 2008 09:44:47 -0500 Message-ID: <4926C95C.7000609@bitmath.org> Date: Fri, 21 Nov 2008 15:44:44 +0100 From: Henrik Rydberg User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Dmitry Torokhov CC: Henrik Rydberg , Andrew Morton , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] input: Add a detailed multi-touch finger data report protocol References: <49142351.9080805@euromail.se> <20081119113508.ZZRA012@mailhub.coreip.homeip.net> In-Reply-To: <20081119113508.ZZRA012@mailhub.coreip.homeip.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1251 Lines: 32 Dmitry, My patch is all wrong. It would certainly benefit from using the EV_SYN/SYN_MT_REPORT, but the defuzz mechanism of the EV_ABS class simply will not work when sending data for several different fingers using the same event. I can see two clear alternatives: either add a new event class, EV_MT, which sends all data without trying to limit the bandwidth, or forget about the whole serial-finger-data idea and expand the current EV_ABS class with an array of MT finger data [1]. I would very much appreciate your input on this. Maybe there is a third option. Cheers, Henrik [1] An example of a straight-forward addition of EV_ABS/ABS_MT events: #define ABS_MT_FINGER_CNT 10 #define ABS_MT_PROPERTY_CNT 12 #define ABS_MT_FINGER_START 0x30 #define ABS_MT_TOUCH(x) (ABS_MT_FINGER_START + 0 * ABS_MT_FINGER_CNT + x) #define ABS_MT_WIDTH(x) (ABS_MT_FINGER_START + 1 * ABS_MT_FINGER_CNT + x) ... #define ABS_MT_FINGER_END 0xa8 /* = ABS_MT_FINGER_START + ABS_MT_PROPERTY_CNT * ABS_MT_FINGER_CNT */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/