Commit graph

4 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
LuK1337
8b1be26d37 sm8250-common: Switch to common QTI vibrator HAL implementation
Change-Id: I2c884e951d2dc9285f86926eb88107be65bcce1f
2021-01-06 11:18:27 +01:00
LuK1337
be40ae3083 sm8250-common: Import and build QTI vibrator HAL
* The one in vendor requires some special OnePlus FWK bits.

Change-Id: I5d3be54b2aa3ab35d5a6f88b831ea6abbe8279c7
2020-11-23 15:10:40 +01:00