summaryrefslogtreecommitdiff
path: root/vibrator
diff options
context:
space:
mode:
authorchasewu <chasewu@google.com>2019-12-19 19:29:34 +0800
committerChase Wu <chasewu@google.com>2020-01-08 09:15:22 +0000
commitcdcd61901a8ab3c122d83db1cc0c8f6e901b3f41 (patch)
tree67034993ca437a0d875588d6a1716f94024196ad /vibrator
parentf9f319dd8597c01c226baca9c8cc5b5a9c50c7db (diff)
downloadsunfish-cdcd61901a8ab3c122d83db1cc0c8f6e901b3f41.tar.gz
vibrator: Remove haptics intensity support
1. Remove haptics intensity support 2. Stick TEXTURE_CLICK effect strength to level 1 Bug: 146540987 Bug: 147334606 Test: manual check the mapping od_clamp value Change-Id: I48e0b751c861b7ec9b12189c5ad0baf25a73d616 Signed-off-by: chasewu <chasewu@google.com>
Diffstat (limited to 'vibrator')
-rw-r--r--vibrator/drv2624/Vibrator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vibrator/drv2624/Vibrator.cpp b/vibrator/drv2624/Vibrator.cpp
index 32e4f76a..7067b5ca 100644
--- a/vibrator/drv2624/Vibrator.cpp
+++ b/vibrator/drv2624/Vibrator.cpp
@@ -371,6 +371,7 @@ Return<void> Vibrator::performEffect(Effect effect, EffectStrength strength, per
case Effect::TEXTURE_TICK:
mHwApi->setSequencer(WAVEFORM_TICK_EFFECT_SEQ);
timeMS = mTickDuration;
+ volOffset = TEXTURE_TICK;
break;
case Effect::CLICK:
mHwApi->setSequencer(WAVEFORM_CLICK_EFFECT_SEQ);