From f680529e42ac3aa8a20f0aa31a44e1ee8918cead Mon Sep 17 00:00:00 2001 From: chasewu Date: Thu, 14 Apr 2022 15:30:02 +0800 Subject: [PATCH] vibrator: add device specific constants Add device specific constants required for calculating the bandwidth amplitude map Bug: 230807667 Test: verify the property values on P21 devices Signed-off-by: chasewu Change-Id: I9716e3d39e4196825baeebec5c968e470aa644ee --- device-oriole.mk | 4 +++- device-raven.mk | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/device-oriole.mk b/device-oriole.mk index 6b0468e..53602c1 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -135,7 +135,9 @@ DEVICE_MANIFEST_FILE += \ # Vibrator HAL PRODUCT_PRODUCT_PROPERTIES +=\ - ro.vendor.vibrator.hal.long.frequency.shift=15 + ro.vendor.vibrator.hal.long.frequency.shift=15 \ + ro.vendor.vibrator.hal.device.mass=0.205 \ + ro.vendor.vibrator.hal.loc.coeff=2.25 ACTUATOR_MODEL := luxshare_ict_081545 diff --git a/device-raven.mk b/device-raven.mk index db274e3..0a8f1de 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -151,7 +151,9 @@ DEVICE_MANIFEST_FILE += \ # Vibrator HAL PRODUCT_PRODUCT_PROPERTIES +=\ - ro.vendor.vibrator.hal.long.frequency.shift=15 + ro.vendor.vibrator.hal.long.frequency.shift=15 \ + ro.vendor.vibrator.hal.device.mass=0.21 \ + ro.vendor.vibrator.hal.loc.coeff=2.5 ACTUATOR_MODEL := luxshare_ict_081545