Commit Graph

11 Commits

Author SHA1 Message Date
LuK1337 b96c9c1ecf sm8150-common: vibrator: Make effects constexpr again
Change-Id: I7bacf3f9d9c73d330de7a9fa8a5450bb36bc3b24
2019-08-11 15:28:22 +02:00
LuK1337 97761fb639 sm8150-common: vibrator: Store VMAX and GAIN as strings
Change-Id: I1d3a6e2318fbbea6d33e8d16797ed7d712c9ea70
2019-08-07 17:22:37 +02:00
LuK1337 76d2e9ba24 sm8150-common: vibrator: Split performEffect() and on()
Change-Id: I951c2b6059cb2660fe98e2b3e0f7dfcec229ec5f
2019-08-07 17:13:21 +02:00
LuK1337 d34eb44fe3 sm8150-common: vibrator: Simplify everything
Change-Id: Iceb0c087eb2983f5e5ce81e27c0bf87677b13422
2019-08-07 16:22:37 +02:00
LuK1337 18e343d27f sm8150-common: vibrator: Disable amplitude control
Change-Id: I1635ca472ede60aa6a04277aee83feb431b97ad1
2019-08-07 16:07:52 +02:00
LuK1337 2ab127562a sm8150-common: vibrator: Pass proper looking loop and seq values
Change-Id: I861177ed0665afa50cba93098e276149286d1785
2019-08-06 23:29:53 +02:00
LuK1337 c489c9aa43 sm8150-common: vibrator: CTRL_LOOP -> LOOP
Change-Id: I468ddf0355f4b10b2f1d4b4d2b9ab1f819b8a0c3
2019-08-06 23:25:26 +02:00
LuK1337 7294e43d62 sm8150-common: vibrator: Store all vibrator effect presets in struct
Change-Id: Ic8856091ba33a1baedcb2c701140941e8405a031
2019-08-06 20:01:28 +02:00
LuK1337 90a0ca988c sm8150-common: vibrator: Make sure to always reset control loops
Change-Id: Ib2d6144d7a9f53b580050339909c985ee128efb9
2019-08-04 16:56:40 +02:00
LuK1337 c50e560c3e sm8150-common: vibrator: Avoid writing to ACTIVATE_PATH twice
Change-Id: I49ef38fba98e8ff4f4a13a97cce56c3d67d52704
2019-08-04 16:56:15 +02:00
LuK1337 f63996e4ec sm8150-common: Implement custom Vibrator 1.2 HAL
* This HAL implements interface needed for
  amplitude control and use of vibrator effects:
  - click
  - double click
  - tick
  - heavy click
  - pop
  - thud
* The implementation was inspired by darkobas's
  OmniROM HAL but it was totally rewritten by me.

Change-Id: I8574c5676bfb8711222e864394d77dcd7042956f
2019-08-03 19:17:56 +02:00