Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 810fcd9e authored by Fenglin Wu's avatar Fenglin Wu
Browse files

input: qcom-hv-haptics: set Vmax before toggling HAPTICS_EN in FIFO play



Currently, HAPTICS_EN bit is toggled whenever a FIFO pattern is played
followed by setting Vmax. However, this would issue a SWR_VMAX handshake
and then follow a SPMI_VMAX handshake in HW if haptics effect is played
over SWR bus in the background. This back to back Vmax handshake would
potentially cause the HW not responding and no vibration being played.

To address this, set the Vmax before toggling HAPTICS_EN bit to avoid
back to back Vmax handshakes when SWR and FIFO are played concurrently.

Change-Id: I0b8924ab7f369db446458fe2510a0da01519a978
Signed-off-by: default avatarFenglin Wu <quic_fenglinw@quicinc.com>
parent 95403302
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment