aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2010-08-30 06:06:37 -0400
committerJiri Kosina <jkosina@suse.cz>2010-09-01 06:36:35 -0400
commit30311549c3e2a0d9d839ed6e40398a2c354ce5e2 (patch)
tree30bdd6e92419641e87906ffa36f931eb5443a98f /drivers/hid
parent8f1acc32bbdb1784bcb0be98fb02f4b20e6f328f (diff)
HID: waltop: fix Media Tablet 10.6 inch zooming
Fix zoom controls of older version of Waltop Media Tablet 10.6 inch, aka Genius G-Pen M609. This should make it supported on par with the newer version, aka Genius G-Pen M609X. The fix is extrapolated from the behavior of the newer version (Genius G-Pen M609X) and both older and newer versions of Media Tablet 14.1 inch (Genius G-Pen M712/M712X) and should work with high probability. Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-waltop.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/hid/hid-waltop.c b/drivers/hid/hid-waltop.c
index 7d4b318c029f..246160a9fb89 100644
--- a/drivers/hid/hid-waltop.c
+++ b/drivers/hid/hid-waltop.c
@@ -487,10 +487,19 @@ static __u8 media_tablet_10_6_inch_rdesc_fixed[] = {
487 0x0A, 0x2D, 0x02, /* Usage (AC Zoom In), */ 487 0x0A, 0x2D, 0x02, /* Usage (AC Zoom In), */
488 0x09, 0xB6, /* Usage (Scan Previous Track), */ 488 0x09, 0xB6, /* Usage (Scan Previous Track), */
489 0x09, 0xB5, /* Usage (Scan Next Track), */ 489 0x09, 0xB5, /* Usage (Scan Next Track), */
490 0x15, 0x2C, /* Logical Minimum (44), */ 490 0x08, /* Usage (00h), */
491 0x25, 0x30, /* Logical Maximum (48), */ 491 0x08, /* Usage (00h), */
492 0x75, 0x08, /* Report Size (8), */ 492 0x08, /* Usage (00h), */
493 0x08, /* Usage (00h), */
494 0x08, /* Usage (00h), */
495 0x0A, 0x2E, 0x02, /* Usage (AC Zoom Out), */
496 0x0A, 0x2D, 0x02, /* Usage (AC Zoom In), */
497 0x15, 0x0C, /* Logical Minimum (12), */
498 0x25, 0x17, /* Logical Maximum (23), */
499 0x75, 0x05, /* Report Size (5), */
493 0x80, /* Input, */ 500 0x80, /* Input, */
501 0x75, 0x03, /* Report Size (3), */
502 0x81, 0x03, /* Input (Constant, Variable), */
494 0x75, 0x20, /* Report Size (32), */ 503 0x75, 0x20, /* Report Size (32), */
495 0x81, 0x03, /* Input (Constant, Variable), */ 504 0x81, 0x03, /* Input (Constant, Variable), */
496 0xC0, /* End Collection, */ 505 0xC0, /* End Collection, */