Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e17788b1 authored by tianlang.zhou's avatar tianlang.zhou
Browse files

[FP4-1546]:aw8695 vibrator use 2 wave index

&&&%%%comment:[FP4]:aw8695 vibrator use 2 wave index
&&&%%%bug number:FP4-1546
&&&%%%product name:sm7225_r_fp4
&&&%%%jira id:FP4-1546
&&&%%%root cause:coding
&&&%%%Bug category:T2M
&&&%%%Module_Impact:kernel
&&&%%%Test_Suggestion:NA
&&&%%%Solution:NA
&&&%%%Test_Report:local test ok
&&&%%%VAL Can Test:NA&&%%%VAL Can Test:NO
parent d2bd51e5
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -1203,17 +1203,9 @@ static int aw8695_haptic_ram_config(struct aw8695 *aw8695)
    unsigned char wavloop = 0;
    pr_info("%s duration =%d\n", __func__, aw8695->duration);

    if ((aw8695->duration >0 ) && (aw8695->duration <= 20)){//index 3 0~20ms
    if ((aw8695->duration >0 ) && (aw8695->duration <= 50)){//index 3 0~20ms
        aw8695->index = 1;
    } else if((aw8695->duration >20 ) && (aw8695->duration <= 40)){//index 2 20~30ms
        if(aw8695_test_index)
            aw8695->index = aw8695_test_index;
        else {
            /* code */
            aw8695->index = 5;
        }
    } else if((aw8695->duration >40 ) && (aw8695->duration <= 60)){//index 1 30~60ms
        aw8695->index = 6;

    } else {//index 4  	 >60ms
        aw8695->index = 2;
        wavloop = 15;