summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux/linux-zylonite-2.6.14/rp_ts_sync.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-zylonite-2.6.14/rp_ts_sync.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-zylonite-2.6.14/rp_ts_sync.patch b/meta/recipes-kernel/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
new file mode 100644
index 0000000000..8d02f0365f
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
@@ -0,0 +1,37 @@
1---
2 drivers/input/touchscreen/mhn_audio_touch.c | 8 ++++----
3 1 file changed, 4 insertions(+), 4 deletions(-)
4
5Index: linux-2.6.14/drivers/input/touchscreen/mhn_audio_touch.c
6===================================================================
7--- linux-2.6.14.orig/drivers/input/touchscreen/mhn_audio_touch.c 2007-10-24 23:02:47.000000000 +0100
8+++ linux-2.6.14/drivers/input/touchscreen/mhn_audio_touch.c 2007-10-24 23:04:36.000000000 +0100
9@@ -94,6 +94,7 @@ static int codec_zy_ts_evt_add(codec_zy_
10 }
11 pre_press = pressure;
12 input_report_abs(ts->idev, ABS_PRESSURE, pressure & 0xfff);
13+ input_sync(ts->idev);
14 #ifdef CONFIG_IPM
15 ipm_event_notify(IPM_EVENT_UI, IPM_EVENT_DEVICE_TSI, NULL, 0);
16 #endif
17@@ -106,6 +107,7 @@ static int codec_zy_ts_evt_add(codec_zy_
18 static void codec_zy_ts_evt_release(codec_zy_ts_t* ts)
19 {
20 input_report_abs(ts->idev, ABS_PRESSURE, 0);
21+ input_sync(ts->idev);
22 #ifdef CONFIG_IPM
23 ipm_event_notify(IPM_EVENT_UI, IPM_EVENT_DEVICE_TSI, NULL, 0);
24 #endif
25@@ -252,10 +254,8 @@ static int alsa_ts_init( void )
26 codec_zy_ts_input.name = "codec zy touchscreen";
27 codec_zy_ts_input.open = codec_zy_ts_input_open;
28 codec_zy_ts_input.close = codec_zy_ts_input_close;
29- __set_bit(EV_ABS, codec_zy_ts_input.evbit);
30- __set_bit(ABS_X, codec_zy_ts_input.absbit);
31- __set_bit(ABS_Y, codec_zy_ts_input.absbit);
32- __set_bit(ABS_PRESSURE, codec_zy_ts_input.absbit);
33+ codec_zy_ts_input.evbit[0] = BIT(EV_ABS);
34+ codec_zy_ts_input.absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);
35 input_register_device(&codec_zy_ts_input);
36
37 return 0;