9125da12c9c152e8d5590325bd12c7f2ae015409
[openwrt.git] / target / linux / s3c24xx / patches-2.6.30 / 052-touchscreen_filter.patch
1 Index: linux-2.6.30-rc6/drivers/input/touchscreen/Kconfig
2 ===================================================================
3 --- linux-2.6.30-rc6.orig/drivers/input/touchscreen/Kconfig 2009-05-18 19:08:31.000000000 +0200
4 +++ linux-2.6.30-rc6/drivers/input/touchscreen/Kconfig 2009-05-18 19:08:32.000000000 +0200
5 @@ -11,6 +11,54 @@
6
7 if INPUT_TOUCHSCREEN
8
9 +menuconfig TOUCHSCREEN_FILTER
10 + boolean "Touchscreen Filtering"
11 + depends on INPUT_TOUCHSCREEN
12 + select TOUCHSCREEN_FILTER_GROUP
13 + select TOUCHSCREEN_FILTER_MEDIAN
14 + select TOUCHSCREEN_FILTER_MEAN
15 + select TOUCHSCREEN_FILTER_LINEAR
16 + help
17 + Select this to include kernel touchscreen filter support. The filters
18 + can be combined in any order in your machine init and the parameters
19 + for them can also be set there.
20 +
21 +if TOUCHSCREEN_FILTER
22 +
23 +config TOUCHSCREEN_FILTER_GROUP
24 + bool "Group Touchscreen Filter"
25 + depends on INPUT_TOUCHSCREEN && TOUCHSCREEN_FILTER
26 + default Y
27 + help
28 + Say Y here if you want to use the Group touchscreen filter, it
29 + avoids using atypical samples.
30 +
31 +config TOUCHSCREEN_FILTER_MEDIAN
32 + bool "Median Average Touchscreen Filter"
33 + depends on INPUT_TOUCHSCREEN && TOUCHSCREEN_FILTER
34 + default Y
35 + help
36 + Say Y here if you want to use the Median touchscreen filter, it's
37 + highly effective if you data is noisy with occasional excursions.
38 +
39 +config TOUCHSCREEN_FILTER_MEAN
40 + bool "Mean Average Touchscreen Filter"
41 + depends on INPUT_TOUCHSCREEN && TOUCHSCREEN_FILTER
42 + default Y
43 + help
44 + Say Y here if you want to use the Mean touchscreen filter, it
45 + can further improve decent quality data by removing jitter
46 +
47 +config TOUCHSCREEN_FILTER_LINEAR
48 + bool "Linear Touchscreen Filter"
49 + depends on INPUT_TOUCHSCREEN && TOUCHSCREEN_FILTER
50 + default Y
51 + help
52 + Say Y here if you want to use the Linear touchscreen filter, it
53 + enables the use of calibration data for the touchscreen.
54 +
55 +endif
56 +
57 config TOUCHSCREEN_ADS7846
58 tristate "ADS7846/TSC2046 and ADS7843 based touchscreens"
59 depends on SPI_MASTER
60 Index: linux-2.6.30-rc6/drivers/input/touchscreen/Makefile
61 ===================================================================
62 --- linux-2.6.30-rc6.orig/drivers/input/touchscreen/Makefile 2009-05-18 19:08:31.000000000 +0200
63 +++ linux-2.6.30-rc6/drivers/input/touchscreen/Makefile 2009-05-18 19:08:32.000000000 +0200
64 @@ -38,3 +38,8 @@
65 obj-$(CONFIG_TOUCHSCREEN_WM97XX_MAINSTONE) += mainstone-wm97xx.o
66 obj-$(CONFIG_TOUCHSCREEN_WM97XX_ZYLONITE) += zylonite-wm97xx.o
67 obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c2410_ts.o
68 +obj-$(CONFIG_TOUCHSCREEN_FILTER) += ts_filter_chain.o
69 +obj-$(CONFIG_TOUCHSCREEN_FILTER_GROUP) += ts_filter_group.o
70 +obj-$(CONFIG_TOUCHSCREEN_FILTER_LINEAR) += ts_filter_linear.o
71 +obj-$(CONFIG_TOUCHSCREEN_FILTER_MEDIAN) += ts_filter_median.o
72 +obj-$(CONFIG_TOUCHSCREEN_FILTER_MEAN) += ts_filter_mean.o
This page took 0.053867 seconds and 3 git commands to generate.