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

Commit 5d7d9d76 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

input: qcom-hv-haptics: ignore pattern_src when checking hBoost ready



Commit b610aa2d70a3 ("input: qcom-hv-haptics: Ignore checking HBoost status
when SWR is playing") is added to ignore checking hBoost ready status when
triggering a non-FIFO play with SWR playing in the background. This should
be also applicable when triggering a FIFO play, so remove the pattern_src
check as the HBoost should be always ready when triggering the play with
SWR playing in the background.

Change-Id: If3d5ff7138e189c81991775d7814229c4d0e8c0a
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 07071b6c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1357,13 +1357,11 @@ static int haptics_wait_hboost_ready(struct haptics_chip *chip)
			return 0;

		/*
		 * If the coming request is not FIFO play and there is
		 * already a SWR play in the background, then HBoost will
		 * be kept as on always hence no need to wait its ready.
		 * If there is already a SWR play in the background, then HBoost
		 * will be kept as on hence no need to wait its ready.
		 */
		mutex_lock(&chip->play.lock);
		if (chip->play.pattern_src != FIFO &&
				is_swr_play_enabled(chip)) {
		if (is_swr_play_enabled(chip)) {
			dev_dbg(chip->dev, "Ignore waiting hBoost when SWR play is in progress\n");
			mutex_unlock(&chip->play.lock);
			return 0;