diff options
author | Tai Kuo <taikuo@google.com> | 2021-10-07 15:29:58 +0800 |
---|---|---|
committer | Tai Kuo <taikuo@google.com> | 2021-10-07 16:24:07 +0800 |
commit | b828c0b27f48d55ab6902eb996f1ead3c7354829 (patch) | |
tree | dbae6c715d32f3210a319638f32ca4d199b3470f | |
parent | 97ea27dca4646334aa3c841805d82c6a05605dcf (diff) | |
download | pixel-b828c0b27f48d55ab6902eb996f1ead3c7354829.tar.gz |
vibrator: cs40l26: set f0_offset for long vibration
Bug: 197640105
Test: Check driver attribute default/f0_offset.
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I1e9136ecdfaeb9e6155a45e0719d27c314fb4a68
-rw-r--r-- | vibrator/cs40l26/Vibrator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vibrator/cs40l26/Vibrator.cpp b/vibrator/cs40l26/Vibrator.cpp index e0430f52..e4a28ea9 100644 --- a/vibrator/cs40l26/Vibrator.cpp +++ b/vibrator/cs40l26/Vibrator.cpp @@ -388,7 +388,7 @@ ndk::ScopedAStatus Vibrator::off() { mActiveId = -1; setGlobalAmplitude(false); - + mHwApi->setF0Offset(0); return ndk::ScopedAStatus::ok(); } @@ -405,7 +405,7 @@ ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, timeoutMs += MAX_COLD_START_LATENCY_MS; } setGlobalAmplitude(true); - + mHwApi->setF0Offset(mF0Offset); return on(timeoutMs, index, callback); } |