@@ -546,6 +546,16 @@ static int wacom_intuos_irq(struct wacom_wac *wacom)
546546 input_report_key (input , BTN_3 , (data [6 ] & 0x08 ));
547547 input_report_key (input , BTN_4 , (data [6 ] & 0x10 ));
548548 input_report_key (input , BTN_5 , (data [6 ] & 0x20 ));
549+ } else if (features -> type == WACOM_13HD ) {
550+ input_report_key (input , BTN_0 , (data [3 ] & 0x01 ));
551+ input_report_key (input , BTN_1 , (data [4 ] & 0x01 ));
552+ input_report_key (input , BTN_2 , (data [4 ] & 0x02 ));
553+ input_report_key (input , BTN_3 , (data [4 ] & 0x04 ));
554+ input_report_key (input , BTN_4 , (data [4 ] & 0x08 ));
555+ input_report_key (input , BTN_5 , (data [4 ] & 0x10 ));
556+ input_report_key (input , BTN_6 , (data [4 ] & 0x20 ));
557+ input_report_key (input , BTN_7 , (data [4 ] & 0x40 ));
558+ input_report_key (input , BTN_8 , (data [4 ] & 0x80 ));
549559 } else if (features -> type == WACOM_24HD ) {
550560 input_report_key (input , BTN_0 , (data [6 ] & 0x01 ));
551561 input_report_key (input , BTN_1 , (data [6 ] & 0x02 ));
@@ -1301,6 +1311,7 @@ void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
13011311 case INTUOS4L :
13021312 case CINTIQ :
13031313 case WACOM_BEE :
1314+ case WACOM_13HD :
13041315 case WACOM_21UX2 :
13051316 case WACOM_22HD :
13061317 case WACOM_24HD :
@@ -1579,6 +1590,15 @@ int wacom_setup_input_capabilities(struct input_dev *input_dev,
15791590 wacom_setup_cintiq (wacom_wac );
15801591 break ;
15811592
1593+ case WACOM_13HD :
1594+ for (i = 0 ; i < 9 ; i ++ )
1595+ __set_bit (BTN_0 + i , input_dev -> keybit );
1596+
1597+ input_set_abs_params (input_dev , ABS_Z , -900 , 899 , 0 , 0 );
1598+ __set_bit (INPUT_PROP_DIRECT , input_dev -> propbit );
1599+ wacom_setup_cintiq (wacom_wac );
1600+ break ;
1601+
15821602 case INTUOS3 :
15831603 case INTUOS3L :
15841604 __set_bit (BTN_4 , input_dev -> keybit );
@@ -1950,6 +1970,9 @@ static const struct wacom_features wacom_features_0xC5 =
19501970static const struct wacom_features wacom_features_0xC6 =
19511971 { "Wacom Cintiq 12WX" , WACOM_PKGLEN_INTUOS , 53020 , 33440 , 1023 ,
19521972 63 , WACOM_BEE , WACOM_INTUOS3_RES , WACOM_INTUOS3_RES };
1973+ static const struct wacom_features wacom_features_0x304 =
1974+ { "Wacom Cintiq 13HD" , WACOM_PKGLEN_INTUOS , 59552 , 33848 , 1023 ,
1975+ 63 , WACOM_13HD , WACOM_INTUOS3_RES , WACOM_INTUOS3_RES };
19531976static const struct wacom_features wacom_features_0xC7 =
19541977 { "Wacom DTU1931" , WACOM_PKGLEN_GRAPHIRE , 37832 , 30305 , 511 ,
19551978 0 , PL , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
@@ -1959,6 +1982,9 @@ static const struct wacom_features wacom_features_0xCE =
19591982static const struct wacom_features wacom_features_0xF0 =
19601983 { "Wacom DTU1631" , WACOM_PKGLEN_GRAPHIRE , 34623 , 19553 , 511 ,
19611984 0 , DTU , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
1985+ static const struct wacom_features wacom_features_0x57 =
1986+ { "Wacom DTK2241" , WACOM_PKGLEN_INTUOS , 95840 , 54260 , 2047 ,
1987+ 63 , DTK , WACOM_INTUOS3_RES , WACOM_INTUOS3_RES };
19621988static const struct wacom_features wacom_features_0x59 = /* Pen */
19631989 { "Wacom DTH2242" , WACOM_PKGLEN_INTUOS , 95840 , 54260 , 2047 ,
19641990 63 , DTK , WACOM_INTUOS3_RES , WACOM_INTUOS3_RES ,
@@ -1972,6 +1998,12 @@ static const struct wacom_features wacom_features_0xCC =
19721998static const struct wacom_features wacom_features_0xFA =
19731999 { "Wacom Cintiq 22HD" , WACOM_PKGLEN_INTUOS , 95840 , 54260 , 2047 ,
19742000 63 , WACOM_22HD , WACOM_INTUOS3_RES , WACOM_INTUOS3_RES };
2001+ static const struct wacom_features wacom_features_0x5B =
2002+ { "Wacom Cintiq 22HDT" , WACOM_PKGLEN_INTUOS , 95840 , 54260 , 2047 ,
2003+ 63 , WACOM_24HD , WACOM_INTUOS3_RES , WACOM_INTUOS3_RES , .oVid = USB_VENDOR_ID_WACOM , .oPid = 0x5e };
2004+ static const struct wacom_features wacom_features_0x5E =
2005+ { "Wacom Cintiq 22HDT" , .type = WACOM_24HDT ,
2006+ .oVid = USB_VENDOR_ID_WACOM , .oPid = 0x5b , .touch_max = 10 };
19752007static const struct wacom_features wacom_features_0x90 =
19762008 { "Wacom ISDv4 90" , WACOM_PKGLEN_GRAPHIRE , 26202 , 16325 , 255 ,
19772009 0 , TABLETPC , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
@@ -2143,8 +2175,11 @@ const struct usb_device_id wacom_ids[] = {
21432175 { USB_DEVICE_WACOM (0x43 ) },
21442176 { USB_DEVICE_WACOM (0x44 ) },
21452177 { USB_DEVICE_WACOM (0x45 ) },
2178+ { USB_DEVICE_WACOM (0x57 ) },
21462179 { USB_DEVICE_WACOM (0x59 ) },
21472180 { USB_DEVICE_DETAILED (0x5D , USB_CLASS_HID , 0 , 0 ) },
2181+ { USB_DEVICE_WACOM (0x5B ) },
2182+ { USB_DEVICE_DETAILED (0x5E , USB_CLASS_HID , 0 , 0 ) },
21482183 { USB_DEVICE_WACOM (0xB0 ) },
21492184 { USB_DEVICE_WACOM (0xB1 ) },
21502185 { USB_DEVICE_WACOM (0xB2 ) },
@@ -2205,6 +2240,7 @@ const struct usb_device_id wacom_ids[] = {
22052240 { USB_DEVICE_WACOM (0x100 ) },
22062241 { USB_DEVICE_WACOM (0x101 ) },
22072242 { USB_DEVICE_WACOM (0x10D ) },
2243+ { USB_DEVICE_WACOM (0x304 ) },
22082244 { USB_DEVICE_WACOM (0x4001 ) },
22092245 { USB_DEVICE_WACOM (0x47 ) },
22102246 { USB_DEVICE_WACOM (0xF4 ) },
0 commit comments