From d196618a4184a4ce8b192b1dfabaf0b666cb45a2 Mon Sep 17 00:00:00 2001 From: huangys Date: Thu, 5 Jul 2018 16:46:15 +0800 Subject: [PATCH] ASoC: Tas2560: define TAS2560 series macro according product. - Currently we suppose only channel use TAS2560 - Fix river build error error: implicit declaration of function 'tas2560_algo_afe_apr_send_pkt' [-Werror=implicit-function-declaration] Change-Id: Ie272ac03cb41a0b8123779c5eb132ab1811dc2af Reviewed-on: https://gerrit.mot.com/1205011 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wen Xie Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- sound/soc/codecs/Kbuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/Kbuild b/sound/soc/codecs/Kbuild index 6146a98acb02..8952822db843 100644 --- a/sound/soc/codecs/Kbuild +++ b/sound/soc/codecs/Kbuild @@ -15,7 +15,10 @@ EXTRA_CFLAGS += -I$(TOP)/kernel/techpack/audio/include/uapi endif EXTRA_CFLAGS += -DCONFIG_SND_SOC_AOV_TRIGGER -DCONFIG_SND_SOC_OPALUM + +ifneq (,$(filter channel%, $(TARGET_PRODUCT))) EXTRA_CFLAGS += -DCONFIG_TAS2560_REGMAP -DCONFIG_TAS2560_CODEC -DCONFIG_TAS2560_MISC -DCONFIG_SND_SOC_TAS2560 +endif ifeq ($(KDIR),) PLMA_HOSTSW_DIR=$(realpath -f $(srctree)/$(src))