sm8450-common: udfps: Only disable fod_status until suspend
Change-Id: If4d9084cbcc8670c7636fddd143807cb6b067f22
This commit is contained in:
parent
d244058448
commit
dc81c8c0ac
1 changed files with 4 additions and 3 deletions
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
#define FOD_STATUS_OFF 0
|
#define FOD_STATUS_OFF 0
|
||||||
#define FOD_STATUS_ON 1
|
#define FOD_STATUS_ON 1
|
||||||
|
#define FOD_STATUS_OFF_UNTIL_SUSPEND 3
|
||||||
|
|
||||||
#define TOUCH_DEV_PATH "/dev/xiaomi-touch"
|
#define TOUCH_DEV_PATH "/dev/xiaomi-touch"
|
||||||
#define TOUCH_MAGIC 'T'
|
#define TOUCH_MAGIC 'T'
|
||||||
|
@ -248,7 +249,7 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
||||||
ioctl(disp_fd_.get(), MI_DISP_IOCTL_SET_LOCAL_HBM, &req);
|
ioctl(disp_fd_.get(), MI_DISP_IOCTL_SET_LOCAL_HBM, &req);
|
||||||
|
|
||||||
if (!enrolling) {
|
if (!enrolling) {
|
||||||
setFodStatus(FOD_STATUS_OFF);
|
setFodStatus(FOD_STATUS_OFF_UNTIL_SUSPEND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,7 +272,7 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
||||||
LOG(DEBUG) << __func__;
|
LOG(DEBUG) << __func__;
|
||||||
enrolling = false;
|
enrolling = false;
|
||||||
|
|
||||||
setFodStatus(FOD_STATUS_OFF);
|
setFodStatus(FOD_STATUS_OFF_UNTIL_SUSPEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
void preEnroll() {
|
void preEnroll() {
|
||||||
|
@ -288,7 +289,7 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
||||||
LOG(DEBUG) << __func__;
|
LOG(DEBUG) << __func__;
|
||||||
enrolling = false;
|
enrolling = false;
|
||||||
|
|
||||||
setFodStatus(FOD_STATUS_OFF);
|
setFodStatus(FOD_STATUS_OFF_UNTIL_SUSPEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue