Commit graph

2 commits

Author SHA1 Message Date
LuK1337
04cf04fab5 sm8250-common: vibrator: Implement OOS style effects for LED vibrator
This change implements the following effects:
- Effect::CLICK
- Effect::DOUBLE_CLICK
- Effect::TICK
- Effect::HEAVY_CLICK

Effect write streams were dumped using following strace command:
- strace -fp `pidof vendor.oneplus.hardware.lmvibrator@1.0-service` -e openat,write

Also, these effects can easily be tested with following test app:
- https://github.com/luk1337/VibeTest

Change-Id: Ie65caa0c65dc81bb35a7bcc56870649e895ced3f
2021-04-14 18:57:16 +02:00
LuK1337
dc3d086fbd sm8250-common: Import QTI vibrator HAL
Change-Id: I6ed3252c6da746c8fb24f44b3b3ec2b1f32a6cb2
2021-04-14 18:57:16 +02:00