Skip to content

Commit e17f5d7

Browse files
d4l3kJiri Kosina
authored andcommitted
HID: enable Mayflash USB Gamecube Adapter
This is a patch that adds the new Mayflash Gamecube Controller to USB adapter (ID 1a34:f705 ACRUX) to the ACRUX driver (drivers/hid/hid-axff.c) with full force feedback support. Signed-off-by: Tristan Rice <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent a08c22c commit e17f5d7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/hid/hid-axff.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int axff_init(struct hid_device *hid)
9595
}
9696
}
9797

98-
if (field_count < 4) {
98+
if (field_count < 4 && hid->product != 0xf705) {
9999
hid_err(hid, "not enough fields in the report: %d\n",
100100
field_count);
101101
return -ENODEV;
@@ -180,6 +180,7 @@ static void ax_remove(struct hid_device *hdev)
180180

181181
static const struct hid_device_id ax_devices[] = {
182182
{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0x0802), },
183+
{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0xf705), },
183184
{ }
184185
};
185186
MODULE_DEVICE_TABLE(hid, ax_devices);

drivers/hid/hid-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
16021602
{ HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_X5_005D) },
16031603
{ HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_RP_649) },
16041604
{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0x0802) },
1605+
{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0xf705) },
16051606
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MIGHTYMOUSE) },
16061607
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICMOUSE) },
16071608
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICTRACKPAD) },

0 commit comments

Comments
 (0)