# # Copyright (C) 2015 MediaTek Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # ifeq ($(CONFIG_MTK_GCOV_KERNEL),y) GCOV_PROFILE := y endif # platform driver snd-soc-mtk-common-objs := mtk-afe-platform-driver.o mtk-afe-fe-dai.o obj-$(CONFIG_MTK_ION) += mtk-mmap-ion.o obj-$(CONFIG_SND_SOC_MEDIATEK) += snd-soc-mtk-common.o obj-$(CONFIG_SND_SOC_MTK_SRAM) += mtk-sram-manager.o snd-soc-mtk-sp-common-objs := mtk-sp-pcm-ops.o mtk-afe-debug.o mtk-sp-spk-amp.o obj-$(CONFIG_SND_SOC_MTK_SMART_PHONE) += snd-soc-mtk-sp-common.o mtk-usip.o obj-$(CONFIG_SND_SOC_MTK_BTCVSD) += mtk-btcvsd.o subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion/mtk ifeq ($(CONFIG_SND_SOC_MTK_AUDIO_DSP),y) subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/audio_ipi/common/framework/ endif ifeq ($(CONFIG_MTK_AUDIODSP_SUPPORT),y) ccflags-y += -I$(srctree)/drivers/misc/mediatek/adsp/$(MTK_PLATFORM) endif ifeq ($(CONFIG_MTK_TINYSYS_SCP_SUPPORT),y) ccflags-y += -I$(srctree)/drivers/misc/mediatek/scp/$(MTK_PLATFORM) endif ifeq ($(CONFIG_SND_SOC_AW87339),y) subdir-ccflags-y += -I$(srctree)/sound/soc/codecs/aw87339/$(MTK_PROJECT)/ endif