From 60af7b0c028ee431f5abb53e2174f63ebc2b1ba7 Mon Sep 17 00:00:00 2001 From: "Adam D." <1794794+adam820@users.noreply.github.com> Date: Sat, 15 Jun 2024 05:01:14 -0400 Subject: [PATCH] Define TS-PC device ID and add to devices struct Based on the work of svenliekens in this comment: https://github.com/Kimplul/hid-tmff2/issues/65#issuecomment-1908756815 --- src/hid-tmff2.c | 4 ++++ src/hid-tmff2.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/hid-tmff2.c b/src/hid-tmff2.c index 0149d99..18d7289 100644 --- a/src/hid-tmff2.c +++ b/src/hid-tmff2.c @@ -657,6 +657,7 @@ static int tmff2_probe(struct hid_device *hdev, const struct hid_device_id *id) hid_set_drvdata(tmff2->hdev, tmff2); switch (tmff2->hdev->product) { + case TMTS_PC_RACER_ID: case TMT300RS_PS3_NORM_ID: case TMT300RS_PS3_ADV_ID: case TMT300RS_PS4_NORM_ID: @@ -774,6 +775,9 @@ static const struct hid_device_id tmff2_devices[] = { /* tsxw */ {HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TSXW_ACTIVE)}, + /* TS-PC RACER */ + {HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TMTS_PC_RACER_ID)}, + {} }; MODULE_DEVICE_TABLE(hid, tmff2_devices); diff --git a/src/hid-tmff2.h b/src/hid-tmff2.h index 666d249..32375c0 100644 --- a/src/hid-tmff2.h +++ b/src/hid-tmff2.h @@ -114,6 +114,8 @@ int tsxw_populate_api(struct tmff2_device_entry *tmff2); #define TSXW_ACTIVE 0xb692 +#define TMTS_PC_RACER_ID 0xb689 + /* APIs to different wheel families */ /* T248 and TX at least uses the T300RS api, not sure if there are other wheels * but that's why these functions are given global linkage */