OSDN Git Service

android-x86/external-tslib.git
10 years agots_calibrate : Truncate pointercal file if it already exists. jb-x86 kitkat-x86
Masaki Muranaka [Mon, 12 Aug 2013 14:40:06 +0000 (23:40 +0900)]
ts_calibrate : Truncate pointercal file if it already exists.

This fix is partly done by 1fd999ec678e. But not completed.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.jp>
11 years agots.env: auto detect TSLIB_TSDEVICE ics-x86
Chih-Wei Huang [Tue, 26 Feb 2013 18:08:15 +0000 (02:08 +0800)]
ts.env: auto detect TSLIB_TSDEVICE

11 years agots_calibrate: Accept touchscreens using BTN_MOUSE events instead of BTN_TOUCH
Gernot Hillier [Mon, 30 Apr 2012 14:38:49 +0000 (16:38 +0200)]
ts_calibrate: Accept touchscreens using BTN_MOUSE events instead of BTN_TOUCH

ts_input_read was already extended to accept BTN_MOUSE events, however
some startup checks in check_fd() were not extended accordingly.

12 years agoandroid: update for ics-x86
Chih-Wei Huang [Wed, 22 Feb 2012 10:27:16 +0000 (18:27 +0800)]
android: update for ics-x86

A target that needs tslib should just inherit tslib.mk.

12 years agoMerge branch 'upstream-master' into gingerbread-x86
Bryan Hundven [Sun, 29 Jan 2012 09:30:33 +0000 (01:30 -0800)]
Merge branch 'upstream-master' into gingerbread-x86

12 years agots_calibrate: Truncate pointercal file if it already exists
Josh Watts [Thu, 4 Aug 2011 14:04:09 +0000 (10:04 -0400)]
ts_calibrate: Truncate pointercal file if it already exists

Signed-off-by: Josh Watts <jwatts@d3engineering.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
12 years agoMerge branch 'master' into gingerbread-x86
Bryan Hundven [Sun, 23 Oct 2011 23:19:22 +0000 (16:19 -0700)]
Merge branch 'master' into gingerbread-x86

12 years agots_load_module: don't reference handle after info is freed
Christopher Larson [Thu, 20 Oct 2011 15:49:47 +0000 (08:49 -0700)]
ts_load_module: don't reference handle after info is freed

Signed-off-by: Christopher Larson <kergoth@gmail.com>
12 years agots_close: run the fini op on plugins
Christopher Larson [Thu, 20 Oct 2011 15:46:43 +0000 (08:46 -0700)]
ts_close: run the fini op on plugins

Fixes #3. Also dlcloses the handle if the plugin was shared, as is done
when a failed module load occurs.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
12 years agoSupport reading coordinates from multitouch devices.
Florian Boor [Fri, 1 Apr 2011 21:30:21 +0000 (23:30 +0200)]
Support reading coordinates from multitouch devices.

Signed-off-by: Florian Boor <florian@kernelconcepts.de>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
12 years agoCleanup some mistakes made on the initial port.
Bryan Hundven [Mon, 4 Jul 2011 18:22:26 +0000 (11:22 -0700)]
Cleanup some mistakes made on the initial port.

- ts_settings.c should have been ts_setting.c
- Add updated config.h (and remove it from .gitignore.

NOTE: I will go back and cleanup the initial commit and other
changes with an IS_ANDROID_X86 ifdef so that merging from upstream
will be cleaner.

12 years agoPort Android-x86 changes to newer tslib.
Bryan Hundven [Mon, 4 Jul 2011 08:49:35 +0000 (01:49 -0700)]
Port Android-x86 changes to newer tslib.

12 years agots_harvest: fix a few compiler warnings
Chris Larson [Fri, 1 Jul 2011 16:30:17 +0000 (09:30 -0700)]
ts_harvest: fix a few compiler warnings

Signed-off-by: Chris Larson <chris_larson@mentor.com>
12 years agoplugins: new touchkit driver, reposted
Wolfram Sang [Sun, 13 Mar 2011 11:48:00 +0000 (12:48 +0100)]
plugins: new touchkit driver, reposted

Original submission from Frédéric Salabartan:

https://lists.berlios.de/pipermail/tslib-general/2009-July/000212.html

[w.sang] - updated to latest git (Makefile.am, configure.ac)
 - used Lindent on the c-files and removed C++ comments
 - fix two build warnings
 - removed egalax-driver, should be included in input-raw.c

<there was no SoB by Frederic>
Tested-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
12 years agoplugins: add driver for DMC touchscreens
Wolfram Sang [Sun, 13 Mar 2011 11:47:59 +0000 (12:47 +0100)]
plugins: add driver for DMC touchscreens

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
12 years agots_open: first try to open read/write, then read-only.
Wolfram Sang [Sun, 13 Mar 2011 11:47:58 +0000 (12:47 +0100)]
ts_open: first try to open read/write, then read-only.

An upcoming driver (dmc) will need O_RDWR. In case of permission
problems, fall back to O_RDONLY.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
12 years agoMerge pull request #6 from morphis/master
Christopher Larson [Thu, 19 May 2011 03:44:40 +0000 (20:44 -0700)]
Merge pull request #6 from morphis/master

tslib update for plugin cy8mrln-palmpre

12 years agoMerge branch 'for-upstream'
Simon Busch [Wed, 18 May 2011 18:34:35 +0000 (20:34 +0200)]
Merge branch 'for-upstream'

12 years agocy8mrln-palmpre: some style corrections
Simon Busch [Wed, 18 May 2011 18:29:38 +0000 (20:29 +0200)]
cy8mrln-palmpre: some style corrections

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agoRelax EV_VERSION check
Martin Jansa [Wed, 12 Jan 2011 13:36:35 +0000 (14:36 +0100)]
Relax EV_VERSION check

Fail only if version of running kernel is lower than the EV_VERSION from the
kernel headers, rather than expecting an exact match.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agocy8mrln-palmpre: Discard malformed frames
Frederik 'playya' Sdun [Tue, 18 Jan 2011 23:51:28 +0000 (00:51 +0100)]
cy8mrln-palmpre: Discard malformed frames

13 years agocy8mrln-palmpre: Add vim modeline to force tabs
Frederik 'playya' Sdun [Tue, 18 Jan 2011 21:24:30 +0000 (22:24 +0100)]
cy8mrln-palmpre: Add vim modeline to force tabs

13 years agoplugins: cy8mrln-palmpre: fix include of cy8mrln header file
Simon Busch [Tue, 11 Jan 2011 11:16:06 +0000 (12:16 +0100)]
plugins: cy8mrln-palmpre: fix include of cy8mrln header file

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoplugins: palmpre-cy8mrln: fix compilation issues
Simon Busch [Tue, 11 Jan 2011 11:45:33 +0000 (12:45 +0100)]
plugins: palmpre-cy8mrln: fix compilation issues

Please boys, test your code minimal for compilation when commiting!

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoRevert "Enable debug option for all components"
Chris Larson [Tue, 21 Dec 2010 15:19:51 +0000 (08:19 -0700)]
Revert "Enable debug option for all components"

This reverts commit 9c3742a8d8a829ec746e0a974aa30fb5dd0e3d1a.

13 years agocy8mrln-palmpre: improve interpolation till the edges
Thomas Zimmermann [Thu, 11 Nov 2010 09:04:12 +0000 (10:04 +0100)]
cy8mrln-palmpre: improve interpolation till the edges

At the edges the pressure is reduced because not the whole finger is on the
screen. Normally the pressure is about 50 and if it's not, then the finger is
not completly on the screen and we have to simulate the real peak with a pressure
of (default_pressure - actual_pressure).

Also this patch introduces two new config parameters:
pressure: for the default_pressure (default 60)
gesture_height: for the height of the gesturearea in fields (default 1)

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre.c: make x grow from left to right and change calculation for OFFSET...
Thomas Zimmermann [Wed, 10 Nov 2010 15:00:00 +0000 (16:00 +0100)]
cy8mrln-palmpre.c: make x grow from left to right and change calculation for OFFSET and DELTA

* x=0 was upper right field, now it's upper left field
* OFFSET is now half of DELTA and DELTA is size of one field

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: remove cy8mrln header
Simon Busch [Fri, 22 Oct 2010 17:30:13 +0000 (19:30 +0200)]
cy8mrln-palmpre: remove cy8mrln header

13 years agocy8mrln-palmpre: clean indentation and add some ifdef's
Simon Busch [Fri, 22 Oct 2010 17:20:02 +0000 (19:20 +0200)]
cy8mrln-palmpre: clean indentation and add some ifdef's

13 years agoFix exporting of ts_error_fn
Paulius Zaleckas [Thu, 28 Oct 2010 16:42:58 +0000 (19:42 +0300)]
Fix exporting of ts_error_fn

Without including tslib.h GCC doesn't export ts_error_fn symbol:
$ gcc -lts test.c -o test
/tmp/ccUi1g92.o: In function `main':
test.c:(.text+0x1a): undefined reference to `ts_error_fn'
collect2: ld returned 1 exit status

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agocy8mrln-palmpre: New way to simple interpolate values
Frederik 'playya' Sdun [Fri, 8 Oct 2010 17:27:55 +0000 (19:27 +0200)]
cy8mrln-palmpre: New way to simple interpolate values

13 years agocy8mrln-palmpre: init already requires module.dev to be set
Frederik 'playya' Sdun [Thu, 7 Oct 2010 00:17:11 +0000 (02:17 +0200)]
cy8mrln-palmpre: init already requires module.dev to be set

13 years agocy8mrln-palmpre: add sensor_offset_[xy] and
Frederik 'playya' Sdun [Wed, 6 Oct 2010 02:36:18 +0000 (04:36 +0200)]
cy8mrln-palmpre: add sensor_offset_[xy] and
sensor_delta_[xy].
remove some unused code

13 years agocy8mrln-palmpre: Remove pressure multiplicator.
Frederik 'playya' Sdun [Tue, 5 Oct 2010 21:30:26 +0000 (23:30 +0200)]
cy8mrln-palmpre: Remove pressure multiplicator.
Use linear module

13 years agolinear: Add options for ts.conf
Frederik 'playya' Sdun [Tue, 5 Oct 2010 21:29:48 +0000 (23:29 +0200)]
linear: Add options for ts.conf

13 years agocy8mrln-palmpre: Add ts_pressure_mul configure option
Frederik 'playya' Sdun [Tue, 5 Oct 2010 19:43:32 +0000 (21:43 +0200)]
cy8mrln-palmpre: Add ts_pressure_mul configure option

13 years agocy8mrln-palmpre: Remove delta correction for x/y
Frederik 'playya' Sdun [Mon, 4 Oct 2010 11:09:25 +0000 (13:09 +0200)]
cy8mrln-palmpre: Remove delta correction for x/y

13 years agocy8mrln-palmpre: do interpolation from last commit in the right way ;)
Thomas Zimmermann [Sat, 2 Oct 2010 17:15:36 +0000 (19:15 +0200)]
cy8mrln-palmpre: do interpolation from last commit in the right way ;)

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: new way of interpolating the position
Thomas Zimmermann [Sat, 2 Oct 2010 17:04:37 +0000 (19:04 +0200)]
cy8mrln-palmpre: new way of interpolating the position

* substract half of maximum pressure from all surrounding fields

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: remove reference parameter from interpolate
Frederik 'playya' Sdun [Sun, 3 Oct 2010 19:13:51 +0000 (21:13 +0200)]
cy8mrln-palmpre: remove reference parameter from interpolate
update indentation

13 years agocy8mrln-palmpre: Some code cleanup and normalize
Frederik 'playya' Sdun [Wed, 29 Sep 2010 18:43:19 +0000 (20:43 +0200)]
cy8mrln-palmpre: Some code cleanup and normalize
field while updating references

13 years agocy8mrln-palmpre: A lot of code cleanup and return
Frederik 'playya' Sdun [Wed, 29 Sep 2010 15:43:12 +0000 (17:43 +0200)]
cy8mrln-palmpre: A lot of code cleanup and return
samples with pressure = 0 if a finger left the screen

13 years agocy8mrln-palmpre: Add configuration to the info
Frederik 'playya' Sdun [Tue, 28 Sep 2010 22:15:58 +0000 (00:15 +0200)]
cy8mrln-palmpre: Add configuration to the info
struct and add noise and ts_pressure option

13 years agocy8mrln-palmpre: use fixed value for pressure
Frederik 'playya' Sdun [Mon, 21 Jun 2010 20:45:05 +0000 (22:45 +0200)]
cy8mrln-palmpre: use fixed value for pressure

13 years agocy8mrln-palmpre: read for the null values until we get some
Simon Busch [Fri, 21 May 2010 09:23:26 +0000 (11:23 +0200)]
cy8mrln-palmpre: read for the null values until we get some

13 years agoEnable debug option for all components
Simon Busch [Fri, 21 May 2010 09:13:58 +0000 (11:13 +0200)]
Enable debug option for all components

13 years agocy8mrln-palmpre: adjust noice value to sort out more unimportant samples
Simon Busch [Fri, 21 May 2010 08:38:09 +0000 (10:38 +0200)]
cy8mrln-palmpre: adjust noice value to sort out more unimportant samples

13 years agocy8mrln-palmpre: initalize all samples with proper values
Simon Busch [Fri, 21 May 2010 08:36:54 +0000 (10:36 +0200)]
cy8mrln-palmpre: initalize all samples with proper values

13 years agocy8mrln-palmpre: add newline to the debug output
Thomas Zimmermann [Fri, 21 May 2010 06:57:26 +0000 (08:57 +0200)]
cy8mrln-palmpre: add newline to the debug output

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agoRevert "cy8mrln-palmpre: increment samp only on real event"
Thomas Zimmermann [Fri, 21 May 2010 06:56:29 +0000 (08:56 +0200)]
Revert "cy8mrln-palmpre: increment samp only on real event"

This reverts commit 36c413dc9941cf7116deac4b1e96ebbeaadf3aa3.

13 years agocy8mrln-palmpre: only report valid samples and nothing more
Simon Busch [Fri, 21 May 2010 08:00:30 +0000 (10:00 +0200)]
cy8mrln-palmpre: only report valid samples and nothing more

13 years agocy8mrln-palmpre: fix typing error
Simon Busch [Fri, 21 May 2010 07:41:09 +0000 (09:41 +0200)]
cy8mrln-palmpre: fix typing error

13 years agocy8mrln-palmpre: print out just another value
Simon Busch [Fri, 21 May 2010 07:37:43 +0000 (09:37 +0200)]
cy8mrln-palmpre: print out just another value

13 years agocy8mrln-palmpre: prevent segfault by setting timestamp for sample before incrementing
Simon Busch [Fri, 21 May 2010 07:32:15 +0000 (09:32 +0200)]
cy8mrln-palmpre: prevent segfault by setting timestamp for sample before incrementing

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agocy8mrln-palmpre: increment samp only on real event
Thomas Zimmermann [Thu, 20 May 2010 14:24:32 +0000 (16:24 +0200)]
cy8mrln-palmpre: increment samp only on real event

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocy8mrln-palmpre: enable debug mode
Simon Busch [Thu, 20 May 2010 11:36:56 +0000 (13:36 +0200)]
cy8mrln-palmpre: enable debug mode

13 years agocy8mrln-palmpre: be not verbose on kernel side per default
Simon Busch [Wed, 19 May 2010 08:46:08 +0000 (10:46 +0200)]
cy8mrln-palmpre: be not verbose on kernel side per default

13 years agocy8mrln-palmpre: add error message when a configuration function fails
Simon Busch [Wed, 19 May 2010 07:16:01 +0000 (09:16 +0200)]
cy8mrln-palmpre: add error message when a configuration function fails

13 years agocy8mrln-palmpre: add cy8mrln.h as local include
Simon Busch [Thu, 13 May 2010 16:42:46 +0000 (18:42 +0200)]
cy8mrln-palmpre: add cy8mrln.h as local include

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agocy8mrnln-palmpre: fix compile errors
Simon Busch [Fri, 7 May 2010 17:54:13 +0000 (19:54 +0200)]
cy8mrnln-palmpre: fix compile errors

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agocy8mrln-palmpre: remove unused struct
Thomas Zimmermann [Wed, 5 May 2010 17:18:48 +0000 (19:18 +0200)]
cy8mrln-palmpre: remove unused struct

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocymrln-palmpre: add coordinates calculation
Thomas Zimmermann [Wed, 5 May 2010 17:10:23 +0000 (19:10 +0200)]
cymrln-palmpre: add coordinates calculation

Signed-off-by: Thomas Zimmermann <ml@vdm-design.de>
13 years agocy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen
Frederik 'playya' Sdun [Tue, 4 May 2010 11:18:22 +0000 (13:18 +0200)]
cy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen

13 years agoFix wrong buffer size passed to strncpy
Michael Heimpold [Mon, 4 Oct 2010 19:54:24 +0000 (21:54 +0200)]
Fix wrong buffer size passed to strncpy

Use a define which represents the destination buffer instead
of the string length of the source string.
Also, instead of a call to memset use a faster assignment.

Signed-off-by: Michael Heimpold <michael.heimpold -at- s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoFix current values for input-raw
Teresa Gamez [Mon, 4 Oct 2010 09:45:14 +0000 (11:45 +0200)]
Fix current values for input-raw

The input driver only sends new ABS_X and ABS_Y events when the value changes,
even after a pen up and a pen down.

If we have the same y value after releasing and touching again, there will be
no ABS_Y event sent and the sample returns at an EV_SYN the value x,0.

So we don't change the current values at pen_up, but a flag that sets the sample
values to 0.

Signed-off-by: Teresa Gamez <t.gamez@phytec.de>
Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agoAdd bits to conditionalize VT_WAITACTIVE usage
Chris Larson [Sat, 4 Sep 2010 03:41:22 +0000 (20:41 -0700)]
Add bits to conditionalize VT_WAITACTIVE usage

Per harry-F, wrap VT_WAITACTIVE bits in a #ifndef TSLIB_NO_VT_WAITACTIVE, to
allow distribution folks to define that via the cflags/cppflags if necessary.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agocy8mrln-palmpre: this merges all recent changes from the tslib/cy8mrln branch
Simon Busch [Wed, 2 Jun 2010 17:11:20 +0000 (19:11 +0200)]
cy8mrln-palmpre: this merges all recent changes from the tslib/cy8mrln branch

In detail this includes the following changes:
 * be not verbose on kernel side per default (verbose = 0)
 * only report valid samples and no more
 * adjust noise value to sort out more no valid samples
 * prevent runtime errors in set-methods and be more verbose on errors
 * remove unused code
 * initialize samples with null values on start
 * read null values on startup until we got some

Signed-off-by: Simon Busch <morphis@gravedo.de>
13 years agoMerge branch 'playya'
Chris Larson [Tue, 11 May 2010 14:53:48 +0000 (07:53 -0700)]
Merge branch 'playya'

* playya:
  cy8mrln-palmpre: remove unused struct
  cymrln-palmpre: add coordinates calculation
  cy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen
  .gitignore++
  Add .gitignore

13 years agoDrop cvsignore files
Chris Larson [Tue, 11 May 2010 14:53:31 +0000 (07:53 -0700)]
Drop cvsignore files

Signed-off-by: Chris Larson <clarson@kergoth.com>
13 years agoDrop $Id lines, now that we are using git
Chris Larson [Tue, 11 May 2010 01:24:23 +0000 (18:24 -0700)]
Drop $Id lines, now that we are using git

Signed-off-by: Chris Larson <clarson@kergoth.com>
13 years agocy8mrln-palmpre: remove unused struct
Thomas Zimmermann [Wed, 5 May 2010 17:18:48 +0000 (19:18 +0200)]
cy8mrln-palmpre: remove unused struct

Signed-off-by: Thomas Zimmermann <zimmermann@vdm-design.de>
13 years agocymrln-palmpre: add coordinates calculation
Thomas Zimmermann [Wed, 5 May 2010 17:10:23 +0000 (19:10 +0200)]
cymrln-palmpre: add coordinates calculation

Signed-off-by: Thomas Zimmermann <ml@vdm-design.de>
13 years agocy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen
Frederik 'playya' Sdun [Tue, 4 May 2010 11:18:22 +0000 (13:18 +0200)]
cy8mrln-palmpre: New plugin for the Palm Pre's Touchscreen

13 years ago.gitignore++
Frederik 'playya' Sdun [Tue, 4 May 2010 11:13:56 +0000 (13:13 +0200)]
.gitignore++

13 years agoAdd .gitignore
Frederik 'playya' Sdun [Tue, 4 May 2010 10:10:56 +0000 (12:10 +0200)]
Add .gitignore

14 years agoApply patch from solar to also create a tslib.pc.
Chris Larson [Mon, 8 Feb 2010 23:38:52 +0000 (23:38 +0000)]
Apply patch from solar to also create a tslib.pc.

tslib-$LT_RELEASE.pc will die in a future version, as it's unnecessary.
They'll both stay around for version 1.1 and 1.2.  1.3 or higher will remove
it, unless there's a real need (unlikely).

Signed-off-by: Chris Larson <clarson@kergoth.com>
14 years agoSupport static modules aka modules which are embedded inside libts
Chris Larson [Mon, 25 Jan 2010 21:26:38 +0000 (21:26 +0000)]
Support static modules aka modules which are embedded inside libts

This can be usefull for statically linked application or platforms
where dlopen(3) is not available.

A module will be compiled statically if it was requested during
./configure with --enable-$FOO=static.

Static modules will have precedence over shared ones which means
if a module is configured to be embedded inside libts it's
corresponding shared library isn't build and ignored even if
it is in $TSLIB_PLUGINDIR.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agolinear: remove useless variable initialization
Chris Larson [Mon, 25 Jan 2010 21:25:39 +0000 (21:25 +0000)]
linear: remove useless variable initialization

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agolinear: remove erroneous close(2)
Chris Larson [Mon, 25 Jan 2010 21:25:26 +0000 (21:25 +0000)]
linear: remove erroneous close(2)

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agolinear: remove unused variables
Chris Larson [Mon, 25 Jan 2010 21:25:14 +0000 (21:25 +0000)]
linear: remove unused variables

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoconfigure: disable check for c++ compiler
Chris Larson [Mon, 25 Jan 2010 21:24:57 +0000 (21:24 +0000)]
configure: disable check for c++ compiler

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoinput-raw: Handling of EVIOCGBIT() ioctl coding
Chris Larson [Wed, 30 Sep 2009 21:25:09 +0000 (21:25 +0000)]
input-raw: Handling of EVIOCGBIT() ioctl coding

Correct the coding of ioctl() when using EVIOCGBIT() macro.
Indeed, instead of a number of bits, this field requires
a size in bytes.
This bug is described in the Linux kernel drivers/input/evdev.c
file and in this webpage:
http://userweb.kernel.org/~dtor/eviocgbit-bug.html

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoAdd missing ts_option.c.
Chris Larson [Wed, 17 Jun 2009 16:25:10 +0000 (16:25 +0000)]
Add missing ts_option.c.

Inadvertantly missed a file when applying the patch from Alberto Mardegan.

Signed-off-by: Chris Larson <clarson@mvista.com>
14 years agoFaciliates usage in a different resolution from when it was calibrated.
Chris Larson [Fri, 22 May 2009 16:32:41 +0000 (16:32 +0000)]
Faciliates usage in a different resolution from when it was calibrated.

This is the first attempt to implement the possibility of using tslib even
from a graphic mode different from the one that was active when calibration
was performed.

*) Modifies ts_calibrate: now the program appends to /etc/pointercal two
additional values, i.e. x and y of current screen resolution.
*) Adds a ts_option function call to tslib API; right now this can be used to
inform tslib about current screen resolution and rotation.
*) Modifies the "linear" plugin to take into account current screen
resolution, and return values scaled accordingly.

Signed-off-by: Alberto Mardegan <mardy@sourceforge.net>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoRely on SYN-Events when pen is lifted
Chris Larson [Tue, 24 Mar 2009 18:05:15 +0000 (18:05 +0000)]
Rely on SYN-Events when pen is lifted

when the input-raw module of tslib relies on SYN-Events, it should not report
a BTN_TOUCH to upper layers before the corresponding EV_SYN was seen.

This prevents seeing two pen up events as described in my posting from
Jan, 14 2009.

Signed-off-by: Michael Heimpold <michael.heimpold@s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoPatch to make /etc/pointercal relative to systemconfdir
Chris Larson [Tue, 24 Mar 2009 18:02:37 +0000 (18:02 +0000)]
Patch to make /etc/pointercal relative to systemconfdir

While /etc/ts.conf is always relative to systemconfdir (set during ./
configure), the /etc/pointercal file is hard-coded to /etc/pointercal.
For users who wish to prefix their installation this is troublesome,
and impossible if they cannot/do not which to modify the root /etc.
The patch below resolves this by making /etc/pointercal relative to
the systemconfdir set during ./configure (or defaults to prefix/etc as
it should). This mirrors the behavior of tslib's /etc/ts.conf file.

Signed-off-by: Daniel Jabbour <daniel@laptouchinc.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoPrefix/correct some error messages in input-raw module
Chris Larson [Tue, 24 Mar 2009 17:54:45 +0000 (17:54 +0000)]
Prefix/correct some error messages in input-raw module

I guess there were some copy & paste mistakes in the error messages in the
input-raw module and BTW I unified the messages with the tslib prefix used in
other messages.

Signed-off-by: Michael Heimpold <michael.heimpold@s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agotslib fails to compile on Ubuntu 8.10+, easy patch
Chris Larson [Tue, 24 Mar 2009 17:42:34 +0000 (17:42 +0000)]
tslib fails to compile on Ubuntu 8.10+, easy patch

I noticed that gcc fails to compile the latest svn copy of tslib due
to a potentially "unsafe" use of open(). Ubuntu 8.10+, for instance,
by default enables the compiler flag -D_FORTIFY_SOURCE=2 which throws
an error on lines 253 and 255 of ts_calibrate.c. This is a pretty
minor issue, but could potentially stop some people using Ubuntu from
compiling unless they realize what's going on.

To fix this, all you need to do is set a mode in the open() call. I
patched ts_calibrate.c to set 0644 (S_IRUSR | S_IWUSR | S_IRGRP |
S_IROTH) and it compiles fine. See below.

Signed-off-by: Daniel Jabbour <daniel@laptouchinc.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoFix regularly reported absbit/keybit copy/paste bug.
Chris Larson [Sun, 22 Mar 2009 02:20:07 +0000 (02:20 +0000)]
Fix regularly reported absbit/keybit copy/paste bug.

Sorry for the delay, folks, I've been busy switching to my new position within
MontaVista.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoFix syntax errors from previous commit which broke the build, courtesy Jim Huang.
Chris Larson [Thu, 20 Nov 2008 20:53:15 +0000 (20:53 +0000)]
Fix syntax errors from previous commit which broke the build, courtesy Jim Huang.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoAdd TODO file.
Chris Larson [Thu, 20 Nov 2008 20:53:04 +0000 (20:53 +0000)]
Add TODO file.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoClean up the remnant USE_INPUT_API bits, as noted by Wolfram Sang
Chris Larson [Thu, 20 Nov 2008 16:15:41 +0000 (16:15 +0000)]
Clean up the remnant USE_INPUT_API bits, as noted by Wolfram Sang

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoKill old unused ts_read_raw_module.c
Chris Larson [Thu, 20 Nov 2008 16:15:27 +0000 (16:15 +0000)]
Kill old unused ts_read_raw_module.c

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoDefine the _CNT macros if needed.
Chris Larson [Tue, 18 Nov 2008 15:47:57 +0000 (15:47 +0000)]
Define the _CNT macros if needed.

EV_CNT & friends weren't added to linux/input.h until 2.6.24-rc1.

15 years agoClear the ts event buffer at appropriate points in ts_calibrate
Chris Larson [Thu, 13 Nov 2008 03:14:16 +0000 (03:14 +0000)]
Clear the ts event buffer at appropriate points in ts_calibrate

Fixes the issue where an accidental double-tap at one coordinate results in
having to restart the calibration, since the second tap gets read as the next
coordinate for the calibration.  Patch courtesy MontaVista Software, Inc.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoBTN_TOUCH is only *required* when the device isn't able to measure pressure,
Chris Larson [Tue, 11 Nov 2008 21:27:07 +0000 (21:27 +0000)]
BTN_TOUCH is only *required* when the device isn't able to measure pressure,
since we can also infer a press/release from the pressure value.

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agoKill AC_FUNC_MALLOC, as it's only needed when the code is calling malloc with an...
Chris Larson [Tue, 11 Nov 2008 20:37:30 +0000 (20:37 +0000)]
Kill AC_FUNC_MALLOC, as it's only needed when the code is calling malloc with an argument of zero.

15 years agoCleanup and kill syntax errors introduced by copying/pasting bits from a badly wrappe...
Chris Larson [Tue, 11 Nov 2008 20:22:25 +0000 (20:22 +0000)]
Cleanup and kill syntax errors introduced by copying/pasting bits from a badly wrapped mail patch.

15 years agoUse memset rather than bzero
Chris Larson [Tue, 11 Nov 2008 01:11:20 +0000 (01:11 +0000)]
Use memset rather than bzero

Signed-off-by: Chris Larson <clarson@kergoth.com>
15 years agots_test: add quit button
Chris Larson [Tue, 4 Nov 2008 14:54:50 +0000 (14:54 +0000)]
ts_test: add quit button

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>