Skip to content

Commit 9ccded1

Browse files
committed
Revert "umi: udfps: Disable HBM at fod_status changes"
This reverts commit 867d70b. Reason for revert: Don't need this hack anymore Change-Id: Ib5786e37ec6e02e1ce525849664eecd0e2a7b272
1 parent 605fdd3 commit 9ccded1

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

init/init.xiaomi.rc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ on boot
9292

9393
chmod 0666 /dev/input/event2
9494

95-
chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param
96-
chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param
97-
9895
on property:sys.boot_completed=1
9996
# configure input boost settings
10097
write /sys/devices/system/cpu/cpu_boost/input_boost_freq "0:1344000"

udfps/UdfpsHandler.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <android-base/logging.h>
1212
#include <android-base/unique_fd.h>
1313
#include <fcntl.h>
14-
#include <fstream>
1514
#include <poll.h>
1615
#include <thread>
1716
#include <unistd.h>
@@ -28,24 +27,11 @@
2827
#define TOUCH_MAGIC 0x5400
2928
#define TOUCH_IOC_SETMODE TOUCH_MAGIC + 0
3029

31-
#define DISPPARAM_PATH "/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param"
32-
#define DISPPARAM_FOD_HBM_OFF "0xE0000"
33-
3430
static const char* kFodUiPaths[] = {
3531
"/sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_ui",
3632
"/sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui",
3733
};
3834

39-
namespace {
40-
41-
template <typename T>
42-
static void set(const std::string& path, const T& value) {
43-
std::ofstream file(path);
44-
file << value;
45-
}
46-
47-
} // anonymous namespace
48-
4935
static bool readBool(int fd) {
5036
char c;
5137
int rc;
@@ -114,7 +100,6 @@ class XiaomiKonaUdfpsHandler : public UdfpsHandler {
114100

115101
void onAcquired(int32_t result, int32_t vendorCode) {
116102
if (result == FINGERPRINT_ACQUIRED_GOOD) {
117-
set(DISPPARAM_PATH, DISPPARAM_FOD_HBM_OFF);
118103
int arg[2] = {TOUCH_FOD_ENABLE, FOD_STATUS_OFF};
119104
ioctl(touch_fd_.get(), TOUCH_IOC_SETMODE, &arg);
120105
} else if (vendorCode == 21 || vendorCode == 23) {
@@ -128,7 +113,6 @@ class XiaomiKonaUdfpsHandler : public UdfpsHandler {
128113
}
129114

130115
void cancel() {
131-
set(DISPPARAM_PATH, DISPPARAM_FOD_HBM_OFF);
132116
int arg[2] = {TOUCH_FOD_ENABLE, FOD_STATUS_OFF};
133117
ioctl(touch_fd_.get(), TOUCH_IOC_SETMODE, &arg);
134118
}

0 commit comments

Comments
 (0)