diff options
author | chasewu <chasewu@google.com> | 2018-11-06 11:35:53 +0800 |
---|---|---|
committer | Chase Wu <chasewu@google.com> | 2018-11-15 12:52:51 +0000 |
commit | 1ebae380a1b784f4660a235b7cd36e3e3364e936 (patch) | |
tree | 953b797164362986619de11ddadb2de5eb3799f6 /device-bonito.mk | |
parent | 1a8589912e5ff0b9c709bf87316aa893b6c501fe (diff) | |
download | bonito-1ebae380a1b784f4660a235b7cd36e3e3364e936.tar.gz |
haptics: Add a dynmaic voltage and frequency switch mechanism
1. From haptics tuning meeting, this patch add a dynamic
voltage/frequency switch mechanism to make haptics feel better
under each kind of criteria.
S4
For short vibration: Voltage 2.1V, F0
For long vibration: Voltage 1.5V, F=155Hz
B4
For short vibration: Voltage 2.5V, F0
For long vibration: Voltage 1.5V, F=155Hz
Bug: 119149580
Test: manual check the voltage value after each haptics
Change-Id: I2c3e88fe0c4dcb9b164179d0ddb6504f059d077a
Signed-off-by: chasewu <chasewu@google.com>
Diffstat (limited to 'device-bonito.mk')
-rw-r--r-- | device-bonito.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/device-bonito.mk b/device-bonito.mk index 03a4078d..867fce2b 100644 --- a/device-bonito.mk +++ b/device-bonito.mk @@ -31,7 +31,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_SYSTEM_DEFAULT_PROPERTIES +=\ ro.vibrator.hal.click.duration=7 \ ro.vibrator.hal.tick.duration=2 \ - ro.vibrator.hal.heavyclick.duration=10 + ro.vibrator.hal.heavyclick.duration=10 \ + ro.vibrator.hal.short.voltage=125 \ + ro.vibrator.hal.long.voltage=75 \ + ro.vibrator.hal.long.lra.period=262 # DRV2624 Haptics Waveform PRODUCT_COPY_FILES += \ |