aw8697: Use RAM mode for long vibration

Configure long vibration to use RAM mode instead of
CONT mode.

Change-Id: Ife3c08ce775d12796e6435ce8a95d7d7a3448410
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471982
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
awhite6 2019-12-13 14:36:06 -06:00 • committed by Andy White
commit b626f7e340

View file

@ -2467,6 +2467,7 @@ static void aw8697_vibrate(struct aw8697 *aw8697, int value)
break;
case HAPTIC_LONG:
aw8697->duration = value;
aw8697->activate_mode = AW8697_HAPTIC_ACTIVATE_RAM_MODE;
/* wav index config */
aw8697->index = 0x02;
aw8697_haptic_set_repeat_wav_seq(aw8697, aw8697->index);