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

Commit b58cc8f1 authored by jabashque's avatar jabashque Committed by MajorP93
Browse files

aw8697: Drop OPLUS_HAPTIC_OOS changes for setting vmax to 100-109

There is a weird discontinuity in vibration strength when changing vmax
from 90 to 100 and from 100 to 110. This looks to be some change related
to OOS haptics, but since we're not using that, we can just drop this
change.

Change-Id: Ibe912b4c6e820b858dc34c7c8dfd80c51aa2a3fd
parent ea60e0c0
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -8543,22 +8543,6 @@ static ssize_t aw8697_vmax_store(struct device *dev,
        aw8697->gain = AW8697_HAPTIC_RAM_VBAT_COMP_GAIN;
    }

#ifdef CONFIG_OPLUS_HAPTIC_OOS
	if (val == 100 || val == 101 || val == 102 || val == 105) {
		aw8697->vmax = 0x16;
		aw8697->gain = 0x50;
	} else if (val == 103 || val == 106) {
		aw8697->vmax = 0x16;
		aw8697->gain = 0x60;
	} else if (val == 104 || val == 107) {
		aw8697->vmax = 0x16;
		aw8697->gain = 0x70;
	} else if (val == 108 || val == 109) {
		aw8697->vmax = 0x16;
		aw8697->gain = 0x80;
	}
#endif

    aw8697_haptic_set_gain(aw8697, aw8697->gain);
    aw8697_haptic_set_bst_vol(aw8697, aw8697->vmax);
#else