ASoC: Add support for audio drivers compilation on kernel-4.14

Add support for audio drivers compilation on kernel-4.14.

Change-Id: Id7689cef4ae7cdb6711fed386d2a6b0d427b3fc3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
Sudheer Papothi
2018-05-23 06:34:36 +05:30
父節點 74104df871
當前提交 8d34b2e801
共有 7 個文件被更改,包括 15 次插入39 次删除

查看文件

@@ -51,7 +51,7 @@ LINUXINCLUDE += \
-include $(srctree)/techpack/audio/config/sm8150autoconf.h -include $(srctree)/techpack/audio/config/sm8150autoconf.h
endif endif
obj-y += asoc/ obj-y += soc/
obj-y += dsp/ obj-y += dsp/
obj-y += ipc/ obj-y += ipc/
obj-y += soc/ obj-y += asoc/

查看文件

@@ -6,11 +6,10 @@ else
KERNEL_BUILD := 0 KERNEL_BUILD := 0
endif endif
ifeq ($(KERNEL_BUILD), 1) ifeq ($(KERNEL_BUILD), 1)
# These are configurable via Kconfig for kernel-based builds # These are configurable via Kconfig for kernel-based builds
# Need to explicitly configure for Android-based builds # Need to explicitly configure for Android-based builds
AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.9 AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.14
AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio
endif endif

查看文件

@@ -9,7 +9,7 @@ endif
ifeq ($(KERNEL_BUILD), 1) ifeq ($(KERNEL_BUILD), 1)
# These are configurable via Kconfig for kernel-based builds # These are configurable via Kconfig for kernel-based builds
# Need to explicitly configure for Android-based builds # Need to explicitly configure for Android-based builds
AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.9 AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.14
AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio
endif endif

查看文件

@@ -9,7 +9,7 @@ endif
ifeq ($(KERNEL_BUILD), 1) ifeq ($(KERNEL_BUILD), 1)
# These are configurable via Kconfig for kernel-based builds # These are configurable via Kconfig for kernel-based builds
# Need to explicitly configure for Android-based builds # Need to explicitly configure for Android-based builds
AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.9 AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.14
AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio
endif endif
@@ -111,14 +111,14 @@ ifdef CONFIG_MSM_ADSP_LOADER
ADSP_LOADER_OBJS += adsp-loader.o ADSP_LOADER_OBJS += adsp-loader.o
endif endif
ifdef CONFIG_MSM_QDSP6_NOTIFIER
QDSP6_NOTIFIER_OBJS += audio_notifier.o audio_ssr.o
endif
ifdef CONFIG_MSM_QDSP6_PDR ifdef CONFIG_MSM_QDSP6_PDR
QDSP6_PDR_OBJS += audio_pdr.o QDSP6_PDR_OBJS += audio_pdr.o
endif endif
ifdef CONFIG_MSM_QDSP6_NOTIFIER
QDSP6_NOTIFIER_OBJS += audio_notifier.o audio_ssr.o
endif
ifdef CONFIG_MSM_ULTRASOUND ifdef CONFIG_MSM_ULTRASOUND
USF_OBJS += usf.o usfcdev.o q6usm.o USF_OBJS += usf.o usfcdev.o q6usm.o
endif endif
@@ -184,11 +184,11 @@ usf_dlkm-y := $(USF_OBJS)
obj-$(CONFIG_MSM_ADSP_LOADER) += adsp_loader_dlkm.o obj-$(CONFIG_MSM_ADSP_LOADER) += adsp_loader_dlkm.o
adsp_loader_dlkm-y := $(ADSP_LOADER_OBJS) adsp_loader_dlkm-y := $(ADSP_LOADER_OBJS)
obj-$(CONFIG_MSM_QDSP6_NOTIFIER) += q6_notifier_dlkm.o
q6_notifier_dlkm-y := $(QDSP6_NOTIFIER_OBJS)
obj-$(CONFIG_MSM_QDSP6_PDR) += q6_pdr_dlkm.o obj-$(CONFIG_MSM_QDSP6_PDR) += q6_pdr_dlkm.o
q6_pdr_dlkm-y := $(QDSP6_PDR_OBJS) q6_pdr_dlkm-y := $(QDSP6_PDR_OBJS)
obj-$(CONFIG_MSM_QDSP6_NOTIFIER) += q6_notifier_dlkm.o
q6_notifier_dlkm-y := $(QDSP6_NOTIFIER_OBJS)
# inject some build related information # inject some build related information
DEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\" DEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"

查看文件

@@ -9,7 +9,7 @@ endif
ifeq ($(KERNEL_BUILD), 1) ifeq ($(KERNEL_BUILD), 1)
# These are configurable via Kconfig for kernel-based builds # These are configurable via Kconfig for kernel-based builds
# Need to explicitly configure for Android-based builds # Need to explicitly configure for Android-based builds
AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.9 AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.14
AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio
endif endif

查看文件

@@ -6,32 +6,9 @@ else
KERNEL_BUILD := 0 KERNEL_BUILD := 0
endif endif
TARGET_KERNEL_VERSION := 4.9
# These are configurable via Kconfig for kernel-based builds # These are configurable via Kconfig for kernel-based builds
# Need to explicitly configure for Android-based builds # Need to explicitly configure for Android-based builds
ifeq ($(CONFIG_ARCH_SDM845), y) KDIR := $(TOP)/kernel/msm-4.14
TARGET_KERNEL_VERSION := 4.9
endif
ifeq ($(CONFIG_ARCH_SDM670), y)
TARGET_KERNEL_VERSION := 4.9
endif
ifeq ($(CONFIG_ARCH_SM8150), y)
TARGET_KERNEL_VERSION := 4.14
endif
ifeq ($(CONFIG_ARCH_SM6150), y)
TARGET_KERNEL_VERSION := 4.14
endif
ifeq ($(CONFIG_ARCH_QCS405), y)
TARGET_KERNEL_VERSION := 4.14
endif
ifeq ($(CONFIG_ARCH_SDMSHRIKE), y)
TARGET_KERNEL_VERSION := 4.14
endif
KDIR := $(TOP)/kernel/msm-$(TARGET_KERNEL_VERSION)
ifeq ($(KERNEL_BUILD), 1) ifeq ($(KERNEL_BUILD), 1)
AUDIO_ROOT := $(KDIR)/techpack/audio AUDIO_ROOT := $(KDIR)/techpack/audio

查看文件

@@ -9,7 +9,7 @@ endif
ifeq ($(KERNEL_BUILD), 1) ifeq ($(KERNEL_BUILD), 1)
# These are configurable via Kconfig for kernel-based builds # These are configurable via Kconfig for kernel-based builds
# Need to explicitly configure for Android-based builds # Need to explicitly configure for Android-based builds
AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.9 AUDIO_BLD_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-4.14
AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio AUDIO_ROOT := $(AUDIO_BLD_DIR)/techpack/audio
endif endif