Igor Filatov
4ff97e7cbd
elan: Increase bz3 threshold to 24
...
Based on experience. Values more than 24 seem to work just after
enrollment, but it becomes very hard to verify in a day or so.
2018-08-10 13:45:29 +02:00
Igor Filatov
75fe328f64
elan: Don't rotate frames on 0x0c03
...
There has been a report that a 0x0c03 was installed straight (other
readers so far have produced images that are 90 degrees rotated). There
is no way for the dirver to know how a device is installed, so for now just
make an exception.
2018-08-10 13:45:29 +02:00
Igor Filatov
b28b006d61
elan: Use IMGDEV_STATE_* events instead of pre-set capture path
2018-08-10 13:45:29 +02:00
Igor Filatov
c3b1c982bc
elan: Set max frame height to 50, add note about performance
...
Frame height is a loosely experience-backed guesstimation. 50 seems to be
a good middle ground between swipe speed and quality.
2018-08-10 13:45:29 +02:00
Igor Filatov
b098399bbc
elan: Support 0x0c01~0x0c33
2018-08-10 13:45:29 +02:00
Igor Filatov
65bbdff3fc
elan: Stop doing sensor reset, change calibration and frame logic
...
Sensor reset code has been removed because it is not needed during normal
operation.
Calibration and frame processing logic has been improved according to
recommendations from Elantech.
2018-08-10 13:45:29 +02:00
Igor Filatov
fba3e682ea
elan: Remove supported devices from udev whitelist
2018-08-09 14:45:15 +02:00
Igor Filatov
bccff4ffef
elan: Change command structs, support more devices
...
Make each command a separate struct to get finer control over which
commands are called on which devices. Update ssm's accordingly. Add
sensor_reset and fuse_load commands.
Support 0x0903, 0x0c03, 0x0c16, 0x0c1a, 0x0c26
2018-08-09 14:42:25 +02:00
Bastien Nocera
9843c2d764
Merge branch 'wip/hadess/gtk-doc-meson-regression' into 'master'
...
build: Fix build with newer meson
See merge request libfprint/libfprint!9
2018-07-20 10:36:28 +00:00
Bastien Nocera
c9abbec48a
build: Fix build with newer meson
...
The gtk-doc meson helper regressed in that it didn't expect the
libfprint.types file to not exist, as earlier versions did. Remove
the --rebuild-types call so that it is not generated, and meson carries
on compiling the rest of the library.
See https://gitlab.gnome.org/GNOME/gtk-doc/issues/48
See https://github.com/mesonbuild/meson/issues/3892
See https://bugzilla.redhat.com/show_bug.cgi?id=1604585
2018-07-20 12:22:50 +02:00
Bastien Nocera
bc79f9504b
Merge branch 'wip/hadess/more-string-h' into 'master'
...
lib: Include more standard headers for drivers to use
See merge request libfprint/libfprint!8
2018-07-18 09:08:41 +00:00
Bastien Nocera
626b0f1a8f
lib: Include more standard headers for drivers to use
...
Such as string.h and stdlib.h, to be able to compile on older
toolchains like that of Fedora 27.
2018-07-17 16:14:09 +02:00
Bastien Nocera
da95af0f48
0.8.2
2018-07-17 13:48:13 +02:00
Bastien Nocera
28b6f643d8
Merge branch 'wip/hadess/downgrade-assert-2' into 'master'
...
Another assert downgrade
See merge request libfprint/libfprint!7
2018-07-17 11:47:10 +00:00
Bastien Nocera
22277c7277
build: Downgrade meson in CI script
...
It failed to finish the build otherwise:
https://github.com/mesonbuild/meson/issues/3892
2018-07-17 13:43:00 +02:00
Bastien Nocera
19e7b217c1
lib: Downgrade fp_err() to be non-fatal
...
Similarly to b1ac865abd
, downgrade
fp_err() to be non-fatal. A number of drivers would spit out an error
when encountering this call, but not crash, carry on and most of the
time recover.
Make sure we don't assert in those cases.
2018-07-16 16:08:54 +02:00
Bastien Nocera
29d3541b74
lib: Downgrade BUG* assertions to work-around crashes #2
...
Same as b1ac865abd
but for the drivers
API.
2018-07-16 16:07:25 +02:00
Bastien Nocera
b9e5b3a55c
Merge branch 'wip/hadess/downgrade-assert' into 'master'
...
lib: Downgrade BUG* assertions to work-around crashes
Closes #77
See merge request libfprint/libfprint!6
2018-07-03 09:44:56 +00:00
Bastien Nocera
b1ac865abd
lib: Downgrade BUG* assertions to work-around crashes
...
BUG() and BUG_ON() didn't use to assert, but only print an error if
debugging was enabled. This was hiding a lot of state bugs in drivers,
and transforming those into assertions causes crashes.
Downgrade the assertion to only print a warning, and hope that those
eventually get fixed in the drivers so we can re-enable them.
Closes : #77
2018-07-03 11:40:25 +02:00
Bastien Nocera
21504c0621
Merge branch 'wip/hadess/poll-retval' into 'master'
...
poll: Fix fp_get_pollfds retval type
See merge request libfprint/libfprint!5
2018-06-26 13:18:40 +00:00
Bastien Nocera
056ea541dd
poll: Fix fp_get_pollfds retval type
...
fp_get_pollfds() is supposed to return a negative value on failure, but
size_t is an unsigned integer. Use ssize_t instead.
2018-06-26 14:53:53 +02:00
Bastien Nocera
871fddf5fb
Merge branch 'wip/hadess/more-upekts-statuses' into 'master'
...
upekts: Fix enrollment never finishing on some upekts devices
See merge request libfprint/libfprint!3
2018-06-20 17:16:08 +00:00
Bastien Nocera
c284858d06
upekts: Fix enrollment never finishing on some upekts devices
...
Add support for more device status codes, brought back from the
now-removed UPEKE2 driver.
See 3bf55a3e07/libfprint/drivers/upeke2.c (L1013)
2018-06-19 11:11:04 +02:00
Bastien Nocera
bb4d888661
elan: Fix typo in comment
2018-06-18 18:07:24 +02:00
Bastien Nocera
ff77cfc9b5
doc: Update more website links
2018-06-18 14:56:40 +02:00
Bastien Nocera
80f91ecb7b
Merge branch 'master' into 'master'
...
elan: Add USB ID for TNP Nano USB Fingerprint Reader (04f3:0c26)
See merge request libfprint/libfprint!1
2018-06-13 20:09:47 +00:00
Corentin Noël
6cb77465ab
elan: Add USB ID for TNP Nano USB Fingerprint Reader (04f3:0c26)
...
The device works without any additional changes to the driver.
https://www.amazon.co.uk/gp/product/B075955HY7/
2018-06-13 20:22:29 +01:00
Bastien Nocera
6f6127cbb6
0.8.1
2018-06-12 16:05:45 +02:00
Bastien Nocera
e1d85fb636
build: Install udev rules in correct directory
...
The udevdir variable in udev.pc might not have a trailing slash.
2018-06-12 16:03:34 +02:00
Bastien Nocera
74b5c92787
0.8.0
2018-06-12 15:42:22 +02:00
Bastien Nocera
ac1f97e2eb
lib: Supported devices list is for master, not stable
2018-06-12 12:46:19 +02:00
Bastien Nocera
40f486b108
HACKING: Update hacking file
2018-06-12 11:06:26 +02:00
Bastien Nocera
b62e67401c
lib: Fix supported devices page title again
...
We need to call setlocale() so we run in UTF-8 mode, and can print that
sweet sweet em dash.
2018-06-08 16:23:35 +02:00
Bastien Nocera
dd0a0134a6
lib: Fix supported devices page title
2018-06-07 17:46:08 +02:00
Bastien Nocera
5e24000799
build: Remove unused meson rule
...
We're generating the supported-devices.md file in the website CI now.
2018-06-07 17:39:36 +02:00
Bastien Nocera
c5cdfcb120
lib: Sort supported devices list
2018-06-07 17:39:04 +02:00
Bastien Nocera
549a6694d2
build: Disable supported-devices.md generation for now
...
As added in e5393bf46a
It fails currently.
2018-06-04 16:13:08 +02:00
Bastien Nocera
14e34e1d15
build: Remove ported Makefile.am snippet
2018-06-03 14:41:02 +02:00
Bastien Nocera
e5393bf46a
lib: Add script to print MarkDown page of supported devices
2018-06-03 14:40:34 +02:00
Bastien Nocera
878a201bb1
README: Update links to new website
2018-06-03 00:31:05 +02:00
Bastien Nocera
b0e4619e0a
docs: Update links to new website
2018-06-03 00:31:05 +02:00
Bastien Nocera
aec65777a7
nbis: Update links to new website
2018-06-03 00:30:10 +02:00
Bastien Nocera
31bad8ddd2
build: Fix fprint.h install destination
...
Since the port to meson, fprint.h was installing to $includedir instead
of $includedir/libfprint/
2018-05-31 14:35:16 +02:00
Bastien Nocera
79d65c907f
build: Add missing X11 deps for the examples
2018-05-31 12:30:48 +02:00
Bastien Nocera
92231d984f
build: Add some missing build essentials
2018-05-31 12:23:30 +02:00
Bastien Nocera
2fbc77955e
build: Add CI
...
Barebones, just compiles libfprint.
2018-05-31 12:18:17 +02:00
Bastien Nocera
c91819f551
lib: Remove drv->close absence support in fp_async_dev_close()
...
The driver will at least need to close its hardware resources, and
free memory, so it must have had one.
This case was never actually used as can be seen from the fact that
we would assert in fpi_drvcb_close_complete() if the state was wrong
but never set it to the expected value.
2018-05-31 11:06:31 +02:00
Bastien Nocera
b3f6ff5a36
lib: Add guard to async functions
...
To avoid having NULL devices being passed dereferenced.
2018-05-31 11:06:31 +02:00
Bastien Nocera
52f84bee3c
vfs5011: Error out when no lines were captured
...
Which avoids passing zero lines to fpi_assemble_lines()
"gmem.c:130: failed to allocate 18446744073709551612 bytes"
#3 0x00007fe4f6ef428f in g_log (log_domain=log_domain@entry=0x7fe4f6f3506e "GLib", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x7fe4f6f3e610 "%s: failed to allocate %lu bytes") at gmessages.c:1398
#4 0x00007fe4f6ef2ac4 in g_malloc0 (n_bytes=n_bytes@entry=18446744073709551612) at gmem.c:129
#5 0x00007fe4f8052020 in median_filter (filtersize=25, size=-1, data=0x0) at assembling.c:309
#6 fpi_assemble_lines (ctx=ctx@entry=0x7fe4f82ac3c0 <assembling_ctx>, lines=0x0, lines_len=0) at assembling.c:389
#7 0x00007fe4f805f3db in submit_image (ssm=ssm@entry=0x16c3cba360, data=data@entry=0x16c3cb9cc0) at drivers/vfs5011.c:412
See https://bugzilla.redhat.com/show_bug.cgi?id=1484812
Closes : #42
2018-05-31 11:08:41 +02:00
Bastien Nocera
dda6857fee
assembling: Add guards to fpi_assemble_lines()
...
With the goal of not crashing when we try to malloc MAXINT bytes of RAM.
See https://bugzilla.redhat.com/show_bug.cgi?id=1484812
Closes : #42
2018-05-31 11:06:31 +02:00