Merge "hal: compile voice extensions based on board config flag"

This commit is contained in:
Linux Build Service Account 2013-10-30 21:00:35 -07:00 committed by Gerrit - the friendly Code Review server
commit 50f8776825
2 changed files with 13 additions and 19 deletions

View File

@ -6,12 +6,6 @@ include $(CLEAR_VARS)
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)
ifneq ($(filter msm8974 msm8226 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),)
# B-family platform uses msm8974 code base
@ -29,10 +23,6 @@ LOCAL_SRC_FILES := \
voice.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
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
endif
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_INCALL_MUSIC)),true)
LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED
endif
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_FM)),true)
LOCAL_CFLAGS += -DFM_ENABLED
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/
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 := \
liblog \
libcutils \
@ -79,10 +77,6 @@ LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/$(AUDIO_PLATFORM) \
$(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_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw

View File

@ -67,7 +67,7 @@ static int voice_extn_get_active_session_id(struct audio_device *adev,
}
#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,
struct stream_out *out);
#else