Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314590 Details for
Bug 370471
[RFE] Add support for Wacom PTZ-431W to kernel
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
03-add_support_for_cintiq20wsx
wacom-add_support_for_cintiq20wsx.patch (text/plain), 3.69 KB, created by
Aristeu Rozanski
on 2008-08-19 22:26:00 UTC
(
hide
)
Description:
03-add_support_for_cintiq20wsx
Filename:
MIME Type:
Creator:
Aristeu Rozanski
Created:
2008-08-19 22:26:00 UTC
Size:
3.69 KB
patch
obsolete
>wacom: add support for Cintiq 20WSX > >https://bugzilla.redhat.com/show_bug.cgi?id=248903 > >This patch adds support for Cintiq 20WSX tablet. > >Patch tested by the customer with success. > >Upstream: >b345dc7da026016b65162b1ca7cfcd2c7212a285 >0e1763f530af71bd82e58e407991a9ded6aae73e > >--- > drivers/usb/input/wacom.c | 21 ++++++++++++++++----- > 1 file changed, 16 insertions(+), 5 deletions(-) > >--- tree.orig/drivers/usb/input/wacom.c 2008-06-23 16:35:21.000000000 -0400 >+++ tree/drivers/usb/input/wacom.c 2008-06-23 16:35:27.000000000 -0400 >@@ -90,6 +90,7 @@ MODULE_LICENSE(DRIVER_LICENSE); > #define STYLUS_DEVICE_ID 0x02 > #define CURSOR_DEVICE_ID 0x06 > #define ERASER_DEVICE_ID 0x0A >+#define PAD_DEVICE_ID 0x0F > > enum { > PENPARTNER = 0, >@@ -102,6 +103,7 @@ enum { > INTUOS312, > INTUOS319, > CINTIQ, >+ BEE, > MAX_TYPE > }; > >@@ -630,13 +632,17 @@ static void wacom_intuos_irq(struct urb > input_report_key(dev, BTN_5, (data[6] & 0x02)); > input_report_key(dev, BTN_6, (data[6] & 0x04)); > input_report_key(dev, BTN_7, (data[6] & 0x08)); >+ input_report_key(dev, BTN_8, (data[5] & 0x10)); >+ input_report_key(dev, BTN_9, (data[6] & 0x10)); > input_report_abs(dev, ABS_RX, ((data[1] & 0x1f) << 8) | data[2]); > input_report_abs(dev, ABS_RY, ((data[3] & 0x1f) << 8) | data[4]); > >- if((data[5] & 0x0f) | (data[6] & 0x0f) | (data[1] & 0x1f) | data[2]) >+ if ((data[5] & 0x1f) | (data[6] & 0x1f) | (data[1] & 0x1f) | >+ data[2] | (data[3] & 0x1f) | data[4]) > input_report_key(dev, wacom->tool[1], 1); > else > input_report_key(dev, wacom->tool[1], 0); >+ input_report_abs(dev, ABS_MISC, PAD_DEVICE_ID); > input_event(dev, EV_MSC, MSC_SERIAL, 0xffffffff); > input_sync(dev); > goto exit; >@@ -669,13 +675,10 @@ static void wacom_intuos_irq(struct urb > if (data[1] & 0x02) { > /* Rotation packet */ > if (wacom->features->type >= INTUOS3S) { >- /* I3 marker pen rotation reported as wheel >- * due to valuator limitation >- */ > t = (data[6] << 3) | ((data[7] >> 5) & 7); > t = (data[7] & 0x20) ? ((t > 900) ? ((t-1) / 2 - 1350) : > ((t-1) / 2 + 450)) : (450 - t / 2) ; >- input_report_abs(dev, ABS_WHEEL, t); >+ input_report_abs(dev, ABS_Z, t); > } else { > /* 4D mouse rotation packet */ > t = (data[6] << 3) | ((data[7] >> 5) & 7); >@@ -778,6 +781,7 @@ static struct wacom_features wacom_featu > { "Wacom Cintiq 21UX", 10, 87200, 65600, 1023, 63, CINTIQ, wacom_intuos_irq }, > { "Wacom Intuos2 6x8", 10, 20320, 16240, 1023, 31, INTUOS, wacom_intuos_irq }, > { "Wacom Intuos3 4x6", 10, 31496, 19685, 1023, 63, INTUOS3S, wacom_intuos_irq }, >+ { "Wacom Cintiq 20WSX", 10, 86680, 54180, 1023, 63, BEE, wacom_intuos_irq }, > { } > }; > >@@ -826,6 +830,7 @@ static struct usb_device_id wacom_ids[] > { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x3F) }, > { USB_DEVICE(USB_VENDOR_ID_WACOM, 0x47) }, > { USB_DEVICE(USB_VENDOR_ID_WACOM, 0xB7) }, >+ { USB_DEVICE(USB_VENDOR_ID_WACOM, 0xC5) }, > { } > }; > >@@ -910,6 +915,9 @@ static int wacom_probe(struct usb_interf > input_set_abs_params(input_dev, ABS_DISTANCE, 0, wacom->features->distance_max, 0, 0); > break; > >+ case BEE: >+ input_dev->keybit[LONG(BTN_LEFT)] |= BIT(BTN_8) | BIT(BTN_9); >+ /* fall through */ > case INTUOS3: > case INTUOS312: > case INTUOS319: >@@ -921,6 +929,9 @@ static int wacom_probe(struct usb_interf > input_dev->keybit[LONG(BTN_DIGI)] |= BIT(BTN_TOOL_FINGER); > input_dev->keybit[LONG(BTN_LEFT)] |= BIT(BTN_0) | BIT(BTN_1) | BIT(BTN_2) | BIT(BTN_3); > input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0); >+ input_dev->absbit[0] |= BIT(ABS_RX) | BIT(ABS_Z); >+ input_dev->absmax[ABS_Z] = 899; >+ input_dev->absmin[ABS_Z] = -900; > /* fall through */ > case INTUOS: > input_dev->evbit[0] |= BIT(EV_MSC) | BIT(EV_REL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 370471
:
314588
|
314589
| 314590