]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
tsc2301 - add coordinate average filter
authorKlaus Pedersen <klaus.k.pedersen@nokia.com>
Fri, 15 Feb 2008 21:31:39 +0000 (23:31 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Feb 2008 00:20:16 +0000 (16:20 -0800)
commit3f56fb3e6a168589c6663c1a42ba64204eea64a2
treeef3a5b73d3ea12ac7548e6d1f1cf7ddd54deaf14
parente73c08e0e2a5c7948b2db71fa69e4d6a8bf220f3
tsc2301 - add coordinate average filter

To get good touchscreen results filtering is essential.
The filter does 2 things - it removes "bad" measurements,
and it uses average to smooth the coordinates.

Use the HW-filter in the tsc2301 to remove high frequency
noise (from backlight). Using 8 sample average is very
efficient.
Another source of noise is the screen, but that generates
low freq noise and thus require a SW filter. Using 4
coordinate history average is efficient.

Signed-off-by: Klaus Pedersen <klaus.k.pedersen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-n800.c
drivers/input/touchscreen/tsc2301_ts.c