mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
aw8697: boost ram loop mode playback
Awinic suggested to boost RAM loop mode haptics playback. Change-Id: I7b9ac1368809360ed6c38d3a624aeee9d24c1846 Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/1479394 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:
parent
ebbb8b02c3
commit
7f7f562b77
1 changed files with 2 additions and 2 deletions
|
|
@ -543,7 +543,7 @@ static int aw8697_haptic_play_mode(struct aw8697 *aw8697,
|
|||
AW8697_BIT_SYSCTRL_PLAY_MODE_RAM);
|
||||
aw8697_i2c_write_bits(aw8697, AW8697_REG_SYSCTRL,
|
||||
AW8697_BIT_SYSCTRL_BST_MODE_MASK,
|
||||
AW8697_BIT_SYSCTRL_BST_MODE_BYPASS);
|
||||
AW8697_BIT_SYSCTRL_BST_MODE_BOOST);
|
||||
if (aw8697->auto_boost) {
|
||||
aw8697_i2c_write_bits(aw8697, AW8697_REG_BST_AUTO,
|
||||
AW8697_BIT_BST_AUTO_BST_RAM_MASK,
|
||||
|
|
@ -4023,7 +4023,7 @@ static void aw8697_vibrator_work_routine(struct work_struct *work)
|
|||
aw8697_haptic_upload_lra(aw8697, 1);
|
||||
if (aw8697->state) {
|
||||
if (aw8697->activate_mode == AW8697_HAPTIC_ACTIVATE_RAM_MODE) {
|
||||
aw8697_haptic_ram_vbat_comp(aw8697, true);
|
||||
aw8697_haptic_ram_vbat_comp(aw8697, false);
|
||||
aw8697_haptic_play_repeat_seq(aw8697, true);
|
||||
} else if (aw8697->activate_mode ==
|
||||
AW8697_HAPTIC_ACTIVATE_CONT_MODE) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue