LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH V2 0/4] hid-multitouch work 
@ 2011-01-31 10:28 Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 1/4] hid-multitouch: change default mt_class Benjamin Tissoires
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Benjamin Tissoires @ 2011-01-31 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Henrik Rydberg, Benjamin Tissoires, Jiri Kosina,
	Stephane Chatty, linux-input, linux-kernel

Hi guys,

here is the v2 of the work on hid-multitouch sent last friday.
I just split the former first patch and remove the MT_CLS_DUAL_DEFAUT stuff.

Cheers,
Benjamin


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/4] hid-multitouch: change default mt_class
  2011-01-31 10:28 [PATCH V2 0/4] hid-multitouch work Benjamin Tissoires
@ 2011-01-31 10:28 ` Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 2/4] hid-multitouch: Rename MT_CLS_DUAL1 and MT_CLS_DUAL2 Benjamin Tissoires
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Benjamin Tissoires @ 2011-01-31 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Henrik Rydberg, Benjamin Tissoires, Jiri Kosina,
	Stephane Chatty, linux-input, linux-kernel

The safest quirk for a device (the one that works out of the box for
most of them) is MT_QUIRK_NOT_SEEN_MEANS_UP. Indeed, it does not
make any assumption on the device. When adding a new device, we can
easily test it against MT_CLS_DEFAULT, and then optimize it with other
quirks: that's why no device use MT_CLS_DEFAULT right now.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
---
 drivers/hid/hid-multitouch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 07d3183..86863a3 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -104,7 +104,7 @@ static int find_slot_from_contactid(struct mt_device *td)
 
 struct mt_class mt_classes[] = {
 	{ .name = MT_CLS_DEFAULT,
-		.quirks = MT_QUIRK_VALID_IS_INRANGE,
+		.quirks = MT_QUIRK_NOT_SEEN_MEANS_UP,
 		.maxcontacts = 10 },
 	{ .name = MT_CLS_DUAL1,
 		.quirks = MT_QUIRK_VALID_IS_INRANGE |
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 2/4] hid-multitouch: Rename MT_CLS_DUAL1 and MT_CLS_DUAL2
  2011-01-31 10:28 [PATCH V2 0/4] hid-multitouch work Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 1/4] hid-multitouch: change default mt_class Benjamin Tissoires
@ 2011-01-31 10:28 ` Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 3/4] hid-multitouch: add Benjamin Tissoires as module_author Benjamin Tissoires
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Benjamin Tissoires @ 2011-01-31 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Henrik Rydberg, Benjamin Tissoires, Jiri Kosina,
	Stephane Chatty, linux-input, linux-kernel

This patch renames MT_CLS_DUAL1 to MT_CLS_DUAL_INRANGE_CONTACTID
and MT_CLS_DUAL2 to MT_CLS_DUAL_INRANGE_CONTACTNUMBER for better
readability.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
---
 drivers/hid/hid-multitouch.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 86863a3..b976d10 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -65,10 +65,10 @@ struct mt_class {
 };
 
 /* classes of device behavior */
-#define MT_CLS_DEFAULT	1
-#define MT_CLS_DUAL1	2
-#define MT_CLS_DUAL2	3
-#define MT_CLS_CYPRESS	4
+#define MT_CLS_DEFAULT				1
+#define MT_CLS_DUAL_INRANGE_CONTACTID		2
+#define MT_CLS_DUAL_INRANGE_CONTACTNUMBER	3
+#define MT_CLS_CYPRESS				4
 
 /*
  * these device-dependent functions determine what slot corresponds
@@ -106,11 +106,11 @@ struct mt_class mt_classes[] = {
 	{ .name = MT_CLS_DEFAULT,
 		.quirks = MT_QUIRK_NOT_SEEN_MEANS_UP,
 		.maxcontacts = 10 },
-	{ .name = MT_CLS_DUAL1,
+	{ .name = MT_CLS_DUAL_INRANGE_CONTACTID,
 		.quirks = MT_QUIRK_VALID_IS_INRANGE |
 			MT_QUIRK_SLOT_IS_CONTACTID,
 		.maxcontacts = 2 },
-	{ .name = MT_CLS_DUAL2,
+	{ .name = MT_CLS_DUAL_INRANGE_CONTACTNUMBER,
 		.quirks = MT_QUIRK_VALID_IS_INRANGE |
 			MT_QUIRK_SLOT_IS_CONTACTNUMBER,
 		.maxcontacts = 2 },
@@ -466,15 +466,15 @@ static const struct hid_device_id mt_devices[] = {
 			USB_DEVICE_ID_CYPRESS_TRUETOUCH) },
 
 	/* GeneralTouch panel */
-	{ .driver_data = MT_CLS_DUAL2,
+	{ .driver_data = MT_CLS_DUAL_INRANGE_CONTACTNUMBER,
 		HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
 			USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) },
 
 	/* PixCir-based panels */
-	{ .driver_data = MT_CLS_DUAL1,
+	{ .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
 		HID_USB_DEVICE(USB_VENDOR_ID_HANVON,
 			USB_DEVICE_ID_HANVON_MULTITOUCH) },
-	{ .driver_data = MT_CLS_DUAL1,
+	{ .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
 		HID_USB_DEVICE(USB_VENDOR_ID_CANDO,
 			USB_DEVICE_ID_CANDO_PIXCIR_MULTI_TOUCH) },
 
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 3/4] hid-multitouch: add Benjamin Tissoires as module_author
  2011-01-31 10:28 [PATCH V2 0/4] hid-multitouch work Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 1/4] hid-multitouch: change default mt_class Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 2/4] hid-multitouch: Rename MT_CLS_DUAL1 and MT_CLS_DUAL2 Benjamin Tissoires
@ 2011-01-31 10:28 ` Benjamin Tissoires
  2011-01-31 10:28 ` [PATCH v2 4/4] hid-multitouch: introduce IrTouch Infrared USB device Benjamin Tissoires
  2011-01-31 10:55 ` [PATCH V2 0/4] hid-multitouch work Henrik Rydberg
  4 siblings, 0 replies; 7+ messages in thread
From: Benjamin Tissoires @ 2011-01-31 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Henrik Rydberg, Benjamin Tissoires, Jiri Kosina,
	Stephane Chatty, linux-input, linux-kernel

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
---
 drivers/hid/hid-multitouch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index b976d10..4f63409 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -24,6 +24,7 @@
 
 
 MODULE_AUTHOR("Stephane Chatty <chatty@enac.fr>");
+MODULE_AUTHOR("Benjamin Tissoires <benjamin.tissoires@gmail.com>");
 MODULE_DESCRIPTION("HID multitouch panels");
 MODULE_LICENSE("GPL");
 
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 4/4] hid-multitouch: introduce IrTouch Infrared USB device
  2011-01-31 10:28 [PATCH V2 0/4] hid-multitouch work Benjamin Tissoires
                   ` (2 preceding siblings ...)
  2011-01-31 10:28 ` [PATCH v2 3/4] hid-multitouch: add Benjamin Tissoires as module_author Benjamin Tissoires
@ 2011-01-31 10:28 ` Benjamin Tissoires
  2011-01-31 10:55 ` [PATCH V2 0/4] hid-multitouch work Henrik Rydberg
  4 siblings, 0 replies; 7+ messages in thread
From: Benjamin Tissoires @ 2011-01-31 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Henrik Rydberg, Benjamin Tissoires, Jiri Kosina,
	Stephane Chatty, linux-input, linux-kernel

This patch adds support for IrTouch 42 inches.

Tested-by: Victor Zhuk <v.zhuk@acs-ltd.ru>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
---

No changes here except the commit message.

 drivers/hid/Kconfig          |    1 +
 drivers/hid/hid-ids.h        |    3 +++
 drivers/hid/hid-multitouch.c |    5 +++++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 24cca2f..a0b117d 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -304,6 +304,7 @@ config HID_MULTITOUCH
 	  Say Y here if you have one of the following devices:
 	  - Cypress TrueTouch panels
 	  - Hanvon dual touch panels
+	  - IrTouch Infrared USB panels
 	  - Pixcir dual touch panels
 	  - 'Sensing Win7-TwoFinger' panel by GeneralTouch
 
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 92a0d61..b1dd7ad 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -333,6 +333,9 @@
 #define USB_VENDOR_ID_IMATION		0x0718
 #define USB_DEVICE_ID_DISC_STAKKA	0xd000
 
+#define USB_VENDOR_ID_IRTOUCHSYSTEMS	0x6615
+#define USB_DEVICE_ID_IRTOUCH_INFRARED_USB	0x0070
+
 #define USB_VENDOR_ID_JESS		0x0c45
 #define USB_DEVICE_ID_JESS_YUREX	0x1010
 
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 4f63409..69f8744 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -471,6 +471,11 @@ static const struct hid_device_id mt_devices[] = {
 		HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
 			USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) },
 
+	/* IRTOUCH panels */
+	{ .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
+		HID_USB_DEVICE(USB_VENDOR_ID_IRTOUCHSYSTEMS,
+			USB_DEVICE_ID_IRTOUCH_INFRARED_USB) },
+
 	/* PixCir-based panels */
 	{ .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
 		HID_USB_DEVICE(USB_VENDOR_ID_HANVON,
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2 0/4] hid-multitouch work
  2011-01-31 10:28 [PATCH V2 0/4] hid-multitouch work Benjamin Tissoires
                   ` (3 preceding siblings ...)
  2011-01-31 10:28 ` [PATCH v2 4/4] hid-multitouch: introduce IrTouch Infrared USB device Benjamin Tissoires
@ 2011-01-31 10:55 ` Henrik Rydberg
  2011-01-31 14:16   ` Jiri Kosina
  4 siblings, 1 reply; 7+ messages in thread
From: Henrik Rydberg @ 2011-01-31 10:55 UTC (permalink / raw)
  To: Benjamin Tissoires
  Cc: Dmitry Torokhov, Jiri Kosina, Stephane Chatty, linux-input, linux-kernel

On Mon, Jan 31, 2011 at 11:28:18AM +0100, Benjamin Tissoires wrote:
> Hi guys,
> 
> here is the v2 of the work on hid-multitouch sent last friday.
> I just split the former first patch and remove the MT_CLS_DUAL_DEFAUT stuff.

Excellent. You may want to add at least one sentence in the commit
message of patch 3, but other than that,

Reviewed-by: Henrik Rydberg <rydberg@euromail.se>

on all four of them. Thank you Benjamin.

Henrik

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2 0/4] hid-multitouch work
  2011-01-31 10:55 ` [PATCH V2 0/4] hid-multitouch work Henrik Rydberg
@ 2011-01-31 14:16   ` Jiri Kosina
  0 siblings, 0 replies; 7+ messages in thread
From: Jiri Kosina @ 2011-01-31 14:16 UTC (permalink / raw)
  To: Henrik Rydberg
  Cc: Benjamin Tissoires, Dmitry Torokhov, Stephane Chatty,
	linux-input, linux-kernel

On Mon, 31 Jan 2011, Henrik Rydberg wrote:

> On Mon, Jan 31, 2011 at 11:28:18AM +0100, Benjamin Tissoires wrote:
> > Hi guys,
> > 
> > here is the v2 of the work on hid-multitouch sent last friday.
> > I just split the former first patch and remove the MT_CLS_DUAL_DEFAUT stuff.
> 
> Excellent. You may want to add at least one sentence in the commit
> message of patch 3, but other than that,
> 
> Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
> 
> on all four of them. Thank you Benjamin.

I have applied the series. Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-31 14:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-31 10:28 [PATCH V2 0/4] hid-multitouch work Benjamin Tissoires
2011-01-31 10:28 ` [PATCH v2 1/4] hid-multitouch: change default mt_class Benjamin Tissoires
2011-01-31 10:28 ` [PATCH v2 2/4] hid-multitouch: Rename MT_CLS_DUAL1 and MT_CLS_DUAL2 Benjamin Tissoires
2011-01-31 10:28 ` [PATCH v2 3/4] hid-multitouch: add Benjamin Tissoires as module_author Benjamin Tissoires
2011-01-31 10:28 ` [PATCH v2 4/4] hid-multitouch: introduce IrTouch Infrared USB device Benjamin Tissoires
2011-01-31 10:55 ` [PATCH V2 0/4] hid-multitouch work Henrik Rydberg
2011-01-31 14:16   ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).