mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
dlkm: vibrator: No vibration when media controls working.
details; No vibration when media controls working Change-Id: Id8820adc0d0eb5c8dfc20a27df87a1410e307278 Signed-off-by: kankan5 <kankan5@motorola.com> Reviewed-on: https://gerrit.mot.com/2246470 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhenghai Pan <panzh2@lenovo.com> Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
7149d8c4e8
commit
8f836ad86e
1 changed files with 3 additions and 3 deletions
|
|
@ -70,10 +70,10 @@ static void ext_vib_work(struct work_struct *work)
|
|||
if (chip->dis_short_long) {
|
||||
pr_warn("vib in dis short and long, play ms=%lld, dis_longms=%d\n",chip->vib_play_ms, chip->dis_long_ms);
|
||||
if (chip->vib_play_ms > chip->dis_long_ms) {
|
||||
ret = gpio_direction_output(chip->vcc_2v6_Pin, chip->state);
|
||||
#ifdef CONFIG_VIBRATOR_NOISE_CAMERA
|
||||
mot_actuator_on_vibrate_start();
|
||||
#endif
|
||||
ret = gpio_direction_output(chip->vcc_2v6_Pin, chip->state);
|
||||
}
|
||||
else {
|
||||
ret = gpio_direction_output(chip->vcc_3v0_Pin, chip->state);
|
||||
|
|
@ -96,6 +96,8 @@ static void ext_vib_work(struct work_struct *work)
|
|||
}
|
||||
else {
|
||||
if (chip->pwr_by_gpio) {
|
||||
gpio_direction_output(chip->vcc_2v6_Pin, chip->state);
|
||||
gpio_direction_output(chip->vcc_3v0_Pin, chip->state);
|
||||
#ifdef CONFIG_VIBRATOR_NOISE_CAMERA
|
||||
if (chip->dis_short_long) {
|
||||
if (chip->vib_play_ms > chip->dis_long_ms) {
|
||||
|
|
@ -103,8 +105,6 @@ static void ext_vib_work(struct work_struct *work)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
gpio_direction_output(chip->vcc_2v6_Pin, chip->state);
|
||||
gpio_direction_output(chip->vcc_3v0_Pin, chip->state);
|
||||
}
|
||||
else if (regulator_en_flag) {
|
||||
regulator_en_flag = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue