aw8695: Stop repeatedly waveform playing

Stop repeatedly waveform playing when receive a stop command.

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: I3147d49c1d9d47dd8586250d9fd2155cd2ab0698
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1611611
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
yangjq 2020-06-10 17:56:48 +08:00 • committed by Jianqi Yang
commit 7d98ee3f20

View file

@ -1856,6 +1856,10 @@ static void aw8695_vibrate(struct aw8695 *aw8695, int value)
int seq = 0;
mutex_lock(&aw8695->lock);
#ifdef AW8695_REPEAT_RTP_PLAYING
if (aw8695->haptic_mode == HAPTIC_RTP_LOOP)
aw8695->haptic_mode = HAPTIC_RTP;
#endif
aw8695_haptic_stop(aw8695);
if (aw8695->index == 0x02)
__pm_relax(aw8695->ws);