hal: compile voice extensions based on board config flag
Compile voice extensions based on the flag AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS defined in BoardConfigVendor.mk. Change-Id: I06c42bf4b79294fed2077c1d2771ed155f68de00
This commit is contained in:
parent
f3b9a42020
commit
303f51dd95
|
@ -6,12 +6,6 @@ include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_ARM_MODE := arm
|
LOCAL_ARM_MODE := arm
|
||||||
|
|
||||||
#MULTI_VOICE_SESSION_ENABLED := true
|
|
||||||
|
|
||||||
ifdef MULTI_VOICE_SESSION_ENABLED
|
|
||||||
LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED
|
|
||||||
endif
|
|
||||||
|
|
||||||
AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
|
AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
|
||||||
ifneq ($(filter msm8974 msm8226 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),)
|
ifneq ($(filter msm8974 msm8226 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),)
|
||||||
# B-family platform uses msm8974 code base
|
# B-family platform uses msm8974 code base
|
||||||
|
@ -29,10 +23,6 @@ LOCAL_SRC_FILES := \
|
||||||
voice.c \
|
voice.c \
|
||||||
$(AUDIO_PLATFORM)/platform.c
|
$(AUDIO_PLATFORM)/platform.c
|
||||||
|
|
||||||
ifdef MULTI_VOICE_SESSION_ENABLED
|
|
||||||
LOCAL_SRC_FILES += voice_extn/voice_extn.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES += audio_extn/audio_extn.c
|
LOCAL_SRC_FILES += audio_extn/audio_extn.c
|
||||||
|
|
||||||
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_ANC_HEADSET)),true)
|
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_ANC_HEADSET)),true)
|
||||||
|
@ -43,10 +33,6 @@ ifneq ($(strip $(AUDIO_FEATURE_DISABLED_PROXY_DEVICE)),true)
|
||||||
LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
|
LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_INCALL_MUSIC)),true)
|
|
||||||
LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_FM)),true)
|
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_FM)),true)
|
||||||
LOCAL_CFLAGS += -DFM_ENABLED
|
LOCAL_CFLAGS += -DFM_ENABLED
|
||||||
LOCAL_SRC_FILES += audio_extn/fm.c
|
LOCAL_SRC_FILES += audio_extn/fm.c
|
||||||
|
@ -63,6 +49,18 @@ ifneq ($(strip $(AUDIO_FEATURE_DISABLED_SSR)),true)
|
||||||
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound/
|
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS)),true)
|
||||||
|
LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED
|
||||||
|
LOCAL_SRC_FILES += voice_extn/voice_extn.c
|
||||||
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/voice_extn
|
||||||
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
|
||||||
|
|
||||||
|
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_INCALL_MUSIC)),true)
|
||||||
|
LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
liblog \
|
liblog \
|
||||||
libcutils \
|
libcutils \
|
||||||
|
@ -79,10 +77,6 @@ LOCAL_C_INCLUDES += \
|
||||||
$(LOCAL_PATH)/$(AUDIO_PLATFORM) \
|
$(LOCAL_PATH)/$(AUDIO_PLATFORM) \
|
||||||
$(LOCAL_PATH)/audio_extn
|
$(LOCAL_PATH)/audio_extn
|
||||||
|
|
||||||
ifdef MULTI_VOICE_SESSION_ENABLED
|
|
||||||
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
|
LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
|
||||||
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
||||||
|
|
|
@ -67,7 +67,7 @@ static int voice_extn_get_active_session_id(struct audio_device *adev,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined INCALL_MUSIC_ENABLED && defined MULTI_VOICE_SESSION_ENABLED
|
#ifdef INCALL_MUSIC_ENABLED
|
||||||
int voice_extn_check_and_set_incall_music_usecase(struct audio_device *adev,
|
int voice_extn_check_and_set_incall_music_usecase(struct audio_device *adev,
|
||||||
struct stream_out *out);
|
struct stream_out *out);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue