All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel
@ 2010-09-09 17:51 Lech Perczak
  2010-09-13 11:23 ` Jiri Kosina
  2010-09-14  7:57 ` Dmitry Torokhov
  0 siblings, 2 replies; 3+ messages in thread
From: Lech Perczak @ 2010-09-09 17:51 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input, linux-kernel

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

- Barely add USB device ID of A4Tech RF mouse receiver (09da:001a) used 
with RP-649(Z) mice to enable fix for their horizontal scroll wheel 
behaviour, and associate it with B8 hack.

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel
  2010-09-09 17:51 [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel Lech Perczak
@ 2010-09-13 11:23 ` Jiri Kosina
  2010-09-14  7:57 ` Dmitry Torokhov
  1 sibling, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2010-09-13 11:23 UTC (permalink / raw)
  To: Lech Perczak; +Cc: linux-input, linux-kernel

On Thu, 9 Sep 2010, Lech Perczak wrote:

>  From: Lech Perczak <lech.perczak@multivision.pl>
> 
> - Barely add USB device ID of A4Tech RF mouse receiver (09da:001a) used with
> RP-649(Z) mice to enable fix for their horizontal scroll wheel behaviour, and
> associate it with B8 hack.
> 
> 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

You'd also need to add this device to hid_blacklist[] in hid-core.c, 
otherwise hid-a4tech driver wouldn't automatically bind to the device.

Could you please fix that up in your patch and resend it to me?

Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel
  2010-09-09 17:51 [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel Lech Perczak
  2010-09-13 11:23 ` Jiri Kosina
@ 2010-09-14  7:57 ` Dmitry Torokhov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2010-09-14  7:57 UTC (permalink / raw)
  To: Lech Perczak; +Cc: Jiri Kosina, linux-input, linux-kernel

On Thu, Sep 09, 2010 at 07:51:27PM +0200, Lech Perczak wrote:
>  From: Lech Perczak <lech.perczak@multivision.pl>
> 
> - Barely add USB device ID of A4Tech RF mouse receiver (09da:001a)

I think you were looking for word "simply".

> used with RP-649(Z) mice to enable fix for their horizontal scroll
> wheel behaviour, and associate it with B8 hack.
> 
-- 
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-14  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09 17:51 [Patch 1/1] hid: Fix for A4Tech RP-649 horizontal scrollwheel Lech Perczak
2010-09-13 11:23 ` Jiri Kosina
2010-09-14  7:57 ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.