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

Commit 63533987 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: qti-haptics: Clear PLAY bit after all pattern is played"

parents e94525b2 2b73670c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -744,6 +744,9 @@ static irqreturn_t qti_haptics_play_irq_handler(int irq, void *data)
			chip->play_irq_en = false;
		}

		/* Clear PLAY after all pattern bytes are queued */
		qti_haptics_play(chip, false);

		goto handled;
	}

@@ -966,10 +969,6 @@ static int qti_haptics_playback(struct input_dev *dev, int effect_id, int val)
				enable_irq(chip->play_irq);
				chip->play_irq_en = true;
			}
			/* Toggle PLAY when playing pattern */
			rc = qti_haptics_play(chip, false);
			if (rc < 0)
				return rc;
		} else {
			if (chip->play_irq_en) {
				disable_irq_nosync(chip->play_irq);