mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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: Fenglin Wu <fenglinw@codeaurora.org>
This commit is contained in:
parent
07071b6c92
commit
5d7d9d76f6
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue