Fix touch not work on user build

Why: 
Fix nova touch not work on user build
How: 
Turn off the debug code that uses the API prohibited by GKI build


Change-Id: I194b2415b4e44f478e5f2d6afe81bc622c79a6d5
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2709605
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Yan Zhang 2023-08-15 12:09:20 +08:00
commit c4dc621a76
2 changed files with 6 additions and 1 deletions

View file

@ -26,6 +26,10 @@ ifneq ($(filter m y,$(CONFIG_INPUT_NOVA_DRM_PANEL)),)
EXTRA_CFLAGS += -DNVT_CONFIG_DRM_PANEL
endif
ifeq ($(TARGET_BUILD_VARIANT),user)
EXTRA_CFLAGS += -DCFG_CTS_FOR_GKI
endif
ifneq ($(filter m y,$(CONFIG_TOUCH_PANEL_NOTIFICATIONS)),)
EXTRA_CFLAGS += -DCONFIG_PANEL_NOTIFICATIONS
endif

View file

@ -373,6 +373,7 @@ static void nvt_print_criteria(void)
static int32_t nvt_save_rawdata_to_csv(int32_t *rawdata, uint8_t x_ch, uint8_t y_ch, const char *file_path, uint32_t offset)
{
#ifndef CFG_CTS_FOR_GKI
int32_t x = 0;
int32_t y = 0;
int32_t iArrayIndex = 0;
@ -479,7 +480,7 @@ static int32_t nvt_save_rawdata_to_csv(int32_t *rawdata, uint8_t x_ch, uint8_t y
}
printk("%s:--\n", __func__);
#endif
return 0;
}