linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hx4700: fix hx4700 touchscreen pressure values
@ 2009-11-18  0:22 Paul Parsons
  2009-11-18  3:03 ` Eric Miao
  2009-11-18 17:28 ` Pavel Machek
  0 siblings, 2 replies; 9+ messages in thread
From: Paul Parsons @ 2009-11-18  0:22 UTC (permalink / raw)
  To: linux-arm-kernel

> Does pressure actually work as expected -- that is not inverted?
> Because I need this patch on spitz...  but it may break your
> machine...

You are right, the pressure values were being inverted on my hx4700.
Pressing hard generates somewhat lower Rt values than pressing lightly.

Since typical hx4700 Rt values are close to (pressure_max/2) anyway,
the inverted and non-inverted values were not very different.
For example:

Rt      ts->pressure_max-Rt
599     425
562     462
588     436
570     454

So by all means submit your ads7846.c patch; it will not break hx4700.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH] hx4700: fix hx4700 touchscreen pressure values
@ 2009-11-14 16:54 Paul Parsons
  2009-11-16 16:37 ` Eric Miao
  2009-11-17 11:45 ` Pavel Machek
  0 siblings, 2 replies; 9+ messages in thread
From: Paul Parsons @ 2009-11-14 16:54 UTC (permalink / raw)
  To: linux-arm-kernel

hx4700 touchscreen events were being dropped in ads7846_rx() because their pressure values consistently exceeded the platform maximum of 512; a sample of 256 pressure values were in the range 531 to 815. Doubling the platform maximum to 1024 allows hx4700 touchscreen events to pass the test.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
---
--- linux-2.6.32-rc7/arch/arm/mach-pxa/hx4700.c.orig	2009-11-14 15:19:59.294682971 +0000
+++ linux-2.6.32-rc7/arch/arm/mach-pxa/hx4700.c	2009-11-14 15:20:14.677951232 +0000
@@ -604,7 +604,7 @@ static struct platform_device gpio_vbus 
 static const struct ads7846_platform_data tsc2046_info = {
 	.model            = 7846,
 	.vref_delay_usecs = 100,
-	.pressure_max     = 512,
+	.pressure_max     = 1024,
 	.debounce_max     = 10,
 	.debounce_tol     = 3,
 	.debounce_rep     = 1,

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-11-20 18:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18  0:22 [PATCH] hx4700: fix hx4700 touchscreen pressure values Paul Parsons
2009-11-18  3:03 ` Eric Miao
2009-11-18 17:28 ` Pavel Machek
2009-11-18 17:39   ` Dmitry Torokhov
2009-11-18 17:46     ` Dmitry Torokhov
2009-11-20 18:24       ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2009-11-14 16:54 Paul Parsons
2009-11-16 16:37 ` Eric Miao
2009-11-17 11:45 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).