mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Vibrate 1 second when booting in driver instead in rc
The EVT1A phone with TI's drv2624 vibrator controller would vibrate twice when booting which is not good. So move vibrating from init.mmi.overlay.rc here as TI drv2624's auto-calibration does on boot time. Change-Id: Ie4dd78615fb88785a12c0b523832de17e30da4e2 Signed-off-by: yangjq <yangjq@lenovo.com> Reviewed-on: https://gerrit.mot.com/1227043 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
d8f5ccbb1e
commit
46a8234670
1 changed files with 4 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ struct aw869x *g_aw869x;
|
|||
*
|
||||
******************************************************/
|
||||
static void aw869x_interrupt_clear(struct aw869x *aw869x);
|
||||
|
||||
static void aw869x_vibrate(struct aw869x *aw869x, int value);
|
||||
|
||||
/******************************************************
|
||||
*
|
||||
|
|
@ -211,6 +211,9 @@ static void aw869x_rtp_loaded(const struct firmware *cont, void *context)
|
|||
|
||||
aw869x->rtp_init = 1;
|
||||
pr_info("%s: rtp update complete\n", __func__);
|
||||
|
||||
/* Vibrate for 1 second as TI drv2624's auto-calibration does */
|
||||
aw869x_vibrate(aw869x, 1000);
|
||||
}
|
||||
|
||||
static int aw869x_rtp_update(struct aw869x *aw869x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue