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

DOUBLE_CLICK is a composed effect, but it uses another function to
do the composed process.
When using GPI to trigger a composed effect, HAL needs to update the
overall duration time to chip.

Bug: 263963724
Test: Manully unlock the device
Change-Id: I329fbeff69a56fe990b1ca946bdd30199048ef04
This commit is contained in:
Chase Wu 2023-01-03 15:38:11 +08:00
parent 28ba1240c5
commit f19351f3a9

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();
} }