From 11403b25c98810a2d07a6fc6f51206ce6dc95181 Mon Sep 17 00:00:00 2001 From: Chase Wu Date: Thu, 23 Jun 2022 20:32:44 +0800 Subject: [PATCH] add haptics actuator model config Actuator models can vary across devices. Actuator models can have different characteristics that need to be handled appropriately. Add support to define the actuator model used in Soong makefiles. Bug: 236202962 Test: verified that different actuator model configs are used on different targets Signed-off-by: Chase Wu Change-Id: I4b4c5e26c52f410ec36f9b8959e8fadd2ea19b0f --- BoardConfig-common.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index 9f8e5198..de2f8ac4 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -252,6 +252,9 @@ endif # SoundTriggerHAL Configuration #BOARD_USE_SOUNDTRIGGER_HAL := false +# Vibrator HAL actuator model configuration +$(call soong_config_set,haptics,actuator_model,$(ACTUATOR_MODEL)) + # HWComposer BOARD_HWC_VERSION := hwc3 TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := false