Skip to contentSkip to conversation

HID: sigmamicro: Fix modifier keys for SiGma Micro based keyboards

PATCH In review Desmond Lim 1 participant 2 messages Dec 7, 2021 – Dec 30, 2021 HID

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 HID: sigmamicro: Fix modifier keys for SiGma Micro based keyboards

SIGMACHIP USB Keyboard (1c4f:0059) has a problem where all the modifier keys mapped to Shift_L.

Fix the report descriptor to make modifier keys work as expected.

---
Changes since v1:
- Update commit message
- Correct Kconfig dependency

---
 drivers/hid/Kconfig          | 10 ++++++++
 drivers/hid/Makefile         |  1 +
 drivers/hid/hid-ids.h        |  1 +
 drivers/hid/hid-sigmamicro.c | 45 ++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+)
 create mode 100644 drivers/hid/hid-sigmamicro.c
drivers/hid/Kconfig +10 -0
index 9f5435b55949..5b76c56bf9a4 100644
@@ -970,6 +970,16 @@ config HID_SEMITEK
 	- Woo-dy
 	- X-Bows Nature/Knight
 
+config HID_SIGMAMICRO
+	tristate "SiGma Micro based keyboards"
+	depends on USB_HID
+	help
+	  Support for keyboards that use the SiGma Micro (a.k.a SigmaChip) IC.
+
+	  Supported devices:
+	  - Landslides KR-700
+	  - Rapoo V500
+
 config HID_SONY
 	tristate "Sony PS2/3/4 accessories"
 	depends on USB_HID
drivers/hid/Makefile +1 -0
index 55a6fa3eca5a..89ea7fafb66b 100644
@@ -108,6 +108,7 @@ obj-$(CONFIG_HID_RMI)		+= hid-rmi.o
 obj-$(CONFIG_HID_SAITEK)	+= hid-saitek.o
 obj-$(CONFIG_HID_SAMSUNG)	+= hid-samsung.o
 obj-$(CONFIG_HID_SEMITEK)	+= hid-semitek.o
+obj-$(CONFIG_HID_SIGMAMICRO)	+= hid-sigmamicro.o
 obj-$(CONFIG_HID_SMARTJOYPLUS)	+= hid-sjoy.o
 obj-$(CONFIG_HID_SONY)		+= hid-sony.o
 obj-$(CONFIG_HID_SPEEDLINK)	+= hid-speedlink.o
drivers/hid/hid-ids.h +1 -0
index 96a455921c67..279410bc8fce 100644
@@ -1083,6 +1083,7 @@
 
 #define USB_VENDOR_ID_SIGMA_MICRO	0x1c4f
 #define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD	0x0002
+#define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD2	0x0059
 
 #define USB_VENDOR_ID_SIGMATEL		0x066F
 #define USB_DEVICE_ID_SIGMATEL_STMP3780	0x3780
drivers/hid/hid-sigmamicro.c new file +45 -0

45 lines not on this page · raw message

base-commit: 740bebf42104d2f082514b1545a14056f3b1b56c

Signature · 1 line
2.30.2