linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lech Perczak <lech.perczak@multivision.pl>
To: Jiri Kosina <jkosina@suse.cz>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel (updated)
Date: Thu, 16 Sep 2010 23:19:33 +0200	[thread overview]
Message-ID: <4C9289E5.3020400@multivision.pl> (raw)



From: Lech Perczak<lech.perczak@multivision.pl>

- 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

Signed-off-by: Lech Perczak<lech.perczak@multivision.pl>
---
diff -up hid/hid-a4tech.c.orig hid/hid-a4tech.c
--- hid/hid-a4tech.c.orig	2010-08-02 00:11:14.000000000 +0200
+++ hid/hid-a4tech.c	2010-09-09 17:51:23.000000000 +0200
@@ -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);
diff -up hid/hid-ids.h.orig hid/hid-ids.h
--- hid/hid-ids.h.orig	2010-09-09 17:48:28.000000000 +0200
+++ hid/hid-ids.h	2010-09-09 17:41:09.000000000 +0200
@@ -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
diff -up hid/hid-core.c.orig hid/hid-core.c
--- hid/hid-core.c.orig	2010-08-02 00:11:14.000000000 +0200
+++ hid/hid-core.c	2010-09-16 23:03:24.000000000 +0200
@@ -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) },



             reply	other threads:[~2010-09-16 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 21:19 Lech Perczak [this message]
2010-09-17 18:44 ` [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel (updated) Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9289E5.3020400@multivision.pl \
    --to=lech.perczak@multivision.pl \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).