Input: HID-multitouch: Add egalax ID for Acer Iconia W500
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
@@ -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
@@ -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 +11 -0
@@ -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,13 @@ 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, + .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
Quoted 7 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.
Signed-off-by Marek Vasut <[email protected]>Cc Benjamin Tissoires <[email protected]>
For patches that are simply device ID additions, please remember to add:
This really helps all distributors quickly pick up the additions.
Thanks!
-- Chase
Quoted 21 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.
Signed-off-by Marek Vasut <[email protected]>Cc Benjamin Tissoires <[email protected]>---
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.cdrivers/hid/hid-core.c +0
-0
drivers/hid/hid-core.c static const struct hid_device_id hid_have_special_driver[] = { · line 1380
Quoted 4 lines
drivers/hid/hid-core.c +1
-0@@ -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) },
We have a merge issue here since the 0xa001 got committed as #5.
Quoted 28 lines
drivers/hid/hid-core.c +0
-0{ 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@@ -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 0x0061drivers/hid/hid-multitouch.c +1
-0@@ -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
drivers/hid/hid-multitouch.c struct mt_class mt_classes[] = { · line 183
Quoted 10 lines
drivers/hid/hid-multitouch.c +7
-0@@ -173,6 +174,13 @@ 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, + .sn_move = 4096, + .sn_pressure = 32, + },
I went and looked up the original thread to see background on this change.
The original thread in September requested to remove .maxcontacts from MT_CLS_EGALAX. I'd either do that if it works or I would rename this to something like MT_CLS_EGALAX_HAS_MAXCONTACTS because the 5FINGER part is misleading.
Chris
Quoted 14 lines
drivers/hid/hid-multitouch.c +3
-1{ } };@@ -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, --
Quoted 3 lines
1.7.5.4
--
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
Quoted 17 lines · Marek Vasut
Quoted 16 lines
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.
Signed-off-by Marek Vasut <[email protected]>Cc Benjamin Tissoires <[email protected]>--- 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
Quoted 15 lines
Quoted 11 lines
drivers/hid/hid-core.c +0
-0@@ -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) }, + {Quoted 2 lines
HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH5) },We have a merge issue here since the
0xa001got committed as #5.
Was it applied already?
Quoted 43 lines
Quoted 30 lines
{ 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)}, diff --gita/drivers/hid/hid-ids.hb/drivers/hid/hid-ids.h
index 7484e1b..c2e9369 100644drivers/hid/hid-ids.h +1
-0@@ -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 0x0061drivers/hid/hid-multitouch.c +1
-0@@ -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 10drivers/hid/hid-multitouch.c struct mt_class mt_classes[] = { · line 183
Quoted 10 lines
drivers/hid/hid-multitouch.c +7
-0@@ -173,6 +174,13 @@ 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, + .sn_move = 4096, + .sn_pressure = 32, + },I went and looked up the original thread to see background on this change.
Quoted 4 lines
The original thread in September requested to remove .maxcontacts from
MT_CLS_EGALAX. I'd either do that if it works or I would rename this to something likeMT_CLS_EGALAX_HAS_MAXCONTACTSbecause the 5FINGER part is misleading.
Sounds reasonable.
M
Quoted 17 lines
Chris
Quoted 14 lines
drivers/hid/hid-multitouch.c +3
-1{ } };@@ -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, --1.7.5.4
Quoted 14 lines · Marek Vasut
Quoted 13 lines · Marek Vasut
Quoted 10 lines
(quoted diff) +0
-0@@ -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) },We have a merge issue here since the
0xa001got committed as #5.
Quoted 2 lines
Was it applied already?
Yes, its in Jiri's upstream-fixes branch.
Chris
--
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
Quoted 2 lines · Marek Vasut
Quoted 1 line
Quoted 1 line
On Mon, Nov 14, 2011 at 10:41 AM, Marek Vasut <[email protected]>
Quoted 12 lines · wrote:
Quoted 12 lines
Quoted 11 lines
Quoted 9 lines
(quoted diff) +0
-0@@ -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) },We have a merge issue here since the
0xa001got committed as #5.
Quoted 5 lines
Quoted 1 line
Was it applied already?
Yes, its in Jiri's upstream-fixes branch.
Chris
Good
M