Touchfilter
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
本FAQ主要介绍TouchfiLTEr及客制化方法,具体如下:
[SOLUTION]
touchfilter是mediatek TP效能優化的機制。其代碼在
alps\mediatek\protect-bsp\external\touchfilter\TouchFilter.cpp 中,
init_filter_param中會下一個ioctl 去touch driver抓設定檔. 例如以下
#define TPD_FILTER_PARA {1, 96}
extern struct tpd_filter_t tpd_filter;
static struct tpd_filter_t tpd_filter_local = TPD_FILTER_PARA;
若找不到就回傳failed.
回傳failed 不影響操作, 只是滑動時無法感受mtk優化後的速度感。
若需要添加Touchfilter的話, 可以參考
mediatek\custom\common\kernel\touchpanel\gt9xx_hotknot_scp\gt9xx_driver.c
mediatek\custom\k2v1\kernel\touchpanel\gt9xx_hotknot\scp\tpd_custom_gt9xx.h
裡面用TOUCH_FILTER macro包起來的部份
如果客戶在porting TP driver時沒有設定touch filter,那麼界面上取触摸屏幕会出现以下log
E/TouchFilter( 777): :filter is disable or not support:-1
Touchfilter值 = LCD 分辨率長/TP長度,TP長度可以通過尺子來量測,單位為厘米。
请知悉,谢谢。
