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

Commit b3a8a1b1 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

input: qcom-hv-haptics: config open-loop drive when hBoost is enabled



With commit 8c194abb ("input: qcom-hv-haptics: delay hBoost turning
off"), the hBoost would be kept as enabled in the 2 seconds after stopping
play. If a new play is triggered in that 2 seconds, the hBoost will be
considered as working in open-loop mode so configure haptics open-loop
drive in such case.

Change-Id: Ibfa533f23a52bd609e2a8564f859ca8835a8fd67
Signed-off-by: default avatarFenglin Wu <quic_fenglinw@quicinc.com>
parent bb300e0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1474,7 +1474,7 @@ static int haptics_open_loop_drive_config(struct haptics_chip *chip, bool en)
	u8 val;

	if ((is_boost_vreg_enabled_in_open_loop(chip) ||
	     is_haptics_external_powered(chip)) && en) {
	     chip->hboost_enabled || is_haptics_external_powered(chip)) && en) {
		/* Force VREG_RDY */
		rc = haptics_masked_write(chip, chip->cfg_addr_base,
				HAP_CFG_VSET_CFG_REG, FORCE_VREG_RDY_BIT,