pmaports/device/testing/linux-huawei-lua-u22/fix-touchscreen.patch
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +01:00

17 lines
801 B
Diff

--- a/drivers/input/touchscreen/mediatek/FT5446/focaltech_driver.c
+++ b/drivers/input/touchscreen/mediatek/FT5446/focaltech_driver.c
@@ -598,12 +598,12 @@ static void tpd_down(int x, int y, int p) {
}
input_report_key(tpd->dev, BTN_TOUCH, 1);
input_report_abs(tpd->dev, ABS_MT_TOUCH_MAJOR, 20);
- input_report_abs(tpd->dev, ABS_MT_PRESSURE, 0x3f);
+ //input_report_abs(tpd->dev, ABS_MT_PRESSURE, 0x3f);
input_report_abs(tpd->dev, ABS_MT_POSITION_X, x);
input_report_abs(tpd->dev, ABS_MT_POSITION_Y, y);
//printk("tpd:D[%4d %4d %4d] ", x, y, p);
/* track id Start 0 */
- //input_report_abs(tpd->dev, ABS_MT_TRACKING_ID, p);
+ input_report_abs(tpd->dev, ABS_MT_TRACKING_ID, p);
input_mt_sync(tpd->dev);
if (FACTORY_BOOT == get_boot_mode()|| RECOVERY_BOOT == get_boot_mode())
{