input: misc: qti-haptics: run a cleanup sequence after vibration

Currently, haptics module is disabled after vibration. Then when a
vibration effect is played after enabling the module again, the play
rate is not set correctly and the 1st half byte of the pattern is
lost during playing.

Fix this by introduce a cleanup sequence which will clear the hardware,
and disable the haptics module after the cleanup sequence is played.

Change-Id: I4fb8a2d2f8aa68aef92f3e4ad3afb67d0c2e670b
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
1 file changed