Skip to contentSkip to conversation

Input: HID-multitouch: Add egalax ID for Acer Iconia W500

PATCH In review Marek Vasut 5 participants 8 messages Sep 14, 2011 – Sep 20, 2011 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: HID-multitouch: Add egalax ID for Acer Iconia W500

This patch adds USB ID for the touchpanel in Acer Iconia W500. The panel supports up to five fingers, therefore the need for a new addition of panel types.

---
 drivers/hid/hid-core.c       |    1 +
 drivers/hid/hid-ids.h        |    1 +
 drivers/hid/hid-multitouch.c |   12 ++++++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)

NOTE: That checkpatch warning is there because I followed the pattern in hid-core.c

drivers/hid/hid-core.c +1 -0
index 242353d..6600ac7 100644
@@ -1377,6 +1377,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH3) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2515) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_EMS, USB_DEVICE_ID_EMS_TRIO_LINKER_PLUS_II) },
drivers/hid/hid-ids.h +1 -0
index 7484e1b..c2e9369 100644
@@ -225,6 +225,7 @@
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2	0x72a1
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH3	0x480e
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4	0x726b
+#define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5	0x7302
 
 #define USB_VENDOR_ID_ELECOM		0x056e
 #define USB_DEVICE_ID_ELECOM_BM084	0x0061
drivers/hid/hid-multitouch.c +12 -0
index 58d0e7a..35c53db 100644
@@ -96,6 +96,7 @@ struct mt_class {
 #define MT_CLS_3M				0x0101
 #define MT_CLS_CYPRESS				0x0102
 #define MT_CLS_EGALAX				0x0103
+#define MT_CLS_EGALAX_5FINGER			0x0104
 
 #define MT_DEFAULT_MAXCONTACT	10
 
@@ -173,6 +174,14 @@ struct mt_class mt_classes[] = {
 		.sn_move = 4096,
 		.sn_pressure = 32,
 	},
+	{ .name = MT_CLS_EGALAX_5FINGER,
+		.quirks =  MT_QUIRK_SLOT_IS_CONTACTID |
+			MT_QUIRK_VALID_IS_INRANGE |
+			MT_QUIRK_EGALAX_XYZ_FIXUP,
+		.maxcontacts = 5,
+		.sn_move = 4096,
+		.sn_pressure = 32,
+	},
 
 	{ }
 };
@@ -646,6 +655,9 @@ static const struct hid_device_id mt_devices[] = {
 	{  .driver_data = MT_CLS_EGALAX,
 		HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
 			USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
+	{  .driver_data = MT_CLS_EGALAX_5FINGER,
+		HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
+			USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },
 
 	/* Elo TouchSystems IntelliTouch Plus panel */
 	{ .driver_data = MT_CLS_DUAL_NSMU_CONTACTID,
Signature · 1 line
1.7.5.4
#1 lore raw

Hi Marek,

Quoted 5 lines · Marek Vasut

This patch adds USB ID for the touchpanel in Acer Iconia W500. The panel supports up to five fingers, therefore the need for a new addition of panel types.

This should actually go to Jiri (CCed).

Thanks.

Quoted 73 lines
---
 drivers/hid/hid-core.c       |    1 +
 drivers/hid/hid-ids.h        |    1 +
 drivers/hid/hid-multitouch.c |   12 ++++++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)

NOTE: That checkpatch warning is there because I followed the pattern in hid-core.c

drivers/hid/hid-core.c +1 -0
index 242353d..6600ac7 100644
@@ -1377,6 +1377,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH3) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2515) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_EMS, USB_DEVICE_ID_EMS_TRIO_LINKER_PLUS_II) },
drivers/hid/hid-ids.h +1 -0
index 7484e1b..c2e9369 100644
@@ -225,6 +225,7 @@
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2	0x72a1
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH3	0x480e
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4	0x726b
+#define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5	0x7302
 
 #define USB_VENDOR_ID_ELECOM		0x056e
 #define USB_DEVICE_ID_ELECOM_BM084	0x0061
drivers/hid/hid-multitouch.c +12 -0
index 58d0e7a..35c53db 100644
@@ -96,6 +96,7 @@ struct mt_class {
 #define MT_CLS_3M				0x0101
 #define MT_CLS_CYPRESS				0x0102
 #define MT_CLS_EGALAX				0x0103
+#define MT_CLS_EGALAX_5FINGER			0x0104
 
 #define MT_DEFAULT_MAXCONTACT	10
 
@@ -173,6 +174,14 @@ struct mt_class mt_classes[] = {
 		.sn_move = 4096,
 		.sn_pressure = 32,
 	},
+	{ .name = MT_CLS_EGALAX_5FINGER,
+		.quirks =  MT_QUIRK_SLOT_IS_CONTACTID |
+			MT_QUIRK_VALID_IS_INRANGE |
+			MT_QUIRK_EGALAX_XYZ_FIXUP,
+		.maxcontacts = 5,
+		.sn_move = 4096,
+		.sn_pressure = 32,
+	},
 
 	{ }
 };
@@ -646,6 +655,9 @@ static const struct hid_device_id mt_devices[] = {
 	{  .driver_data = MT_CLS_EGALAX,
 		HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
 			USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
+	{  .driver_data = MT_CLS_EGALAX_5FINGER,
+		HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
+			USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },
 
 	/* Elo TouchSystems IntelliTouch Plus panel */
 	{ .driver_data = MT_CLS_DUAL_NSMU_CONTACTID,
Signature · 1 line
1.7.5.4
Signature · 1 line
Dmitry
Reviewed-by
#2 lore raw

Hello Marek,

it's commonly use to also add the authors (me and Stéphane) and the multitouch maintainer (Henrik). Working in hid-multitouch requires adding a lot of people in cc... ;-)

Globally, the patch is clean. I don't really like it because a cleaner way would be to just remove the field .maxcontacts in MT_CLS_EGALAX. This would require tests from all the different eGalax owners, and personally, I don't have the time to lead them.

So:

Cheers,
Benjamin

Quoted 81 lines · Dmitry Torokhov

Hi Marek,

Quoted 5 lines · Marek Vasut

This patch adds USB ID for the touchpanel in Acer Iconia W500. The panel supports up to five fingers, therefore the need for a new addition of panel types.

This should actually go to Jiri (CCed).

Thanks.

Quoted 68 lines

---
 drivers/hid/hid-core.c       |    1 +
 drivers/hid/hid-ids.h        |    1 +
 drivers/hid/hid-multitouch.c |   12 ++++++++++++

 3 files changed, 14 insertions(+), 0 deletions(-)

NOTE: That checkpatch warning is there because I followed the pattern in hid-core.c

drivers/hid/hid-core.c +1 -0
index 242353d..6600ac7 100644
@@ -1377,6 +1377,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
       { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2) },
       { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH3) },
       { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
+     { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },
       { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084) },
       { HID_USB_DEVICE(USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2515) },
       { HID_USB_DEVICE(USB_VENDOR_ID_EMS, USB_DEVICE_ID_EMS_TRIO_LINKER_PLUS_II) },
drivers/hid/hid-ids.h +1 -0
index 7484e1b..c2e9369 100644
@@ -225,6 +225,7 @@
  #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2        0x72a1
  #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH3        0x480e
  #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4        0x726b
+#define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5        0x7302
 
  #define USB_VENDOR_ID_ELECOM         0x056e
  #define USB_DEVICE_ID_ELECOM_BM084   0x0061
drivers/hid/hid-multitouch.c +12 -0
index 58d0e7a..35c53db 100644
@@ -96,6 +96,7 @@ struct mt_class {
  #define MT_CLS_3M                            0x0101
  #define MT_CLS_CYPRESS                               0x0102
  #define MT_CLS_EGALAX                                0x0103
+#define MT_CLS_EGALAX_5FINGER                        0x0104
 
  #define MT_DEFAULT_MAXCONTACT        10
 
@@ -173,6 +174,14 @@ struct mt_class mt_classes[] = {
               .sn_move = 4096,
               .sn_pressure = 32,
       },
+     { .name = MT_CLS_EGALAX_5FINGER,
+             .quirks =  MT_QUIRK_SLOT_IS_CONTACTID |
+                     MT_QUIRK_VALID_IS_INRANGE |
+                     MT_QUIRK_EGALAX_XYZ_FIXUP,
+             .maxcontacts = 5,
+             .sn_move = 4096,
+             .sn_pressure = 32,
+     },
 
       { }
  };
@@ -646,6 +655,9 @@ static const struct hid_device_id mt_devices[] = {
       {  .driver_data = MT_CLS_EGALAX,
               HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
                       USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
+     {  .driver_data = MT_CLS_EGALAX_5FINGER,
+             HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                     USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },
 
Quoted 13 lines
Quoted 5 lines
drivers/hid/hid-multitouch.c +0 -1
       /* Elo TouchSystems IntelliTouch Plus panel */
       { .driver_data = MT_CLS_DUAL_NSMU_CONTACTID,
--

1.7.5.4

--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 4 lines

Globally, the patch is clean. I don't really like it because a cleaner way would be to just remove the field .maxcontacts in MT_CLS_EGALAX. This would require tests from all the different eGalax owners, and personally, I don't have the time to lead them.

It is not too late to start now, though; testing this new device without maxcontacts would help when/if the ten-finger version comes along. Marek, would you care to try that?

Thanks,
Henrik

#4 lore raw
Quoted 8 lines · Henrik Rydberg
Quoted 4 lines

Globally, the patch is clean. I don't really like it because a cleaner way would be to just remove the field .maxcontacts in MT_CLS_EGALAX. This would require tests from all the different eGalax owners, and personally, I don't have the time to lead them.

It is not too late to start now, though; testing this new device without maxcontacts would help when/if the ten-finger version comes along. Marek, would you care to try that?

Well I own only this one particular device, not the other ones.

btw sorry about the CC.

Cheers

Quoted 3 lines

Thanks,
Henrik

#5 lore raw
Quoted 11 lines · Marek Vasut
Quoted 8 lines · Henrik Rydberg
Quoted 4 lines

Globally, the patch is clean. I don't really like it because a cleaner way would be to just remove the field .maxcontacts in MT_CLS_EGALAX. This would require tests from all the different eGalax owners, and personally, I don't have the time to lead them.

It is not too late to start now, though; testing this new device without maxcontacts would help when/if the ten-finger version comes along. Marek, would you care to try that?

Well I own only this one particular device, not the other ones.

I meant removing .maxcontacts from _your_ patch, and testing on your particular device.

Thanks,
Henrik

#6 lore raw
Quoted 7 lines · Henrik Rydberg
Quoted 6 lines · Marek Vasut
Quoted 5 lines · Henrik Rydberg
Quoted 4 lines

Globally, the patch is clean. I don't really like it because a cleaner way would be to just remove the field .maxcontacts in MT_CLS_EGALAX. This would require tests from all the different eGalax owners, and personally, I don't have the time to lead them.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

It is not too late to start now, though; testing this new device without maxcontacts would help when/if the ten-finger version comes along. Marek, would you care to try that?

Well I own only this one particular device, not the other ones.

I meant removing .maxcontacts from _your_ patch, and testing on your particular device.

Ah all right, yes, I can try it. But only _after_ my exam on wednesday (or before in case I start being tired of learning).

You're welcome!

Cheers

Quoted 3 lines

Thanks,
Henrik

#7 lore raw
Quoted 11 lines · Marek Vasut
Quoted 11 lines
Quoted 10 lines
Quoted 8 lines
Quoted 4 lines

Globally, the patch is clean. I don't really like it because a cleaner way would be to just remove the field .maxcontacts in MT_CLS_EGALAX. This would require tests from all the different eGalax owners, and personally, I don't have the time to lead them.

It is not too late to start now, though; testing this new device without maxcontacts would help when/if the ten-finger version comes along. Marek, would you care to try that?

Well I own only this one particular device, not the other ones.

Quoted 7 lines
Quoted 2 lines

I meant removing .maxcontacts from _your_ patch, and testing on your particular device.

Ah all right, yes, I can try it. But only _after_ my exam on wednesday (or before in case I start being tired of learning).

You're welcome!

So I will wait before merging this patch to see the results of Marek's testing.

Signature · 2 lines
Jiri Kosina
SUSE Labs