summaryrefslogtreecommitdiff
path: root/vibrator
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-06-30 19:16:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-06-30 19:16:19 +0000
commit0102c84bd717592f7bcdf6d3aa8bff5acb2d6a24 (patch)
treefedcdd9495313a2200fe5cda4e6768b6924566b4 /vibrator
parent730902211456d013dc3054f67e15cffbbad00c2f (diff)
parentb9b8363715b5a145edf9a4e661f5adca12db37a8 (diff)
downloadpixel-0102c84bd717592f7bcdf6d3aa8bff5acb2d6a24.tar.gz
Merge "cs40l25: Add effect amplitude setting for PWLE" into sc-dev
Diffstat (limited to 'vibrator')
-rw-r--r--vibrator/cs40l25/Vibrator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vibrator/cs40l25/Vibrator.cpp b/vibrator/cs40l25/Vibrator.cpp
index 1cf23e28..b600970f 100644
--- a/vibrator/cs40l25/Vibrator.cpp
+++ b/vibrator/cs40l25/Vibrator.cpp
@@ -692,6 +692,7 @@ ndk::ScopedAStatus Vibrator::composePwle(const std::vector<PrimitivePwle> &compo
return status;
}
+ setEffectAmplitude(VOLTAGE_SCALE_MAX, VOLTAGE_SCALE_MAX);
mHwApi->setEffectIndex(WAVEFORM_UNSAVED_TRIGGER_QUEUE_INDEX);
totalDuration += MAX_COLD_START_LATENCY_MS;