mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
74fd22263c
commit
7d98ee3f20
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue