mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02: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
f49f146a30
commit
e9318ded52
|
|
@ -1238,13 +1238,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 New Issue
Block a user