summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
12 daysREADME: Add contact informationHEADmasterMarco Trevisan (Treviño)1-0/+9
2024-04-17fpi-device: Clarify transfer of errors in device complete tasksMarco Trevisan (Treviño)2-17/+26
2024-04-17fpi-device: Simplify logic of fpi_device_task_return_data_freeMarco Trevisan (Treviño)1-18/+16
The clear functions will do NULL checks already, so there's no need to duplicate such effort
2024-04-18fpcmoc: Transfer error from autoptr before fpi_device_close_completeHaowei Lo1-1/+1
Fixed coredump because of trying to free a null space Change-Id: If5a23ba7b4f307580593712612e150d1ab893826
2024-04-17fpcmoc: Modify ctrl timeout to fix identify return failedsteven.chen1-1/+1
2024-04-17goodixmoc: Add PID 0x609ALee Jiajun2-0/+3
2024-04-17fpcmoc: add error handling to evt_finger_dwnhaoweilo1-1/+7
Redo the current task state if we got failed status from evt_finger_dwn
2024-04-17fpcmoc: fix incorrect immobile handling during enrollmenthaoweilo1-3/+7
For the custom enrollment, if the number of immobile touches have reached the maximum, we should treat this touch as normal (valid) and increase the enrollment progress.
2024-04-16fpcmoc: clean cmd_ssm before callbackHaowei Lo1-2/+1
fixed assertion of "cmd_ssm is not null" Change-Id: I8f914468dc0e40c6cac33d680411a2d957cf2296
2024-03-13goodixmoc: Add PID 0x650CJichi Zhang2-0/+3
2024-02-20egismoc: Use FpiByteReader to compute the check bytesMarco Trevisan (Treviño)1-23/+9
We can read the values in the proper format without having to deal with endianness ourself, so let's do this instead of manual labor.
2024-02-20egismoc: Use FpiByteWriter to allocate the commit payloadMarco Trevisan (Treviño)1-7/+17
2024-02-20egismoc: Use FpiByteWriter to generate the get check commandMarco Trevisan (Treviño)1-37/+32
2024-02-20egismoc: Compute the delete command using FpiByteWriterMarco Trevisan (Treviño)1-25/+25
2024-02-20egismoc: Use FpiByteReader to read the enrolled IDsMarco Trevisan (Treviño)1-5/+17
2024-02-20egismoc: Use FpiByteWriter to prepare the command messageMarco Trevisan (Treviño)1-41/+50
2024-02-20egismoc: Do not store twice the number of enrolled IDsMarco Trevisan (Treviño)1-30/+32
We already store it in the array, so let's just use that value
2024-02-20fpi-byte-writer: Zero-init the allocated data by defaultMarco Trevisan (Treviño)1-2/+2
This could have been done via fill method + pos reset, but it's just something we normally want to do for safety, so let's do it all the times.
2024-02-20fpi-byte-writer: Use nicer API to unset the parent dataMarco Trevisan (Treviño)1-2/+1
2024-02-20fpi-byte-writer: Initialize the parent size when initializing with sizeMarco Trevisan (Treviño)1-0/+2
2024-02-20fpi-byte-writer: Add change pos methodMarco Trevisan (Treviño)1-0/+11
It allows to move the position of the cursor with a relative position.
2024-02-20fpi-byte-writer/reader: Add autopointers definitionsMarco Trevisan (Treviño)2-0/+5
2024-02-20build/tests: Skip a test if the test requires it during inspectionMarco Trevisan (Treviño)1-1/+7
In case we don't have dependencies, we should skip the test, otherwise we can just fail at test time
2024-02-20build: Look for sh just onceMarco Trevisan (Treviño)2-5/+6
2024-02-20ci: Export coverage to pagesMarco Trevisan (Treviño)1-0/+16
So that we can link it outside
2024-02-20Release 1.94.7v1.94.7Marco Trevisan (Treviño)2-1/+16
2024-02-20build: Stop using deprecated dep.get_pkgconfig_variable() methodMarco Trevisan (Treviño)3-4/+4
Use generic get_variable() instead
2024-02-19egismoc: Convert value check values to big endian only when neededMarco Trevisan (Treviño)1-7/+5
Since the driver seem to require a big-endian value it's just better to use architecture native endianness to compute the check value and eventually just convert to big endian as the chip wants.
2024-02-19egismoc: Convert the check value to little endianMarco Trevisan (Treviño)2-1/+2
In this way we can support the big-endian architectures too.
2024-02-19egismoc: Simplify check bytes computationMarco Trevisan (Treviño)1-8/+10
We use big endian values for generating the check bytes, but we can do the same logic in a simpler way.
2024-02-19egismoc: Use strictly sized types to hold check bytes contentsMarco Trevisan (Treviño)1-13/+12
So we are sure about the size we're sending at compile time too.
2024-02-19build: Allow testing more drivers in both big and little endianMarco Trevisan (Treviño)1-0/+18
I've tested them in a s390x host and many more tests work fine, so let's enable them.
2024-02-19build: Build-depend on glib 2.68Marco Trevisan (Treviño)2-31/+1
GLib 2.68 is now more than 3 years old, so we can definitely start using it without thinking too much. This allows us to drop lots of compat code that we had around. And like the previous commit tells us, it will also help us to have more correct code around.
2024-02-19cleanup: Use non-const pointers for non constant casesMarco Trevisan (Treviño)4-6/+6
We had various cases in which we were using const pointers for non constant data, and in fact we were allocating and free'ing them. So let's handle all these case properly, so that we won't have newer GLib complaining at us!
2024-02-19egismoc: Simplify fingerprint id and firmware readingMarco Trevisan (Treviño)1-23/+14
We can do copy and duplicate in oneshot since we are handling strings after all.
2024-02-19egismoc: Implement suspension properlyMarco Trevisan (Treviño)1-1/+11
In case of suspension we can't just cancel the operations but also return when completed, and this may not happen immediately if there are ongoing operations. This is automagically handled by libfprint internals, but in order to make it happen, we need to cancel the ongoing operations and then mark it completed. libfprint will then wait for the task completion before actually marking the device as suspended.
2024-02-19egismoc: Use device cancellable on transfersMarco Trevisan (Treviño)1-3/+3
2024-02-19egismoc: Use g_new0 instead of g_malloc to make the type clearerMarco Trevisan (Treviño)1-8/+8
2024-02-19egismoc: Assert that current transfer is unset when setting itMarco Trevisan (Treviño)1-0/+5
We need to ensure that we are not overwriting the instance transfer, so that we can be sure that we are only doing one transfer at time. Also we need to ensure that the ssm unsetting it, is the owner of it.
2024-02-19egismoc: Assert that task ssm is unset when setting itMarco Trevisan (Treviño)1-1/+8
We need to ensure that we are not overwriting the instance SSM, so that we can be sure that we are only doing one operation at time. Also we need to ensure that the task unsetting it, is the owner of it.
2024-02-19egismoc: clear task pointers also after dev_init_doneJoshua Grisham1-2/+8
2024-02-19egismoc: Ensure that the command callback is after SSM is completedMarco Trevisan (Treviño)1-2/+13
We need to make sure that we won't trigger a callback when a SSM is already in progress or we may end up overwriting it
2024-02-19egismoc: Use an autopointer to cleanup error on command done callbackMarco Trevisan (Treviño)1-7/+3
2024-02-19egismoc: Clarify delete print ownership in delete callbackMarco Trevisan (Treviño)1-3/+3
2024-02-19egismoc: Simplify egismoc identification stage handlingMarco Trevisan (Treviño)1-12/+5
2024-02-19egismoc: Avoid gotos in init code, just handle the errors immediatelyMarco Trevisan (Treviño)1-16/+15
2024-02-19egismoc: Remove unused incrementsMarco Trevisan (Treviño)1-2/+0
This is also to please static analyzer
2024-02-19egismoc: Clear enrolled IDs using nicer GLib apiMarco Trevisan (Treviño)1-4/+2
2024-02-19egismoc: Ensure we've enough null bytes at the end of stringsMarco Trevisan (Treviño)1-1/+1
2024-02-19egismoc: Do not initialize to zero twiceMarco Trevisan (Treviño)1-1/+0