[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:
parent
28ba1240c5
commit
f19351f3a9
1 changed files with 4 additions and 0 deletions
|
@ -1508,6 +1508,10 @@ ndk::ScopedAStatus Vibrator::getCompoundDetails(Effect effect, EffectStrength st
|
|||
}
|
||||
|
||||
*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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue