From: Takashi Iwai Subject: Re: [RFC/RFT] Synaptics - Date: Wed, 21 Apr 2010 15:45:40 +0200 Message-ID: References: <20100421061116.GF4364@core.coreip.homeip.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from cantor.suse.de ([195.135.220.2]:33174 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754610Ab0DUNpl (ORCPT ); Wed, 21 Apr 2010 09:45:41 -0400 In-Reply-To: <20100421061116.GF4364@core.coreip.homeip.net> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: Christopher Heiny , linux-input@vger.kernel.org At Tue, 20 Apr 2010 23:11:17 -0700, Dmitry Torokhov wrote: > > Newer Synaptics firmware allows to quesry maximim dimensions reported by > device, let's use this data. > > Signed-off-by: Dmitry Torokhov > --- > > Takashi, > > I would appreciate if you could give this patch a try. The bit definition seems wrong: > @@ -51,6 +52,7 @@ > #define SYN_CAP_MULTI_BUTTON_NO(ec) (((ec) & 0x00f000) >> 12) > #define SYN_CAP_PRODUCT_ID(ec) (((ec) & 0xff0000) >> 16) > #define SYN_CAP_CLICKPAD(ex0c) ((ex0c) & 0x100100) > +#define SYN_CAP_MAX_DIMENSIONS(ex0c) ((ex0c) & 0x02) This should be #define SYN_CAP_MAX_DIMENSIONS(ex0c) ((ex0c) & 0x020000) After changing this, it seems working fine. The area is detected as 5584 x 4618. thanks, Takashi