From d1b5bc1dcf4bcb1e8cd0ee9dd3891bac943d39c5 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 42ce35495d52..14c865ff7af6 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -1668,7 +1668,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; }