Skip to content

Commit d07ec4f

Browse files
FrankRodderik
authored andcommitted
tweak touchscreen sensitivity
1 parent 6c781bb commit d07ec4f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Kernel/drivers/input/touchscreen/qt602240.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
*/
1313
#include "qt602240.h"
1414
#include <linux/bln.h>
15+
16+
#define _SUPPORT_TOUCH_AMPLITUDE_
17+
1518
/******************************************************************************
1619
*
1720
*
@@ -518,8 +521,8 @@ static int QT602240_Multitouch_Config_Init(struct qt602240_data *data)
518521
touchscreen_config.ysize = 0x0b;
519522

520523
touchscreen_config.akscfg = 1;
521-
touchscreen_config.blen = 0x00; // Gain of the analog circuits in front of the ADC [7:4]
522-
touchscreen_config.tchthr = 28;//0x27; // touch Threshold value
524+
touchscreen_config.blen = 0x0f;//0x00; // Gain of the analog circuits in front of the ADC [7:4]
525+
touchscreen_config.tchthr = 22;//0x27; // touch Threshold value
523526
touchscreen_config.orient = 0x04; // 0x4 : Invert Y, 0x2 : Invert X, 0x1 : Switch
524527

525528
touchscreen_config.mrgtimeout = 0x00;
@@ -530,8 +533,8 @@ static int QT602240_Multitouch_Config_Init(struct qt602240_data *data)
530533
#else
531534
touchscreen_config.movfilter = 0x0b; // Filter Limit[6:4] , Adapt threshold [3:0]
532535
#endif
533-
touchscreen_config.numtouch= 0x05;
534-
touchscreen_config.tchdi = 0x02;
536+
touchscreen_config.numtouch= 0x0a;
537+
touchscreen_config.tchdi = 0x01;
535538
touchscreen_config.mrghyst = 0x5; // Merge hysteresis
536539
touchscreen_config.mrgthr = 0x5;//0xa // Merge threshold
537540
touchscreen_config.amphyst = 0x0a; // Amplitude hysteresis

0 commit comments

Comments
 (0)