Explorar o código

QMAA: comiple audio driver when OVERRIDE_AUDIO is true

original logic will skip audio compiling even
TARGET_USES_QMAA_OVERRIDE_AUDIO flag is true when global QMAA is true.
update the logic to keep audio driver compiled if override is taking effect.

Change-Id: I21c3a9b48aea75f180eab4391d48976450944a69
Signed-off-by: Junkai Cai <[email protected]>
Junkai Cai %!s(int64=3) %!d(string=hai) anos
pai
achega
1c386e34fc
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      audio_kernel_vendor_board.mk

+ 11 - 1
audio_kernel_vendor_board.mk

@@ -1,5 +1,15 @@
 # Build audio kernel driver
-ifneq ($(TARGET_USES_QMAA),true)
+ifeq ($(TARGET_USES_QMAA),true)
+ifeq ($(TARGET_USES_QMAA_OVERRIDE_AUDIO),true)
+BUILD_AUDIO_MODULES := true
+else
+BUILD_AUDIO_MODULES := false
+endif
+else
+BUILD_AUDIO_MODULES := true
+endif
+
+ifeq ($(BUILD_AUDIO_MODULES),true)
 ifneq ($(TARGET_BOARD_AUTO),true)
 ifeq ($(call is-board-platform-in-list,$(TARGET_BOARD_PLATFORM)),true)
 BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/q6_notifier_dlkm.ko\