* usbtouchscreen: support bigger iNexio touchscreens
@ 2010-03-16 13:23 Ondrej Zary
[not found] ` <201003161423.54495.linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Ondrej Zary @ 2010-03-16 13:23 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-usb, daniel.ritz, linux-kernel
Bigger Nexio touchscreens not only send more data but also the header values
are modified somehow. Fix the header somehow (it's a guesswork but it works
at least on one 46" touchscreen with 2.00SMS firmware) and also increase
rept_size.
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
--- linux-2.6.34-rc1-orig/drivers/input/touchscreen/usbtouchscreen.c 2010-03-16 13:34:51.000000000 +0100
+++ linux-2.6.34-rc1/drivers/input/touchscreen/usbtouchscreen.c 2010-03-16 13:46:15.000000000 +0100
@@ -858,6 +858,11 @@
if ((pkt[0] & 0xe0) != 0xe0)
return 0;
+ if (be16_to_cpu(packet->data_len) > 0xff)
+ packet->data_len = cpu_to_be16(be16_to_cpu(packet->data_len) - 0x100);
+ if (be16_to_cpu(packet->x_len) > 0xff)
+ packet->x_len = cpu_to_be16(be16_to_cpu(packet->x_len) - 0x80);
+
/* send ACK */
ret = usb_submit_urb(priv->ack, GFP_ATOMIC);
@@ -1113,7 +1118,7 @@
#ifdef CONFIG_TOUCHSCREEN_USB_NEXIO
[DEVTYPE_NEXIO] = {
- .rept_size = 128,
+ .rept_size = 1024,
.irq_always = true,
.read_data = nexio_read_data,
.init = nexio_init,
--
Ondrej Zary
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <201003161423.54495.linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org>]
* Re: usbtouchscreen: support bigger iNexio touchscreens 2010-03-16 13:23 usbtouchscreen: support bigger iNexio touchscreens Ondrej Zary @ 2010-03-16 13:26 ` Jiri Kosina 0 siblings, 0 replies; 3+ messages in thread From: Jiri Kosina @ 2010-03-16 13:26 UTC (permalink / raw) To: Ondrej Zary Cc: Oliver Neukum, linux-usb-u79uwXL29TY76Z2rM5mHXA, daniel.ritz-OI3hZJvNYWs, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Dmitry Torokhov, linux-input-u79uwXL29TY76Z2rM5mHXA [ adding some more relevant CCs ] On Tue, 16 Mar 2010, Ondrej Zary wrote: > Bigger Nexio touchscreens not only send more data but also the header values > are modified somehow. Fix the header somehow (it's a guesswork but it works > at least on one 46" touchscreen with 2.00SMS firmware) and also increase > rept_size. > > Signed-off-by: Ondrej Zary <linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org> > > --- linux-2.6.34-rc1-orig/drivers/input/touchscreen/usbtouchscreen.c 2010-03-16 13:34:51.000000000 +0100 > +++ linux-2.6.34-rc1/drivers/input/touchscreen/usbtouchscreen.c 2010-03-16 13:46:15.000000000 +0100 > @@ -858,6 +858,11 @@ > if ((pkt[0] & 0xe0) != 0xe0) > return 0; > > + if (be16_to_cpu(packet->data_len) > 0xff) > + packet->data_len = cpu_to_be16(be16_to_cpu(packet->data_len) - 0x100); > + if (be16_to_cpu(packet->x_len) > 0xff) > + packet->x_len = cpu_to_be16(be16_to_cpu(packet->x_len) - 0x80); > + > /* send ACK */ > ret = usb_submit_urb(priv->ack, GFP_ATOMIC); > > @@ -1113,7 +1118,7 @@ > > #ifdef CONFIG_TOUCHSCREEN_USB_NEXIO > [DEVTYPE_NEXIO] = { > - .rept_size = 128, > + .rept_size = 1024, > .irq_always = true, > .read_data = nexio_read_data, > .init = nexio_init, > > > -- Jiri Kosina SUSE Labs, Novell Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: usbtouchscreen: support bigger iNexio touchscreens @ 2010-03-16 13:26 ` Jiri Kosina 0 siblings, 0 replies; 3+ messages in thread From: Jiri Kosina @ 2010-03-16 13:26 UTC (permalink / raw) To: Ondrej Zary Cc: Oliver Neukum, linux-usb, daniel.ritz, linux-kernel, Dmitry Torokhov, linux-input [ adding some more relevant CCs ] On Tue, 16 Mar 2010, Ondrej Zary wrote: > Bigger Nexio touchscreens not only send more data but also the header values > are modified somehow. Fix the header somehow (it's a guesswork but it works > at least on one 46" touchscreen with 2.00SMS firmware) and also increase > rept_size. > > Signed-off-by: Ondrej Zary <linux@rainbow-software.org> > > --- linux-2.6.34-rc1-orig/drivers/input/touchscreen/usbtouchscreen.c 2010-03-16 13:34:51.000000000 +0100 > +++ linux-2.6.34-rc1/drivers/input/touchscreen/usbtouchscreen.c 2010-03-16 13:46:15.000000000 +0100 > @@ -858,6 +858,11 @@ > if ((pkt[0] & 0xe0) != 0xe0) > return 0; > > + if (be16_to_cpu(packet->data_len) > 0xff) > + packet->data_len = cpu_to_be16(be16_to_cpu(packet->data_len) - 0x100); > + if (be16_to_cpu(packet->x_len) > 0xff) > + packet->x_len = cpu_to_be16(be16_to_cpu(packet->x_len) - 0x80); > + > /* send ACK */ > ret = usb_submit_urb(priv->ack, GFP_ATOMIC); > > @@ -1113,7 +1118,7 @@ > > #ifdef CONFIG_TOUCHSCREEN_USB_NEXIO > [DEVTYPE_NEXIO] = { > - .rept_size = 128, > + .rept_size = 1024, > .irq_always = true, > .read_data = nexio_read_data, > .init = nexio_init, > > > -- Jiri Kosina SUSE Labs, Novell Inc. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-16 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 13:23 usbtouchscreen: support bigger iNexio touchscreens Ondrej Zary
[not found] ` <201003161423.54495.linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org>
2010-03-16 13:26 ` Jiri Kosina
2010-03-16 13:26 ` Jiri Kosina
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.