sm8450-common: udfps: Disable HBM directly on successfull authentication
Change-Id: I336d4079cc41156135b5c68319c11d2ae640f548
This commit is contained in:
@@ -220,8 +220,12 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
|||||||
void onAcquired(int32_t result, int32_t vendorCode) {
|
void onAcquired(int32_t result, int32_t vendorCode) {
|
||||||
LOG(DEBUG) << __func__ << " result: " << result << " vendorCode: " << vendorCode;
|
LOG(DEBUG) << __func__ << " result: " << result << " vendorCode: " << vendorCode;
|
||||||
if (result == FINGERPRINT_ACQUIRED_GOOD) {
|
if (result == FINGERPRINT_ACQUIRED_GOOD) {
|
||||||
// Set finger as up to disable HBM already, even if the finger is still pressed
|
// Request to disable HBM already, even if the finger is still pressed
|
||||||
setFingerDown(false);
|
disp_local_hbm_req req;
|
||||||
|
req.base.flag = 0;
|
||||||
|
req.base.disp_id = MI_DISP_PRIMARY;
|
||||||
|
req.local_hbm_value = LHBM_TARGET_BRIGHTNESS_OFF_FINGER_UP;
|
||||||
|
ioctl(disp_fd_.get(), MI_DISP_IOCTL_SET_LOCAL_HBM, &req);
|
||||||
|
|
||||||
if (!enrolling) {
|
if (!enrolling) {
|
||||||
setFodStatus(FOD_STATUS_OFF);
|
setFodStatus(FOD_STATUS_OFF);
|
||||||
|
Reference in New Issue
Block a user