Linux Input Archive mirror
 help / color / mirror / Atom feed
From: Jon Moeller <jon@moeller.io>
To: linux-input@vger.kernel.org
Cc: Jon Moeller <jon@moeller.io>
Subject: [PATCH] Adding quirks for 2024 HP Spectre x360 touchpads
Date: Mon, 29 Apr 2024 00:09:39 -0700	[thread overview]
Message-ID: <20240429070950.247183-1-jon@moeller.io> (raw)

---
 drivers/hid/hid-multitouch.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 04a014cd2a2f..7a7918191628 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -212,6 +212,7 @@ static void mt_post_parse(struct mt_device *td, struct mt_application *app);
 #define MT_CLS_GOOGLE				0x0111
 #define MT_CLS_RAZER_BLADE_STEALTH		0x0112
 #define MT_CLS_SMART_TECH			0x0113
+#define MT_CLS_HP_SPECTRE_ELAN_HAPTIC		0x0114
 
 #define MT_DEFAULT_MAXCONTACT	10
 #define MT_MAX_MAXCONTACT	250
@@ -396,6 +397,13 @@ static const struct mt_class mt_classes[] = {
 			MT_QUIRK_CONTACT_CNT_ACCURATE |
 			MT_QUIRK_SEPARATE_APP_REPORT,
 	},
+	{ .name = MT_CLS_HP_SPECTRE_ELAN_HAPTIC,
+		.quirks = MT_QUIRK_ALWAYS_VALID |
+			MT_QUIRK_SLOT_IS_CONTACTID |
+			MT_QUIRK_CONTACT_CNT_ACCURATE |
+			MT_QUIRK_CONFIDENCE |
+			MT_QUIRK_WIN8_PTP_BUTTONS,
+	},
 	{ }
 };
 
@@ -1992,6 +2000,12 @@ static const struct hid_device_id mt_devices[] = {
 		HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
 			USB_VENDOR_ID_ELAN, 0x3148) },
 
+	{ .driver_data = MT_CLS_HP_SPECTRE_ELAN_HAPTIC,
+		HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x32c8) },
+
+	{ .driver_data = MT_CLS_HP_SPECTRE_ELAN_HAPTIC,
+		HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x310a) },
+
 	/* Elitegroup panel */
 	{ .driver_data = MT_CLS_SERIAL,
 		MT_USB_DEVICE(USB_VENDOR_ID_ELITEGROUP,
-- 
2.44.0

Signed-off-by: Jon Moeller <jon@moeller.io>

             reply	other threads:[~2024-04-29  7:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29  7:09 Jon Moeller [this message]
2024-05-28 18:21 ` [PATCH] Adding quirks for 2024 HP Spectre x360 touchpads Jon Moeller
2024-05-29 22:29   ` Aseda Aboagye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240429070950.247183-1-jon@moeller.io \
    --to=jon@moeller.io \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).