Skip to content

Commit aa2d495

Browse files
jwrdegoedebentiss
authored andcommitted
HID: Add support for Toshiba WT10A tablet bluetooth keyboard
The bluetooth-keyboard which comes with the Toshiba WT10A tablet uses a couple of usage codes in the vendor specific ffbc page. The keyboard has a vendor-id of 04f2 which maps to Chicony. Other then adding a few keymappings for the ffbc usages, no special handling is necessary. So rather then adding a new hid-toshiba driver, this commit adds the ID and 2 extra key-mappings to the hid-topseed driver. The hid-topseed driver already contains mapping for some ffbc usages (and does nothing else) and it already binds to another Chicony manufactured keyboard. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent d47e3da commit aa2d495

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
#define USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE 0x1053
274274
#define USB_DEVICE_ID_CHICONY_WIRELESS2 0x1123
275275
#define USB_DEVICE_ID_ASUS_AK1D 0x1125
276+
#define USB_DEVICE_ID_CHICONY_TOSHIBA_WT10A 0x1408
276277
#define USB_DEVICE_ID_CHICONY_ACER_SWITCH12 0x1421
277278

278279
#define USB_VENDOR_ID_CHUNGHWAT 0x2247

drivers/hid/hid-topseed.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ static int ts_input_mapping(struct hid_device *hdev, struct hid_input *hi,
3434
return 0;
3535

3636
switch (usage->hid & HID_USAGE) {
37+
case 0x00c: ts_map_key_clear(KEY_WLAN); break;
3738
case 0x00d: ts_map_key_clear(KEY_MEDIA); break;
39+
case 0x010: ts_map_key_clear(KEY_ZOOM); break;
3840
case 0x024: ts_map_key_clear(KEY_MENU); break;
3941
case 0x025: ts_map_key_clear(KEY_TV); break;
4042
case 0x027: ts_map_key_clear(KEY_MODE); break;
@@ -67,6 +69,7 @@ static const struct hid_device_id ts_devices[] = {
6769
{ HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE_2) },
6870
{ HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED2, USB_DEVICE_ID_TOPSEED2_RF_COMBO) },
6971
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_WIRELESS) },
72+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_TOSHIBA_WT10A) },
7073
{ }
7174
};
7275
MODULE_DEVICE_TABLE(hid, ts_devices);

0 commit comments

Comments
 (0)