[PATCH 3/4] HID: waltop: fix Media Tablet 10.6 inch zooming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 drivers/hid/hid-waltop.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/drivers/hid/hid-waltop.c b/drivers/hid/hid-waltop.c
index 7d4b318..246160a 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[] = {
 	0x0A, 0x2D, 0x02,   /*      Usage (AC Zoom In),             */
 	0x09, 0xB6,         /*      Usage (Scan Previous Track),    */
 	0x09, 0xB5,         /*      Usage (Scan Next Track),        */
-	0x15, 0x2C,         /*      Logical Minimum (44),           */
-	0x25, 0x30,         /*      Logical Maximum (48),           */
-	0x75, 0x08,         /*      Report Size (8),                */
+	0x08,               /*      Usage (00h),                    */
+	0x08,               /*      Usage (00h),                    */
+	0x08,               /*      Usage (00h),                    */
+	0x08,               /*      Usage (00h),                    */
+	0x08,               /*      Usage (00h),                    */
+	0x0A, 0x2E, 0x02,   /*      Usage (AC Zoom Out),            */
+	0x0A, 0x2D, 0x02,   /*      Usage (AC Zoom In),             */
+	0x15, 0x0C,         /*      Logical Minimum (12),           */
+	0x25, 0x17,         /*      Logical Maximum (23),           */
+	0x75, 0x05,         /*      Report Size (5),                */
 	0x80,               /*      Input,                          */
+	0x75, 0x03,         /*      Report Size (3),                */
+	0x81, 0x03,         /*      Input (Constant, Variable),     */
 	0x75, 0x20,         /*      Report Size (32),               */
 	0x81, 0x03,         /*      Input (Constant, Variable),     */
 	0xC0,               /*  End Collection,                     */
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux