summaryrefslogtreecommitdiff
path: root/meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-10-24 21:42:37 +0000
committerRichard Purdie <richard@openedhand.com>2007-10-24 21:42:37 +0000
commitfb61cf3249b6dbfe5246841865e7f2e698cd9f26 (patch)
treebd8036a8d6e99e029e35b2644ae0bdd38ac37013 /meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
parent09f4b201f0eebc9c1c130662c59f18b3b8468e1f (diff)
downloadopenembedded-core-fb61cf3249b6dbfe5246841865e7f2e698cd9f26.tar.gz
openembedded-core-fb61cf3249b6dbfe5246841865e7f2e698cd9f26.tar.bz2
openembedded-core-fb61cf3249b6dbfe5246841865e7f2e698cd9f26.tar.xz
openembedded-core-fb61cf3249b6dbfe5246841865e7f2e698cd9f26.zip
Add recipe to build linux-zylonite 2.6.14 kernels
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2955 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch')
-rw-r--r--meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch b/meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
new file mode 100644
index 000000000..8d02f0365
--- /dev/null
+++ b/meta/packages/linux/linux-zylonite-2.6.14/rp_ts_sync.patch
@@ -0,0 +1,37 @@
+---
+ drivers/input/touchscreen/mhn_audio_touch.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+Index: linux-2.6.14/drivers/input/touchscreen/mhn_audio_touch.c
+===================================================================
+--- linux-2.6.14.orig/drivers/input/touchscreen/mhn_audio_touch.c 2007-10-24 23:02:47.000000000 +0100
++++ linux-2.6.14/drivers/input/touchscreen/mhn_audio_touch.c 2007-10-24 23:04:36.000000000 +0100
+@@ -94,6 +94,7 @@ static int codec_zy_ts_evt_add(codec_zy_
+ }
+ pre_press = pressure;
+ input_report_abs(ts->idev, ABS_PRESSURE, pressure & 0xfff);
++ input_sync(ts->idev);
+ #ifdef CONFIG_IPM
+ ipm_event_notify(IPM_EVENT_UI, IPM_EVENT_DEVICE_TSI, NULL, 0);
+ #endif
+@@ -106,6 +107,7 @@ static int codec_zy_ts_evt_add(codec_zy_
+ static void codec_zy_ts_evt_release(codec_zy_ts_t* ts)
+ {
+ input_report_abs(ts->idev, ABS_PRESSURE, 0);
++ input_sync(ts->idev);
+ #ifdef CONFIG_IPM
+ ipm_event_notify(IPM_EVENT_UI, IPM_EVENT_DEVICE_TSI, NULL, 0);
+ #endif
+@@ -252,10 +254,8 @@ static int alsa_ts_init( void )
+ codec_zy_ts_input.name = "codec zy touchscreen";
+ codec_zy_ts_input.open = codec_zy_ts_input_open;
+ codec_zy_ts_input.close = codec_zy_ts_input_close;
+- __set_bit(EV_ABS, codec_zy_ts_input.evbit);
+- __set_bit(ABS_X, codec_zy_ts_input.absbit);
+- __set_bit(ABS_Y, codec_zy_ts_input.absbit);
+- __set_bit(ABS_PRESSURE, codec_zy_ts_input.absbit);
++ codec_zy_ts_input.evbit[0] = BIT(EV_ABS);
++ codec_zy_ts_input.absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);
+ input_register_device(&codec_zy_ts_input);
+
+ return 0;