Age | Commit message (Collapse) | Author |
|
Make sure everything has been setup before request interrupt.
Bug: 271332558
Test: touch works fine.
Change-Id: I9ad3c4dc9f87154472f37e5aee6223ce7f841e34
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
|
|
Check heatmap_buff before using to avoid null pointer issue.
Bug: 271332558
Test: touch works fine.
Change-Id: Ide72bcaad7f2ecf5e38c5958cb93787726213eba
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
|
|
Free IRQ before touch_offload, cpu_latency_qos and raw_data_buffer
because those functions are used in interrupt handler.
Bug: 263591433
Test: reboot the device.
Change-Id: Ibac7ee297f5911019a4cb8771e0e8fa9ae0ea2c7
Signed-off-by: davidycchen <davidycchen@google.com>
|
|
Let the interrupt handler clean up any pending completion if
syna_dev_suspend() is not run yet.
Bug: 252698616
Test: Add a debug patch that sends a command when the device is going
to sleep but syna_dev_suspend() is not run yet and confirm
the cmd_completion is cleaned up.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: If242c6aee7978194de25661138ade9a8a3842e06
|
|
Example:
syna_debug_dump: dump: #8: 2.400(0.678) D(1, -4).
syna_debug_dump: dump: #7: 2.400(0.686) D(-53, 47).
syna_debug_dump: dump: #5: 2.409(0.698) D(0, 12).
syna_debug_dump: dump: #6: 2.409(0.698) D(-29, 11).
syna_debug_dump: reset 0, longest 0.994.
syna_debug_dump: dump: cnt 11, wet 0, palm 0.
Doc: go/no_touch_debug_1p
Bug: 242128411
Test: adb bugreport
Test: Turn off display.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Id2842f786ca8bbeb22b168946cbda8594c7654fe
|
|
Example:
syna_hc_dump: dump-int: #15217(2.63): S#67(+) C#7488(0x0).
syna_hc_dump: dump-int: #15218(2.60): S#67 C#7489(0x0)(+).
syna_hc_dump: dump-int: #15219(2.60): S#67 C#7489(0x0).
syna_hc_dump: dump-int: #15220(2.59): S#68(+) C#7489(0x0).
Doc: go/no_touch_debug_1p
bug: 242128411
Test: adb bugreport
Test: Turn off display.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Icc6b6f3fcc7373693b29e1ea5ccdeb577ba896c9
|
|
Remove the early return in the suspend function to make sure the
reset process in resume function can help recover the touch issue.
Use the same event workqueue for reset callback to make sure the
callback won't run after device suspend.
Bug: 240887667
Test: Add the error code in suspend function and make sure the touch
can be recover by the error handling.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I5ec126964ba445ebc5a406a68c945e99ab4f27b8
|
|
When the screen is off, touch driver releases all the input touch
events. This makes the status different from touch_offload so we
need to synchronize the status.
Bug: 238536533
Test: Touch events are cleared while suspending.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I65e22a9ddc5d4366be5992afd082af390ff65f43
|
|
When there is a command triggered from a workqueue is still pending,
a new command is sent from the interrupt handler causes the touch IC
returns a pending error code.
Move the setting commands in the interrupt handler to workqueue to
avoid the above issue.
Bug: 239181810
Test: Keep toggling the settings and scrolling the screen.
watch -n2 "adb shell stop twoshay; sleep 1; adb shell start twoshay"
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Idb5a39147da56c2f3942280f6567ae696e3f1449
|
|
Bug: 241032876
Test: Touch working as expected.
Test: twoshay requested cancel_reporting successfully.
Signed-off-by: Mark Chang <changmark@google.com>
Change-Id: I03b497084f50c90f2d3be092f28eb95f131041db
|
|
Bug: 239384823
Test: getevent -ltr and check MT_TOOL_PALM is reported.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I342ba3133e601e3b37206c86f660d441b5c52793
|
|
Before this patch, the touch_offload_reserve_frame() and the
touch_offload_queue_frame() are call in different interrupts.
Let both function be called in the same interrupt.
Bug: 236763752
Test: enable/disable the twoshay while sliding without getting issue.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I56ba750dfdbb50bb6a2b9b73cefd3e5f8e56638a
|
|
Bug: 235176060
Test: Touch is working fine.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I8a5d2403db297cbf4c30655d64066c477c0b244f
|
|
This reverts commit 04e6abfcb8bd29c48908e4fbddd1b9bba4cb33c7.
Reason for revert: introduced race condition
Bug: 234745637
Change-Id: Ie7aab658f515954b5c044ae190bc7d0d75f3b59a
Signed-off-by: Jonglin Lee <jonglin@google.com>
|
|
Create a work for those settings commands when the offload_running
status changes to avoid to poll response event which may bypass
other touch events.
Bug: 233827001
Test: Turn the twoshay on and off and check all setting commands
works.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I8612e2d8ef216ba3a1b6d6340c15dd2875d531cd
|
|
Skip to send any command when the touch is off.
Bug: 233023888
Test: build pass and touch works.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I4404714743e200a025a919df1d83dd60e5f7545b
|
|
Restore all the setting when an unexpected reset is detected.
Bug: 233025101
Test: trigger reset with adb command and check if all the settings
are correct.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I1a6266b45c04d5996b05de1ccdafb401d44f7748
|
|
Support tags moisture test.
Bug: 232768414
Test: cat sys/class/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs/\
testing/pt_moisture
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: If5dc4f7ff02db93d72edb62f97867734bfe73750
|
|
Update the vendor driver to v1.2.7 to support touch orientation and
google defined major/minor.
Add the touch offload capability for orientation.
Bug: 227402881.
Test: Check the touch reports by getevent.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I42277e0e717b22c56ec0482fcb42c962b1d910d7
|
|
Add more trace point in the interrupt process so we can have more
detail information when we get the systrace.
Bug: 231409427
Test: trigger systrace and check the perfetto result.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I439efb3668abf74fee763a9573122e0e91e853c3
|
|
Dynamic change the touch report rate depending on the display refresh
rate.
Bug: 222217451
Test: Switch the display refresh rate while finger is sliding without
issue.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ia258208d644ef2b0c94b3a2296e5d8253cae1774
|
|
Release all touch events when the touch resumes to make sure there is
no any stuck event after the touch suspends.
Bug: 228422103
Test: No stuck point after suspend and resume.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I30f3e4a00be1a07d44ae59c47699a331930960ef
|
|
Bug: 199104356
Test: Touch works normally.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I943708f5c1adab3e20fe7f26f15ec54f5d0df668
|
|
Bug: 227697090
Test: Build KASAN and flash kernel image.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I73db27671a65f3218ca4382b66afc02fca306a53
|
|
into android13-gs-pixel-5.10
|
|
Trigger reset and retry when the suspend process fails to make sure
touch can enter low power mode.
Bug: 227139770
Test: Suspend successfully after reset.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ib13b7483272ea10e4589417ce6f0561f3d66de6a
|
|
Bug: 224887334
Test: Touch is workable.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I0a9cf3563fb2ebc0b42af1f01cc7dc4146d64cc2
|
|
into android13-gs-pixel-5.10
|
|
Bug:225748667
Test: touch is workable.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: If8ad53e3f9cb2531836b5e717f50f87031d7f492
|
|
Bug: 225749851
Test: grip/palm mode status correct.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ic41be11d2b41b0386e7cc224f8f726151560c821
|
|
android13-gs-pixel-5.10
|
|
Read the heatmap compression threshold from the device tree and add
an attribute for debugging.
Bug: 223101478
Test: Be able to configure the compression threshold by attribute.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ia3d7f4efd3894d304e43f76224dd1d89f83a658a
|
|
Queue the firmware update delay work again when it fails.
Bug: 223725391
Test: Firmware update successfully.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I9521fd83a78aaf7ca34372407f7fb49bf18af53f
|
|
Bug: 220992096
Test: LHBM is off right after finger leaves.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ibc4fda47f8c3faca57b03b8a675e271c8051baa9
|
|
Remove the heatmap timer and add a flag to make sure the heatmap
frame will not be allocated without queuing.
Bug: 222597960
Test: enable twoshay without getting ramdump.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ifda65afe30f056c50faf714ff3645c24a12dfe66
|
|
android13-gs-pixel-5.10
|
|
Read the resolution from device tree and report touch major and minor
in display pixels.
Bug: 221383103
Test: adb shell getevelt -lt
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I17f095509c36501f65f3428f98a6fb10328d40d9
|
|
Bug: 221311444
Test: remove touch module during touch resume.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I1e83cc22ccff8126cf7040654a7d8cc60ad43204
|
|
* changes:
synaptics: enable continuously touch reporting
synaptics: support to enable/disable the firmware grip and plam mode
|
|
Support dynamic changing motion filter status and continuously report
touch coordinates and heatmap for 500ms when there is only one finger
on the screen.
Bug: 199104356.
Test: Motion filter status is correct for single finger and multiple
fingers.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I428f1b9d91779f6fe5376bd38980513f33fa4d8d
|
|
Support to enable/disable the firmware grip/palm by sysfs node and
dynamically change the mode depending on offload_running status.
Bug: 199104316
Test: write sysfs node and check if the mode changing correctly.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I00318352b1146210ed582265f4c82c386f228e4b
|
|
Bug: 199104314
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I05cccd8202e81b6ff71f11f763046a39c1514ea0
|
|
Bug: 199104315.
Test: install v4l-heatmap-viewer.apk to check the result.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ieddfccec618e92b0f71abba6ef7a28c24509fe33
|
|
Add touch offload to upsteam the touch heatmap.
Bug: 199104316
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I96177718ec42d8c55867d35f27789e627cc46292
Signed-off-by: davidycchen <davidycchen@google.com>
|
|
Modify the heatmap report code from 0xc1 to 0xc3 to align with
the touch firmware.
Bug: 213998822
Test: Touch is workable.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I1113dd68e4f8b930ed87ca40cdf0fb4007838e11
|
|
Add some retry mechanism for probe and resume functiom to let
the driver recover touch by itself.
Bug: 214087829
Bug: 214484327
Test: touch is workable.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I5a800d746a9dd451074b8775f50a1c697ca1578f
|
|
Bug: 201008142.
Test: bus negotiates successfully.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ia38ac64b3b8c9ab6cbbe535aee190c22804ebf84
|
|
Disable touch heatmap when the touch suspends otherwise the heatmap
will keep reporting heatmap when the low power gesture mode is enabled.
Bug: 199104336
Test: flash kernel image.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I0922c76f7d3b2b6f1186fcc797f692b582ab5ac3
|
|
Support two more testing
- PID$12: Abs. Raw
- PID$16: Trans Cap. Raw
Correct the sequence of suspend-reset especially RESET_ON_RESUME
enabled.
Sample code to parse the custom gesture data.
Enable RESET_ON_RESUME in default.
Bug: 211379827
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I888d0c68aa53020eb0e153105920b0fed133d8cb
|
|
Update core lib. to 1.21
Bugs fixed.
Have a callback to handle unexpected identify report generated from
firmware.
Able to handle the extra CRC bytes.
Have the helper thread support.
- Enable 'ENABLE_HELPER' if willing to activate this feature.
- Have a sample code to start a helper task when an unexpected reset
is detected.
Set device into bootloader mode if failing to set up app fw.
Support custom 'fw status' report ($c2).
Add the implementations of custom gesture.
- 'ENABLE_WAKEUP_GESTURE' is disabled in default.
Enable if willing to enter LPWG mode in suspend.
Bug: 208162255
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Idfd45502293aa6fa42b8602a9bc663cb85301a45
|