关于最新触摸屏触摸方向相反更新补丁
补丁下载地址:http://pan.baidu.com/s/1kTooEYN
补丁内容:
From 7c04c09aeb2a7cdc048aadc0d263849e5f801620 Mon Sep 17 00:00:00 2001
From: huangdongchao <huangdongchao@9tripod.com>
Date: Fri, 23 Jan 2015 19:42:03 +0800
Subject: [PATCH] [kernel] fit for new tp, point x bug
---
kernel/drivers/input/touchscreen/ft5x06_ts.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/drivers/input/touchscreen/ft5x06_ts.c b/kernel/drivers/input/touchscreen/ft5x06_ts.c
index cf58eb7..d4662a9 100644
--- a/kernel/drivers/input/touchscreen/ft5x06_ts.c
+++ b/kernel/drivers/input/touchscreen/ft5x06_ts.c
@@ -981,6 +981,8 @@ static int ft5x0x_read_data(void)
#if 1 //lqm test
event->au16_x = (s16)(buf[3 + 6*i] & 0x0F)<<8 | (s16)buf[4 + 6*i];
event->au16_y = (s16)(buf[5 + 6*i] & 0x0F)<<8 | (s16)buf[6 + 6*i];
+
+ event->au16_x = 800 - event->au16_x; //hdc added 20150123
#else
event->au16_x = (s16)(buf[5 + 6*i] & 0x0F)<<8 | (s16)buf[6 + 6*i];
event->au16_y = (s16)(buf[3 + 6*i] & 0x0F)<<8 | (s16)buf[4 + 6*i];
--
1.7.9.5
|