[DO NOT MERGE] cs40l26: Report the duration time when using DOUBLE_CLICK effect am: f19351f3a9

Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20865902

Change-Id: I4ce46f5a13f01b1091e87564efc9b913b1f10b8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chase Wu 2023-01-04 10:15:58 +00:00 committed by Automerger Merge Worker
commit f8309a3b7e

View file

@ -1508,6 +1508,10 @@ ndk::ScopedAStatus Vibrator::getCompoundDetails(Effect effect, EffectStrength st
} }
*outTimeMs = timeMs; *outTimeMs = timeMs;
mFfEffects[WAVEFORM_COMPOSE].replay.length = static_cast<uint16_t>(timeMs);
if (mIsDual) {
mFfEffectsDual[WAVEFORM_COMPOSE].replay.length = static_cast<uint16_t>(timeMs);
}
return ndk::ScopedAStatus::ok(); return ndk::ScopedAStatus::ok();
} }