Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[vuplus_openembedded] / packages / linux / linux-openmoko-2.6.28 / 0008-Send-pen-up-events-faster-side-effect-improve-illu.patch
1 From 5e50f877f7ef2309a5318fc6ceed4903d1d80a64 Mon Sep 17 00:00:00 2001
2 From: Nelson Castillo <arhuaco@freaks-unidos.net>
3 Date: Thu, 29 Jan 2009 14:27:25 +0000
4 Subject: [PATCH 8/8] Send pen-up events faster (side effect: improve illume keyboard responsiveness)
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=utf-8
7 Content-Transfer-Encoding: 8bit
8
9 We were waiting 60ms before reporting a pen-up event to avoid
10 jitter. Now we wait 8ms (actually 5 with HZ == 200).
11
12 Thanks to Marco Trevisan for testing and pointing out that there was a
13 problem that could be spotted with the illume keyboard.
14 Note that I used the Terminal mode of the keyboard (no dictionary)
15 for tests.
16
17 I also used touch_test.py and the jitter doesn't seem to be an
18 issue when drawing lines with the finger.
19
20 Reported-by: Marco Trevisan (TreviƱo) <mail@3v1n0.net>
21 Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
22 ---
23  drivers/input/touchscreen/s3c2410_ts.c |    2 +-
24  1 files changed, 1 insertions(+), 1 deletions(-)
25
26 diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
27 index bc9b410..a37adc9 100644
28 --- a/drivers/input/touchscreen/s3c2410_ts.c
29 +++ b/drivers/input/touchscreen/s3c2410_ts.c
30 @@ -96,7 +96,7 @@ MODULE_LICENSE("GPL");
31  
32  static char *s3c2410ts_name = "s3c2410 TouchScreen";
33  
34 -#define TS_RELEASE_TIMEOUT (HZ >> 4)           /* ~ 60 milliseconds */
35 +#define TS_RELEASE_TIMEOUT (HZ >> 7 ? HZ >> 7 : 1) /* 8ms (5ms if HZ is 200) */
36  #define TS_EVENT_FIFO_SIZE (2 << 6) /* must be a power of 2 */
37  
38  #define TS_STATE_STANDBY 0 /* initial state */
39 -- 
40 1.5.2.2
41