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 <xiewen3@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
huangys 2018-07-05 16:46:15 +08:00 • committed by Yuesheng Huang
commit d196618a41

View file

@ -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))