Skip to content

Commit 83e4491

Browse files
cjbJiri Kosina
authored andcommitted
USB HID: Add ID for eGalax Multitouch used in JooJoo tablet
The JooJoo tablet (http://thejoojoo.com/) contains an "eGalax Inc. USB TouchController", and this patch hooks it up to the egalax-touch driver. Without the patch we don't get any cursor motion, since it comes through Z/RX rather than X/Y. (The egalax-touch driver does not yet generate a correct event sequence for the "serial" protocol used by this device, though -- see the note added to the code, which comes from research by Stéphane Chatty.) Cc: Jiri Kosina <jkosina@suse.cz> Cc: Stéphane Chatty <chatty@enac.fr> Signed-off-by: Chris Ball <cjb@laptop.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 9c9e54a commit 83e4491

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎drivers/hid/hid-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,7 @@ static const struct hid_device_id hid_blacklist[] = {
12991299
{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_MOUSE) },
13001300
{ HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, 0x0006) },
13011301
{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH) },
1302+
{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH1) },
13021303
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084) },
13031304
{ HID_USB_DEVICE(USB_VENDOR_ID_EZKEY, USB_DEVICE_ID_BTC_8193) },
13041305
{ HID_USB_DEVICE(USB_VENDOR_ID_GAMERON, USB_DEVICE_ID_GAMERON_DUAL_PSX_ADAPTOR) },

‎drivers/hid/hid-egalax.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ static int egalax_event(struct hid_device *hid, struct hid_field *field,
159159
{
160160
struct egalax_data *td = hid_get_drvdata(hid);
161161

162+
/* Note, eGalax has two product lines: the first is resistive and
163+
* uses a standard parallel multitouch protocol (product ID ==
164+
* 48xx). The second is capacitive and uses an unusual "serial"
165+
* protocol with a different message for each multitouch finger
166+
* (product ID == 72xx). We do not yet generate a correct event
167+
* sequence for the capacitive/serial protocol.
168+
*/
162169
if (hid->claimed & HID_CLAIMED_INPUT) {
163170
struct input_dev *input = field->hidinput->input;
164171

@@ -246,6 +253,8 @@ static void egalax_remove(struct hid_device *hdev)
246253
static const struct hid_device_id egalax_devices[] = {
247254
{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
248255
USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH) },
256+
{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
257+
USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH1) },
249258
{ }
250259
};
251260
MODULE_DEVICE_TABLE(hid, egalax_devices);

‎drivers/hid/hid-ids.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
#define USB_VENDOR_ID_DWAV 0x0eef
189189
#define USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER 0x0001
190190
#define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH 0x480d
191+
#define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH1 0x720c
191192

192193
#define USB_VENDOR_ID_ELECOM 0x056e
193194
#define USB_DEVICE_ID_ELECOM_BM084 0x0061

0 commit comments

Comments
 (0)