Skip to content

Commit de07af0

Browse files
tammy0524Jiri Kosina
authored andcommitted
HID: add patch for sis multitouch format
The patch is to add proper quirks for sis multitouch format Signed-off-by: tammy tseng <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 251efae commit de07af0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/hid/hid-multitouch.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ static void mt_post_parse(struct mt_device *td, struct mt_application *app);
212212
#define MT_CLS_GOOGLE 0x0111
213213
#define MT_CLS_RAZER_BLADE_STEALTH 0x0112
214214
#define MT_CLS_SMART_TECH 0x0113
215+
#define MT_CLS_SIS 0x0457
215216

216217
#define MT_DEFAULT_MAXCONTACT 10
217218
#define MT_MAX_MAXCONTACT 250
@@ -396,6 +397,11 @@ static const struct mt_class mt_classes[] = {
396397
MT_QUIRK_CONTACT_CNT_ACCURATE |
397398
MT_QUIRK_SEPARATE_APP_REPORT,
398399
},
400+
{ .name = MT_CLS_SIS,
401+
.quirks = MT_QUIRK_NOT_SEEN_MEANS_UP |
402+
MT_QUIRK_ALWAYS_VALID |
403+
MT_QUIRK_CONTACT_CNT_ACCURATE,
404+
},
399405
{ }
400406
};
401407

@@ -1812,6 +1818,9 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)
18121818
if (mtclass->quirks & MT_QUIRK_FIX_CONST_CONTACT_ID)
18131819
mt_fix_const_fields(hdev, HID_DG_CONTACTID);
18141820

1821+
if (hdev->vendor == USB_VENDOR_ID_SIS_TOUCH)
1822+
hdev->quirks |= HID_QUIRK_NOGET;
1823+
18151824
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
18161825
if (ret)
18171826
return ret;
@@ -2279,6 +2288,11 @@ static const struct hid_device_id mt_devices[] = {
22792288
HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8, USB_VENDOR_ID_GOOGLE,
22802289
USB_DEVICE_ID_GOOGLE_WHISKERS) },
22812290

2291+
/* sis */
2292+
{ .driver_data = MT_CLS_SIS,
2293+
HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_SIS_TOUCH,
2294+
HID_ANY_ID) },
2295+
22822296
/* Generic MT device */
22832297
{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH, HID_ANY_ID, HID_ANY_ID) },
22842298

0 commit comments

Comments
 (0)