hid: Fix for A4Tech RP-649 horizontal scrollwheel (updated)
PATCH 1/1 hid: Fix for A4Tech RP-649 horizontal scrollwheel (updated)
From: Lech Perczak<[email protected]>
- Add USB device ID of A4Tech RF mouse receiver (09da:001a) used with RP-649(Z) mice
- Enable fix for their horizontal scroll wheel behaviour, associate it with B8 hack.
- Blacklist the new device ID in hid-core.c
---
hid-a4tech.c renamed from hid-a4tech.c.orig +2 -0
@@ -133,6 +133,8 @@ .driver_data = A4_2WHEEL_MOUSE_HACK_7 }, { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_X5_005D), .driver_data = A4_2WHEEL_MOUSE_HACK_B8 }, + { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_RP_649), + .driver_data = A4_2WHEEL_MOUSE_HACK_B8 }, { } };MODULE_DEVICE_TABLE (hid, a4_devices);
hid-ids.h renamed from hid-ids.h.orig +1 -0
@@ -25,6 +25,7 @@#define USB_VENDOR_ID_A4TECH 0x09da#define USB_DEVICE_ID_A4TECH_WCP32PU 0x0006#define USB_DEVICE_ID_A4TECH_X5_005D 0x000a +#define USB_DEVICE_ID_A4TECH_RP_649 0x001a#define USB_VENDOR_ID_AASHIMA 0x06d6#define USB_DEVICE_ID_AASHIMA_GAMEPAD 0x0025
hid-core.c renamed from hid-core.c.orig +1 -0
@@ -1239,6 +1239,7 @@ static const struct hid_device_id hid_bl { HID_USB_DEVICE(USB_VENDOR_ID_3M, USB_DEVICE_ID_3M2256) }, { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_WCP32PU) }, { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_X5_005D) }, + { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_RP_649) }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ATV_IRCONTROL) }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_IRCONTROL4) }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MIGHTYMOUSE) },
Quoted 7 lines · Lech Perczak
From: Lech Perczak<[email protected]>
- Add USB device ID of A4Tech RF mouse receiver (09da:001a) used with RP-649(Z) mice
- Enable fix for their horizontal scroll wheel behaviour, associate it
with B8
hid-a4tech.c
Quoted 8 lines
hack.
- Blacklist the new device ID inhid-core.cSigned-off-by Lech Perczak<[email protected]>---
diff -up hid/hid-a4tech.c.orighid/hid-a4tech.chid-a4tech.c renamed from hid-a4tech.c.orig +0
-0
In the future, please send the patches in a form that they can be applied from the toplevel kernel source directory with 'patch -p1'. I have fixed it up for this patch and applied, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.