Commit Graph

2004 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño) 2382506491 virtual-device: Add checks for verify reports 2021-01-26 04:49:50 +01:00
Benjamin Berg 08f4be707c uru4000: Call irq stop handler immediately if the transfer is cancelled
The irq handler may already be stopped if stop_irq_handler is called. In
that case, we should immediately call the handler rather than just never
calling it.

This fixes deactivation when the device is unexpectedly unplugged.

Closes: #355
2021-01-25 16:56:12 +00:00
Marco Trevisan (Treviño) 3693c39bc5 virtual-device: Make cancellation support toggable
We may want to have the device to sleep while releasing an operation,
this will allow to do it.
2021-01-25 17:40:49 +01:00
Marco Trevisan (Treviño) 993109a7f8 virtual-device: Implement cancel vfunc, to stop timeouts 2021-01-25 17:40:49 +01:00
Marco Trevisan (Treviño) 18db20d160 virtual-device: Add support for sleep command
It can be used to delay operations, simulating a busy device.
2021-01-25 17:40:48 +01:00
Marco Trevisan (Treviño) 89b4c4ee75 virtual-device: Test unplug operation while we're verifying 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 153b24a95a virtual-device: Use identify function for verify tests when possible 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 8c45c0952e virtual-device: Split verify check function in two parts to be reusable
We can so inject further operations in the middle, such as for the
finger status check
2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) c3ece8621d virtual-device: Implement UNPLUG operation 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 67cb61cc18 tests/virtual-device: Add identification tests
Reusing most of the logic of the `check_verify` utility function
2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 33ffadf402 tests/virtual-device: Cleanup device storage on teardown 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 162a83e484 tests/virtual-device: Add ability to enroll with a retry step and test it 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) dfb27222eb tests/virtual-device: Add function that figures out the command from type 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 81e53c422d virtual-device: Add support for changing the device scan type 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) be0b4ae2bb tests/virtual-device: Trigger new scans when we got progress callback 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 56bcf1ffdd virtual-device: Add command to change the number of enroll stages
As per this don't use the class value anymore at enroll phase, as it may
differ.
2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 665de7813b fpi-device: Ensure we're receiving a valid number of enroll stages 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) a291d17f26 virtual-device: Properly cleanup the virtual devices data
Ensure we call the parent finalize function and cleanup local data
2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) e8886dbc6b virtual-device: Support all the configured enrolling stages 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 3d6fb15b5c virtual-device: Add API to change current finger status 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 43d0dfdd8f virtual-device-storage: Set needed finger state on enroll and verify 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 50f522583e virtual-device: Set needed finger state on enroll and verify 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) f0443ba2f3 virtual-device: Add support for reporting device Retry "errors" 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) 546f35132c tests/virtual-device: Use FPrint.DeviceError values to send errors 2021-01-25 17:40:15 +01:00
Marco Trevisan (Treviño) ce9527d2cb virtual-device: Wait for delayed commands to be processed
This allows to mimick the image device better, so that we can start an
operation and send the commands within some delay.
2021-01-25 17:40:13 +01:00
Marco Trevisan (Treviño) acb91a10df debian/patches/series: Add missing reference to the shared-library patch 2021-01-21 21:08:37 +01:00
Marco Trevisan (Treviño) 0e23cc18d4 debian/update-udev-triggers.sh: handle some minor shellcheck warnings 2021-01-21 19:59:25 +01:00
Marco Trevisan (Treviño) ec469dd2e1 Upload to experimental 2021-01-21 19:53:12 +01:00
Marco Trevisan (Treviño) 038fd70b28 Update changelog 2021-01-21 19:52:44 +01:00
Marco Trevisan (Treviño) 97b6e243b8 debian/update-udev-triggers.sh: Use perl to replace file content
envsubst is nice but may be not installed and can be confusing, so let's
use perl (+ printenv) to replace our file content.
2021-01-21 19:52:44 +01:00
Marco Trevisan (Treviño) 067020b36e debian/libfprint-2-2.postinst: Upgrade as per upstream hwdb
Blacklisted devices can be now removed from the trigger list as we don't
add them to plugdev anymore.
2021-01-21 19:34:13 +01:00
Marco Trevisan (Treviño) 4c4b444f21 debian: Generate postinst devices list automatically at gbp import phase
Alternatively provide a script to keep the post-inst script updated
2021-01-21 19:34:13 +01:00
Marco Trevisan (Treviño) b97f10d63d debian/patches: Explicitly mark libfprint as a shared library 2021-01-21 19:34:13 +01:00
Marco Trevisan (Treviño) 20d9b79584 New upstream version 1.90.7+git1 2021-01-21 19:23:22 +01:00
Marco Trevisan (Treviño) 327a8047b9 New upstream version 1.90.7+git1 2021-01-21 19:17:25 +01:00
Marco Trevisan (Treviño) 742513ee87 New upstream version 1.90.7+git1 2021-01-21 19:13:37 +01:00
Marco Trevisan (Treviño) e13a070cb5 debian/rules: Don't remove the meson generated private values from pc file
This is now generated correctly by upstream, so no need to drop anything
from it.
2021-01-21 17:41:02 +01:00
Benjamin Berg 89890dbd1f build: Explicitly mark libfprint as a shared library
While meson suggests to always use 'library' this leads to some unwanted
behaviors when it comes to generate pkg-config files for it, as they
will include `Libs.Private` / `Required.private` fields that should not
be really part of a shared library as libfprint is meant to be used.
2021-01-21 17:36:41 +01:00
Marco Trevisan (Treviño) 0978747035 debian/rules: Manually set udev hwdb directory (was rules dir before) 2021-01-21 17:24:41 +01:00
Marco Trevisan (Treviño) eb21b898aa libfprint-2-2.install: Install hwdb file 2021-01-21 17:24:41 +01:00
Marco Trevisan (Treviño) 5f902c9298 debian/rules: Do not autorename upstream rules file anymore
It's not there, while there's no point to rename the hwdb one.
2021-01-21 17:24:41 +01:00
Marco Trevisan (Treviño) 3ccd267ad2 debian/patches: Use hwdb to store device autosuspend rules and drop debian specifics
Upstream will use an hwdb to store the device autosuspend (that will be
included in systemd also, so libfprint packagin may stop shipping it at
later point), so use it earlier.

Drop the debian specific rules to set the devices part of the `plugdev`
group as such devices should not be ever readable by an user, but the
access should be managed through a libfprint-based service (frpintd at
the date).
2021-01-21 17:24:34 +01:00
fengqiangguo e0c41c5444 goodixmoc: Fix some big/little endian support issues
Goodix driver is not working fine in BigEndian architectures. This
commit fixes some of these issues.

Related: #236
2021-01-21 16:21:06 +00:00
Marco Trevisan (Treviño) f2c4614779 gbp.conf: Prepare for experimental branching 2021-01-21 17:15:13 +01:00
Marco Trevisan (Treviño) c8a14db3d5 Upload to unstable 2021-01-21 17:10:57 +01:00
Marco Trevisan (Treviño) 8960e7f974 Update changelog 2021-01-21 17:10:06 +01:00
Marco Trevisan (Treviño) 8b7f8dc77b debian/libfprint-2-2.postinst: Regenerate the list based on new IDs 2021-01-21 17:06:51 +01:00
Marco Trevisan (Treviño) 702c58152c debian/patches: Skip udev rules tests when not all drivers are compiled 2021-01-21 17:01:50 +01:00
Marco Trevisan (Treviño) 3b83157e9b build: Skip the hwdb test if not all drivers are really enabled 2021-01-21 15:55:44 +00:00
Marco Trevisan (Treviño) 57f836a0f6 udev-hwdb: Generate autosuspend list using a sorted list 2021-01-21 15:55:44 +00:00