audio: use USE_AUDIO_HAL_AIDL instead flag variable

The value of USE_AUDIO_HAL_AIDL is defined in project settings which decide when to use aidl or hidl hal. So, correct audio tables can be included properly.

Bug: 317444263
Test: boot to home, check basic audio functions

Change-Id: Ib3014f41afc291e4bb5fa93935858d458599d933
Signed-off-by: Jasmine Cha <chajasmine@google.com>
This commit is contained in:
Jasmine Cha 2023-12-22 12:32:59 +08:00
parent 37a70467c4
commit cd1405f834

View file

@ -17,7 +17,7 @@
AUDIO_TABLE_FOLDER := comet
# Choose AIDL config by build flag.
ifeq ($(RELEASE_PIXEL_AIDL_AUDIO_HAL),true)
ifeq ($(USE_AUDIO_HAL_AIDL),true)
PRODUCT_SOONG_NAMESPACES += device/google/comet/audio/$(AUDIO_TABLE_FOLDER)/aidl_config
PRODUCT_PACKAGES += audio_aidl_configs