From 58180f0c162d53d9fbf196b81e66274f3d7eb4c8 Mon Sep 17 00:00:00 2001 From: Vince Leung Date: Fri, 27 Aug 2021 03:50:21 +0000 Subject: [PATCH] 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 --- BoardConfig-common.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index 0d67432e..636a46d6 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -221,6 +221,11 @@ SOONG_CONFIG_aoc_audio_func += aosp_build 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