mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-09-10 20:59:59 -05:00
Merge pull request #49 from 916BGAI/main
Optimize S05tp and hyn touch driver
This commit is contained in:
@@ -8,7 +8,8 @@ then
|
||||
then
|
||||
echo "load cst7xx touchscreen driver"
|
||||
insmod /mnt/system/ko/hynitron_touch_new.ko
|
||||
else
|
||||
elif [ "$panel_value" = "st7701_hd228001c31" ]
|
||||
then
|
||||
echo "load cst3xx touchscreen driver"
|
||||
insmod /mnt/system/ko/hynitron_touch.ko
|
||||
fi
|
||||
|
||||
@@ -283,7 +283,7 @@ static void touch_updata(u8 idx,u8 event)
|
||||
input_mt_report_slot_state(dev, MT_TOOL_FINGER, 1);
|
||||
input_report_abs(dev, ABS_MT_TRACKING_ID, rep_frame->pos_info[idx].pos_id);
|
||||
input_report_abs(dev, ABS_MT_POSITION_X, rep_frame->pos_info[idx].pos_x);
|
||||
input_report_abs(dev, ABS_MT_POSITION_Y, rep_frame->pos_info[idx].pos_y+25);
|
||||
input_report_abs(dev, ABS_MT_POSITION_Y, rep_frame->pos_info[idx].pos_y);
|
||||
input_report_abs(dev, ABS_MT_TOUCH_MAJOR, zpress>>3);
|
||||
input_report_abs(dev, ABS_MT_WIDTH_MAJOR, zpress>>3);
|
||||
input_report_abs(dev, ABS_MT_PRESSURE, zpress);
|
||||
|
||||
Reference in New Issue
Block a user