From 7d98ee3f203c77d87d0a9577cacd7abbc8f62325 Mon Sep 17 00:00:00 2001 From: yangjq Date: Wed, 10 Jun 2020 17:56:48 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/1611611 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/misc/awinic/aw8695/aw8695.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/misc/awinic/aw8695/aw8695.c b/drivers/misc/awinic/aw8695/aw8695.c index 321736f9c27d..e7b4c8e2755e 100644 --- a/drivers/misc/awinic/aw8695/aw8695.c +++ b/drivers/misc/awinic/aw8695/aw8695.c @@ -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);