cs40l26: Improve the performance for primitive effects
When we call eraseOwtEffect() in HAL, the ff core will call kernel stop()
before calling the cs40l26_erase_owt() and it will wait for the SVC
waveform protecting time every time.
Under our use case, the vibrator should under stop status before we call
the eraseOwtEffect(). So, in eraseOwtEffect(), we turn off this protecting
time before we do the EVIOCRMFF and turn on it at the end of the
eraseOwtEffect().
Bug: 261687849
Test: atest PtsVibratorHalTestSuite \
PtsHapticsTestCases \
VibratorHalCs40l26TestSuite \
VtsHalVibratorManagerTargetTest \
VtsHalVibratorTargetTest \
android.os.cts.VibratorTest \
android.os.cts.VibratorManagerTest \
android.os.cts.VibrationEffectTest \
android.os.cts.VibrationAttributesTest \
android.os.cts.CombinedVibrationTest \
Change-Id: I48a2ad30dfb7069955ca8e5139756d0e3390fd29
Signed-off-by: Chase Wu <chasewu@google.com>
3 files changed