OSDN Git Service

cy8mrln-palmpre: remove unused struct
[android-x86/external-tslib.git] / ChangeLog
1 2006-08-16 Chris Larson <clarson@kergoth.com>
2
3         * plugins/collie.c,plugins/corgi.c: Apply patch from Richard Purdie to
4           fix the microseconds field of the timeval struct, as it was
5           inadvertantly holding milliseconds.
6
7 2005-03-01 Chris Larson <kergoth@handhelds.org>
8
9         * src/tslib-filter.h: BUGFIX: make the symbol used by the plugins,
10           tslib_parse_vars, visible.
11
12 2005-02-28 Chris Larson <kergoth@handhelds.org>
13
14         * tslib.pc.in: Add pkg-config file for tslib.
15         * configure.ac, Makefile.am: Create tslib-$LT_RELEASE.pc, and install
16           it into the correct place.  Also change the AC_INIT 'PACKAGE' from
17           libts to tslib.  Bump the LT_REVISION, since libts has changed a fair
18           bit now, in preparation for the 1.0.0 release.
19         * .cvsignore: Add *.pc to CVS ignore.
20
21         * m4/internal/visibility.m4, src/Makefile.am, plugins/Makefile.am:
22           Fixup the visibility macros to set VIS_CFLAGS and VIS_CXXFLAGS, so
23           we can choose to use the visibility flags for the core lib and
24           plugins, but not the test apps, as the gains would be nonexistant
25           there.
26
27 2005-02-25 Chris Larson <kergoth@handhelds.org>
28
29         * AUTHORS: Add self to AUTHORS file.
30         * configure.in: Deleted.
31         * configure.ac: Bump version passed to AC_INIT, set my email address
32           as the contact point for the time being.
33
34 2005-02-16 Michael Opdenacker <michaelo@handhelds.org>
35
36         * configure.ac, plugins/Makefile.am, plugins/linear-h2200.c: Add
37           tslib plugin to linearly scale touchscreen values for the HP iPAQ
38           h22xx.
39
40 2004-12-14 Chris Larson <kergoth@handhelds.org>
41
42         * Files all over the tree: Apply patch to add support for using
43           the new gcc symbol visibility features that are available
44           in gcc 4.0 (and patched 3.4.x).  Also import a few m4 macros
45           and general buildsystem updates to facilitate automatic use of
46           gcc visibility if it's supported.
47
48 2004-11-22 Holger Freyther <zecke@handhelds.org>
49
50         * plugins/dejitter.c: Sometimes after ts_open/ts_close/ts_open on
51           the first sample(s) dejitter will crash.  memset the tslib_dejitter
52           structure with zeros so djt->nr's value isn't undefined.
53
54 2004-10-19 Chris Larson <kergoth@handhelds.org>
55
56         * Files all over the tree: Fixed up a bunch of compile warnings,
57           at least some of which actually did cause breakage for the user.
58
59 2004-07-08 Chris Larson <kergoth@handhelds.org>
60
61         * plugins/input-raw.c: As EV_SYN can be checked for at runtime rather
62           than build time, #define it when compiling against kernel headers
63           that do not define it (2.4).
64
65 2004-01-26 Andrew Zabolotny <zap@homelink.ru>
66
67         * README: Updated documentation on module parameters.
68         * plugins/linear.c: Removed the bogus noxyswap parameter.
69
70 2004-06-14  Chris Larson  <kergoth@handhelds.org>
71
72         * src/ts_read_raw.c: Fix bug hit by me and identified by Phil
73           related to the way we call the raw read functions.
74         * src/input-raw.c (ts_input_read): Rename function, call out
75           check_fd to confirm sanity of this inputdevice, make EV_SYN
76           decision at runtime.
77         * src/input-raw.c (check_fd): Rework a bit, and check for EV_SYN
78           event availability.
79         * src/input-raw.c (mod_init): Switch from static to vars in our
80           malloced tslib_module_info based structure.
81         * src/input-raw.c (ts_input_fini): New function.  Free malloced structure.
82         * etc/ts.conf: Add commented module_raw entry for 'input'.
83         * src/ts_config.c: Abort and warn when no raw modules were loaded.
84         * plugins/*.c: Use C99 initializers.
85
86 2004-06-11  Philip Blundell  <philb@gnu.org>
87
88         * plugins/variance.c (variance_read): Also clear VAR_LASTVALID on
89           pen up events.
90
91 2004-06-09  Chris Larson  <kergoth@handhelds.org>
92
93         * plugins/Makefile.am: Ensure plugins get installed.
94         * plugins/input-raw.c: Watch for a BTN_TOUCH input key event,
95           to use it as an indication of pen release.
96
97 2004-06-09  Glenn McGrath  <glennm@hydrix.com>
98         * input-raw.c:
99           - Rewrite !EV_SYN section.
100           - Never return -1, causes cursor flicker in kdrive xserver.
101           - Handle partial reads without throwing out data.
102           - Run through indent.
103           - Simplify.
104         * ts_config.c:
105           - Optimize to save some space.
106           - Fix long line check, they dont always end '\n'.
107           - Report the name of modules that wont load.
108         * configure.ac:
109           - Allow default plugindir to be set by configure.
110
111 2004-06-08  Philip Blundell  <philb@gnu.org>
112
113         Patch from Glenn McGrath <bug1@iinet.net.au>
114         * configure.in: Renamed to ...
115         * configure.ac: ... this.  Use AM_CONDITIONAL to enable plugins.
116           Fix confusion between input and arctic2 drivers.  Install plugins
117           into ${libdir}/ts, not ${libdir}/ts/plugins.
118         * plugins/Makefile.am: Keep in step with AM_CONDITIONAL changes.
119
120 2004-06-07  Philip Blundell  <philb@gnu.org>
121
122         * plugins/input-raw.c: Fix compilation errors.
123         * src/tslib-private.h: Remove #ifdef USE_INPUT_API block.
124         * configure.in: Enable input plugin if requested.
125
126 2004-06-06  Philip Blundell  <philb@gnu.org>
127
128         * tests/Makefile.am (ts_test_SOURCES, ts_calibrate_SOURCES,
129           ts_harvest_SOURCES): Add fbutils.h and font.h.
130           (ts_calibrate_SOURCES, ts_harvest_SOURCES): Add testutils.h as
131           well.
132
133         * src/ts_open.c (ts_open): Remove INPUT_API stuff.
134         * src/ts_read_raw_module.c: Deleted.
135         * src/Makefile.am (libts_la_SOURCES): Remove ts_read_raw_module.c.
136         * plugins/input-raw.c: New file.
137         * plugins/Makefile.am (EXTRA_LTLIBRARIES): Add input.la.
138         * configure.in: Remove --enable-input-api option.
139           (PLUGIN_DIR): Place under ${libdir}, not ${datadir}.
140
141 2004-06-04  Philip Blundell  <philb@gnu.org>
142
143         * src/ts_config.c (ts_config): Increase size of line buffer.
144
145         * plugins/variance.c (variance_read): Correct test of return value
146           from ->read method.
147
148 2004-05-10 Michael Opdenacker <michaelo@handhelds.org>
149
150         * src/tslib.h: removed the obsolete comment that ts_fd is not implemented yet
151
152         * tests/testutils.c: new file, containing the getxy function,
153           previously in tests/ts_calibrate.c
154
155         * tests/testutils.h: corresponding include file
156
157         * tests/ts_calibrate.c: moved getxy, sort_by_x and sort_by_y functions
158           to tests/testutils.c
159
160         * tests/ts_harvest.c: new program to harvest hundreds
161           of raw coordinates for non linear touchscreens
162           (as found in the h2200 devices, for example)
163
164         * tests/Makefile.am: added ts_harvest.c and testutils.c
165
166         * tests/ts_test.c: now tells the name of the touchscreen device file
167           when it fails to open it.
168
169         * src/ts_config.c: added missing \n at the end of
170           "option `%s' not recognised" and "line too long" error messages.
171           Also made the error message clearer by giving the config file
172           name and telling that the number is a line number.
173
174         * src/ts_config.c: fixed the code testing blank lines
175           which didn't work for me.
176
177 2004-01-29 Chris Larson <kergoth@handhelds.org>
178
179         * Make all the actual hardware access methods (minus input) individual
180           module_raw tslib modules.  Remove reference to TSLIB_TSEVENTTYPE from
181           README, and update etc/ts.conf to include commented out entries for
182           the various module_raw modules.
183
184 2004-01-26 Andrew Zabolotny <zap@homelink.ru>
185
186         * src/ts_read_raw_module.c: Added EV_SYN support for kernels >2.5.x.
187           This makes the touchscreen event boundary detection 100% correct
188           and removes the need for tricky assumptions tslib had to do until
189           now. If the EV_SYN macro is not defined, the old algorithm is
190           enabled instead.
191
192         * plugins/variance.c: Rewrote almost from scratch the variance filter.
193           The old variance filter made the input very sluggish because it
194           lets out only one of every four input samples. Now it generates
195           approximatively 1:1 output, except that it filters out what it
196           thinks are "noise" samples.
197
198         * plugins/dejitter.c: Rewrote almost from scratch the dejitter filter.
199           Now it just applies a weighted smoothing algorithm with most weight
200           in most recent samples; this leaves touchscreen input responsive and
201           still smooths out jitter.
202
203         * tests/fbutilc.c: Improved a lot; added line drawing, rectangle
204           drawing and filled rectangle drawing, support for up to 256
205           user-defined colors.
206
207         * tests/ts_test.c, tests/ts_calibrate.c: Update to take advantage of
208           the improved functionality of fbutils.c. The ts_test tool now has
209           a "drag" (old behaviour) and "draw" mode (the pen leaves a trace on
210           the screen).
211
212 2003-11-01 Chris Larson <kergoth@handhelds.org>
213
214         * plugins/pthres.c, plugins/Makefile.am, configure.in: Added pressure
215           threshold tslib plugin, which is used to ensure that the release
216           event's pressure is 0.
217
218         * plugins/variance.c, plugins/dejitter.c: Removed pressure threshold
219           handling from plugins, now that pthres is handling it.
220
221         * etc/ts.conf: Updated default ts.conf per changes due to pthres.
222
223 2003-08-05 Chris Larson <kergoth@handhelds.org>
224
225         * Updated README documentation.  Added information on what the various
226           TSLIB environment variables do, and information on a guideline for
227           tslib filter module creators.
228
229 2003-07-31 Chris Larson <kergoth@handhelds.org>
230
231         * Corrected some issues with automake usage, which included changing
232           references of CFLAGS to AM_CFLAGS where necessary.
233
234 2003-03-12 Chris Larson <kergoth@handhelds.org>
235
236         * Add a raw module linked list, connected to the primary list, to
237           facilitate tslib modules affecting ts_read_raw behavior.
238
239 2003-03-04 Douglas Lowder <dlowder@earthlink.net>
240
241         * Added support for COLLIE and CORGI event types (thanks to Chris Larson
242           of the OpenZaurus project)
243
244 2003-03-03 Douglas Lowder <dlowder@earthlink.net>
245
246         * Fixed segfault bug in src/ts_parse_args.c
247
248 2002-11-08  Douglas Lowder <dlowder@earthlink.net>
249
250         * Added patch from Scott Anderson to improve tests/ts_calibrate.c by taking
251           median of multiple samples for each point.
252
253 2002-08-29  Douglas Lowder <dlowder@earthlink.net>
254
255         * Added tests/ts_print_raw.c to print raw uncalibrated touchscreen events
256           (useful for debugging)
257
258 2002-07-11  Douglas Lowder <dlowder@earthlink.net>
259
260         * Added code in src/ts_read_raw.c to handle reading events from the mk712
261           touchscreen driver on the Hitachi Webpad.
262
263         * Fixed a bug in plugins/linear.c (incorrect default calibration in
264           absence of /etc/pointercal)
265
266 2002-07-10  Douglas Lowder <dlowder@earthlink.net>
267
268         * Added a patch by Holger Schurig <h.schurig@mn-logistik.de> to fix
269           issues encountered on an Accelent PXA250 board.  The patch is against
270           tests/ts_calibrate.c.  Among other things, it removes the extra event
271           that was being read before the first crosshair is painted.
272
273         * Modified the code in plugins/dejitter.c to guarantee that the "release"
274           touchscreen event (event with pressure=0 that occurs when the pointer is
275           lifted from the screen) has the same xy position as the preceding event.
276           This eliminates the cursor "jumping" that can occur otherwise.
277
278         * Fixed a bug in src/ts_read_raw.c that caused segfaults if TSLIB_TSEVENTTYPE
279           was not defined in the environment.
280
281 2002-07-05  Douglas Lowder <dlowder@earthlink.net>
282
283         * libts.so now handles both UCB1x00 and H3600 type touchscreen events.  Default
284           is UCB1x00; H3600 is selected by setting environment variable
285           TSLIB_TSEVENTTYPE to the value "H3600".
286
287         * With the above change, generation of libtsipaq.so is no longer required,
288           and it has been removed.
289
290 2002-07-03  Douglas Lowder <dlowder@earthlink.net>
291
292         * Added back the code to open the virtual console (works if device file chosen
293           correctly).
294
295         * Made the console device and framebuffer device configurable for ts_calibrate
296           and ts_test: new environment variables defined.
297           TSLIB_FBDEVICE (defaults to /dev/fb0)
298           TSLIB_CONSOLEDEVICE (defaults to /dev/tty)
299
300           On a system using devfs, the above should be set to /dev/fb/0 and /dev/vc/,
301           respectively.
302
303 2002-07-01  Douglas Lowder <dlowder@earthlink.net>
304
305         * Fixes to make this code work better on targets with framebuffers that have
306           more than 8 bits per pixel (changes to tests/fbutils.c):
307           * Removed the code that attempts to change colormap
308           * Temporarily commented out the code that opens /dev/tty1 (does not work on all targets)
309
310         * Fixed the test program so that the crosshair is drawn XORed with the text on the screen,
311           so the text is not corrupted when the crosshair moves over it. (tests/fbutils.c)
312
313         * Made the code much more configurable by adding checks for environment variables:
314           TSLIB_CALIBFILE -- location of calibration file for linear plugin (default: /etc/pointercal)
315           TSLIB_CONFFILE -- location of configuration file (default: /usr/local/etc/ts.conf)
316           TSLIB_PLUGINDIR -- location of plugins (default: /usr/local/share/ts/plugins)
317           TSLIB_TSDEVICE -- Name of touchscreen device file if not using input API (default: /dev/touchscreen/ucb1x00)
318
319         * Added new file, src/ts_read_raw_ipaq.c, to make code work with the h3600_ts driver
320           on the Compaq iPAQ.  This creates a new library, libtsipaq.so, that should replace
321           the default libts.so if using this code on an iPAQ.
322
323 2002-06-19  Douglas Lowder <dlowder@earthlink.net>
324
325         * Fixed a problem that caused tslib_parse_vars() (src/ts_parse_vars.c) to not
326           read parameters correctly from the ts.conf file.
327
328         * Made modifications to simplify and improve the performance of the dejitter filter
329           (plugins/dejitter.c).
330
331         * Added the configure script and Makefile.in files, plus other files generated by
332           autogen.sh, so that only "configure" needs to be run before running "make".
333           If a user wishes to rerun the automake and autoconf steps, run "autogen-clean.sh"
334           and then "autogen.sh".
335
336 2002-06-17  Douglas Lowder <dlowder@earthlink.net>
337
338         * I added a simple script, autogen-clean.sh, to make it easier to change configure.in
339           and regenerate configure scripts and Makefiles.
340
341         * I made modifications so that npitre's new input API code is now wrapped in
342           #ifdef USE_INPUT_API.  Added a new configure flag, --enable-inputapi, which
343           is turned on by default, and which adds -DUSE_INPUT_API to CFLAGS in all the
344           Makefiles.  --disable-inputapi will return the code to its original behavior
345           of opening /dev/touchscreen/ucb1x00 and reading events directly.
346
347         * I modified plugins/linear.c so that it determines the full linear transformation
348           between touchscreen and framebuffer coordinate systems.  This method not only
349           rescales and offsets the coordinates correctly, but also automatically takes care
350           of rotation or tilt between the coordinate systems, and automatically takes care
351           of cases where X and Y are interchanged.  Therefore, the xyswap parameter is
352           no longer required or used.
353
354         * I found the framebuffer code in tests/ts_calibrate.c and tests/ts_test.c to be
355           broken, and fixed it so it works correctly (used ADS GraphicsClient+ and an Intel
356           DBPXA250 (Lubbock) Xscale target for testing).
357           Since there was a lot of duplication, I extracted all the framebuffer specific stuff
358           to new files fbutils.c and fbutils.h, so it will be easier to add more framebuffer
359           tests in future if desired.  I also extract a couple of fonts and wrote simple text
360           printing code so text messages can be displayed in ts_test and ts_calibrate.
361
362         * I added a new configure flag, --enable-debug, which is turned off by default.  When
363           enabled, it adds -g -ggdb -DDEBUG to CFLAGS in all the Makefiles.  I have debug
364           print statements in ts_read_raw and in the plugins that are wrapped with #ifdef DEBUG --
365           this way I can see how many events are being filtered away and get a better idea
366           of what the filters are doing.
367
368         * Joanne Woo <jwoo@mvista.com> added C++ wrappers to the header files so this library
369           can be safely used with C++ code.
370