vibrator: Add support for duration based amplitude control
authorSamarV-121 <samarvispute121@pm.me>
Mon, 8 May 2023 10:47:17 +0000 (16:17 +0530)
committerJan Altensen (Stricted) <info@stricted.net>
Sun, 21 May 2023 07:35:53 +0000 (09:35 +0200)
commite37874d4a34f8ffa4238b6adcddc3794c165b47f
tree8913ecd1ae98a5581477368c04e9ef16ef1f59f2
parent1a6c781bae1566d72a329173f92a91fa102b4d74
vibrator: Add support for duration based amplitude control

 * Similar to what samsung is doing on devices without hardware intensity control.
 * Add `$(call soong_config_set,samsungVibratorVars,duration_amplitude,true)` in BoardConfig.mk to enable.

Change-Id: I87a767e00363c36f8bd4d61cb6dd23b5c033a3d3
aidl/vibrator/Android.bp
aidl/vibrator/Vibrator.cpp
aidl/vibrator/Vibrator.h