[PATCH 0/3] Enable touchscreen calibration

Nelson Castillo nelsoneci at gmail.com
Mon Dec 15 06:48:33 CET 2008


This set of patches enable touchscreen calibration in kernel space.
The resulting sysfs path is:

/sys/class/i2c-adapter/i2c-0/0-0073/s3c2440-ts/calibration/[1..6]

The following program can be useful for testing.

#!/usr/bin/python
#TODO: Write me in C please (0.46 seconds!)
prefix = '/sys/class/i2c-adapter/i2c-0/0-0073/s3c2440-ts/calibration'
a = open('/etc/pointercal').readline().strip().split(" ")
for i in range(0, len(a)):
    f = open('%s/%s' % (prefix, i), 'w')
    f.write(a[i])
    f.close()

---

Nelson Castillo (3):
      Fix ts_filter_linear sysfs path
      Add Linear Filter
      Check MAX_TS_FILTER_CHAIN in ts_filter_destroy_chain


 drivers/input/touchscreen/Kconfig            |    9 +
 drivers/input/touchscreen/Makefile           |    1 
 drivers/input/touchscreen/s3c2410_ts.c       |    6 -
 drivers/input/touchscreen/ts_filter.c        |   20 ++-
 drivers/input/touchscreen/ts_filter_group.c  |    6 +
 drivers/input/touchscreen/ts_filter_linear.c |  178 ++++++++++++++++++++++++++
 drivers/input/touchscreen/ts_filter_mean.c   |    6 +
 drivers/input/touchscreen/ts_filter_median.c |    6 +
 8 files changed, 214 insertions(+), 18 deletions(-)
 create mode 100644 drivers/input/touchscreen/ts_filter_linear.c



More information about the openmoko-kernel mailing list