Lines 523-529
Link Here
|
523 |
} |
523 |
} |
524 |
|
524 |
|
525 |
/* vendor is wacom */ |
525 |
/* vendor is wacom */ |
526 |
if (sID.vendor == WACOM_VENDOR_ID) |
526 |
if (WACOM_VENDOR_ID(sID.vendor)) |
527 |
{ |
527 |
{ |
528 |
common->tablet_id = sID.product; |
528 |
common->tablet_id = sID.product; |
529 |
|
529 |
|
Lines 756-762
Link Here
|
756 |
else |
756 |
else |
757 |
channel = 0; |
757 |
channel = 0; |
758 |
} |
758 |
} |
759 |
else if (serial) /* serial number should never be 0 for V5 devices */ |
759 |
else |
760 |
{ |
760 |
{ |
761 |
/* dual input is supported */ |
761 |
/* dual input is supported */ |
762 |
if ( strstr(common->wcmModel->name, "Intuos1") || |
762 |
if ( strstr(common->wcmModel->name, "Intuos1") || |
Lines 849-863
Link Here
|
849 |
|
849 |
|
850 |
if ((event->type == EV_MSC) && (event->code == MSC_SERIAL)) |
850 |
if ((event->type == EV_MSC) && (event->code == MSC_SERIAL)) |
851 |
{ |
851 |
{ |
852 |
/* we don't report serial numbers for some tools |
|
|
853 |
* but we never report a serial number with a value of 0 */ |
854 |
if (event->value == 0) |
855 |
{ |
856 |
xf86Msg(X_ERROR, "%s: usbParse: Ignoring event from invalid serial 0\n", |
857 |
local->name); |
858 |
goto skipEvent; |
859 |
} |
860 |
|
861 |
/* save the serial number so we can look up the channel number later */ |
852 |
/* save the serial number so we can look up the channel number later */ |
862 |
common->wcmLastToolSerial = event->value; |
853 |
common->wcmLastToolSerial = event->value; |
863 |
|
854 |
|