From 75cf6e2792852539fdfa479e47deeaed05113171 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Tue, 1 Sep 2020 16:01:44 +0800 Subject: [PATCH] input: misc: qcom-hv-haptics: disable auto resonance for FIFO streaming Auto resonance needs to be disabled for FIFO streaming mode. Hence disable it when playing custom FIFO data. Change-Id: I11bb2e944bebf642b780b964bdea7907cae3c843 Signed-off-by: Fenglin Wu --- drivers/input/misc/qcom-hv-haptics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/qcom-hv-haptics.c b/drivers/input/misc/qcom-hv-haptics.c index 347403232f81..f655a05418ee 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -1688,7 +1688,7 @@ static int haptics_init_custom_effect(struct haptics_chip *chip) chip->custom_effect->vmax_mv = chip->config.vmax_mv; chip->custom_effect->t_lra_us = chip->config.t_lra_us; chip->custom_effect->src = FIFO; - chip->custom_effect->auto_res_disable = false; + chip->custom_effect->auto_res_disable = true; return 0; }