gs101: 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: 195894512
Test: verified that different actuator model configs are used on
different targets
Change-Id: Ic7fd5f52c3bfed252fa3956f3e926c90c1632013
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 0d67432..636a46d 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -221,6 +221,11 @@
SOONG_CONFIG_aoc_audio_func_aosp_build := true
endif
+SOONG_CONFIG_NAMESPACES += haptics
+SOONG_CONFIG_haptics += \
+ actuator_model
+SOONG_CONFIG_haptics_actuator_model := $(ACTUATOR_MODEL)
+
# Primary AudioHAL Configuration
#BOARD_USE_COMMON_AUDIOHAL := true
#BOARD_USE_CALLIOPE_AUDIOHAL := false