Commit graph

20 commits

Author SHA1 Message Date
Arian
fe921f1062 sm8450-common: udfps: Revert usage of low brightness
Unfortunately, on devices like cupid the recognition is
significantly worse with this.

Change-Id: I174e3869e86cb19f69e748372941d5065a54b7a7
2024-05-22 01:54:00 +02:00
Arian
4bfd3e8d1f sm8450-common: udfps: Fix wrong debugging
Change-Id: Ifca3216aed85983d97b019e2c700cf0964fb8e39
2024-05-18 11:05:22 +02:00
Arian
dc81c8c0ac sm8450-common: udfps: Only disable fod_status until suspend
Change-Id: If4d9084cbcc8670c7636fddd143807cb6b067f22
2024-05-18 11:05:22 +02:00
Arian
1cd6a1d52f sm8450-common: udfps: Enforce high brightness while enrolling
Change-Id: I960c78fc28ea3053527ab3bb790cc028454b222b
2024-03-20 00:00:13 +01:00
Arian
573195b6d2 sm8450-common: udfps: Don't try to read with a negative length
Change-Id: If404b671eff00ac8281af2038a113519cd10cc9d
2024-03-19 23:22:37 +01:00
kxxt
705b60c599 sm8450-common: udfps: Enable fod_status on finger down events instead for fpc_fod
Unfortunately, the fpc_fod hwmodule does not send vendor messages
when it starts to wait for fingerprints reliably...

Change-Id: Ie66cbed024ce89092ecbb1bd9c965b35c59199f7
2024-03-19 23:22:37 +01:00
Arian
3c0204bb3f sm8450-common: udfps: Disable HBM directly on successfull authentication
Change-Id: I336d4079cc41156135b5c68319c11d2ae640f548
2024-03-19 23:22:37 +01:00
Arian
2ab727afe0 sm8450-common: udfps: Change verbose logging to DEBUG
Change-Id: Ic3c4401e61b54445f9acc0d1e53c75c21b6a6ee6
2024-03-19 23:22:37 +01:00
Arian
1c5b35a3c1 sm8450-common: udfps: Inform hwmodule about press coordinates
These coordinates can be from the last press, ideally we would
get the coordinates freshly when fod_press_status changes.

Change-Id: I8c0096c96612c8ea8b612696ecf702d7945a1b84
2024-03-19 23:22:37 +01:00
Arian
43650d15a4 sm8450-common: udfps: Use 110 nit fod when the brightness is low
Change-Id: I892c8c5eaef6606a7576722ec1751db2f0a9b2ef
2024-03-19 23:22:37 +01:00
Arian
9b37d1a99e sm8450-common: udfps: Add comments about setFingerDown usage
Change-Id: Ifb0394a887cdabdad20208b5deb2386e7cc7f55a
2024-03-19 23:22:37 +01:00
Arian
ed1d014229 sm8450-common: udfps: Drop unnecessary setFingerDown on cancel
HBM is usually not on when it gets cancelled

Change-Id: I6c2c4836bf9dad627d4f97283b0fe8d2c398908a
2024-03-19 23:22:37 +01:00
Arian
1198676eff sm8450-common: udfps: Defer extCmd until fod ui is ready
This does not work with xiaomi's original display driver,
since partial reads from it are broken and it rejects all
reads whose size is insufficient to get the whole response.
However, the size is not known in prior, so we actually
want to read the header first to determine the actual size
and continue reading then. This requires a kernel side fix
like [1].

To make this work with the stock kernel driver instead,
adjust the parseDispEvent method to read with a larger
buffer directly and decrease the size of the data
according to the header later.

[1]: b80cb5a028

Change-Id: Id8f9ac8ef32462dd00832af12ff60a3610103e2a
2024-03-19 23:22:37 +01:00
Arian
abee51ea08 sm8450-common: udfps: Move HBM requests to fod press status listener
Change-Id: If00769fdd766f62c6e35d0f2c19496197ea218af
2024-03-19 23:22:37 +01:00
Arian
44edf478c1 sm8450-common: udfps: Correct vendorCodes
Change-Id: I39f37f278e39487c21d96e05ee331c4960d5e2be
2024-03-19 23:22:37 +01:00
Arian
6cfbe86b6d sm8450-common: udfps: Improve fod press poll logging
Change-Id: I9999722660f3d56519463c8e3762b9f48ef0208b
2024-03-19 23:22:37 +01:00
Arian
5588bbf3dd sm8450-common: udfps: Use MI_DISP_PRIMARY as touch id
Change-Id: Ie4144887165d56f37c871bb85da56e8c80dfd721
2024-03-19 23:22:37 +01:00
Arian
1328eabc27 sm8450-common: udfps: Enable HBM via disp_feature
Change-Id: I6ffdf1de9b0cf5eb2b479ce3ff66ca4f7e74e17c
2024-03-19 23:22:37 +01:00
Arian
ec8786ca3a sm8450-common: udfps: Keep fod_status enabled during enroll
Change-Id: Ie09efc80c6d4ad06db82c5c693f202f651fd56dd
2024-03-19 23:22:37 +01:00
Arian
d9d3600817 sm8450-common: Build fingeprint HAL and implement udfpshandler
Change-Id: Ib0a8ed7d6e794aef4ad02b960841c66dfad79390
2024-03-19 23:22:36 +01:00