Skip to content

Commit 7da7cbb

Browse files
ablacksheepJiri Kosina
authored andcommitted
HID: add Holtek USB ID 04d9:a081 SHARKOON DarkGlider
Added id, bindings and comments for Holtek USB ID 04d9:a081 SHARKOON DarkGlider Gaming mouse to use the same corrections of the report descriptor as Holtek 04d9:a04a. As the mouse exceed HID_MAX_USAGES at the same offsets in the reported descriptor. Tested on the hardware. Signed-off-by: Anders F. U. Kiær <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 0f5a24c commit 7da7cbb

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

drivers/hid/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ config HID_HOLTEK
241241
- Sharkoon Drakonia / Perixx MX-2000 gaming mice
242242
- Tracer Sniper TRM-503 / NOVA Gaming Slider X200 /
243243
Zalman ZM-GM1
244+
- SHARKOON DarkGlider Gaming mouse
244245

245246
config HOLTEK_FF
246247
bool "Holtek On Line Grip force feedback support"

drivers/hid/hid-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
17151715
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD) },
17161716
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A) },
17171717
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067) },
1718+
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081) },
17181719
{ HID_USB_DEVICE(USB_VENDOR_ID_HUION, USB_DEVICE_ID_HUION_580) },
17191720
{ HID_USB_DEVICE(USB_VENDOR_ID_JESS2, USB_DEVICE_ID_JESS2_COLOR_RUMBLE_PAD) },
17201721
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ION, USB_DEVICE_ID_ICADE) },

drivers/hid/hid-holtek-mouse.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* - USB ID 04d9:a067, sold as Sharkoon Drakonia and Perixx MX-2000
2828
* - USB ID 04d9:a04a, sold as Tracer Sniper TRM-503, NOVA Gaming Slider X200
2929
* and Zalman ZM-GM1
30+
* - USB ID 04d9:a081, sold as SHARKOON DarkGlider Gaming mouse
3031
*/
3132

3233
static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc,
@@ -46,6 +47,7 @@ static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc,
4647
}
4748
break;
4849
case USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A:
50+
case USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081:
4951
if (*rsize >= 113 && rdesc[106] == 0xff && rdesc[107] == 0x7f
5052
&& rdesc[111] == 0xff && rdesc[112] == 0x7f) {
5153
hid_info(hdev, "Fixing up report descriptor\n");
@@ -63,6 +65,8 @@ static const struct hid_device_id holtek_mouse_devices[] = {
6365
USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067) },
6466
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT,
6567
USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A) },
68+
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT,
69+
USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081) },
6670
{ }
6771
};
6872
MODULE_DEVICE_TABLE(hid, holtek_mouse_devices);

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@
450450
#define USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD 0xa055
451451
#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067 0xa067
452452
#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A 0xa04a
453+
#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081 0xa081
453454

454455
#define USB_VENDOR_ID_IMATION 0x0718
455456
#define USB_DEVICE_ID_DISC_STAKKA 0xd000

0 commit comments

Comments
 (0)