forked from Minki/linux
f1bdd8d385
ACP hw block configuration differs across various distributions and hence it's required to register different drivers module for distributions. For now we support three ACP drivers: * ACP without SOF use case * ACP with SOF use case * ACP with SOF use case for DMIC and non SOF for I2S endpoints As all above driver registers with common PCI ID for ACP hw block we need code to determine ACP configuration and auto select driver module. This patch expose function that return configuration flag based on dmi checks for a system. ACP driver module probe register platform device based on such configuration flag to avoid conflict with other ACP drivers probed for same PCI ID. Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> Reviewed-by: Bard Liao <bard.liao@intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20211117093734.17407-8-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
18 lines
815 B
Makefile
18 lines
815 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
acp_audio_dma-objs := acp-pcm-dma.o
|
|
snd-soc-acp-da7219mx98357-mach-objs := acp-da7219-max98357a.o
|
|
snd-soc-acp-rt5645-mach-objs := acp-rt5645.o
|
|
snd-soc-acp-rt5682-mach-objs := acp3x-rt5682-max9836.o
|
|
snd-acp-config-objs := acp-config.o
|
|
|
|
obj-$(CONFIG_SND_SOC_AMD_ACP) += acp_audio_dma.o
|
|
obj-$(CONFIG_SND_SOC_AMD_CZ_DA7219MX98357_MACH) += snd-soc-acp-da7219mx98357-mach.o
|
|
obj-$(CONFIG_SND_SOC_AMD_CZ_RT5645_MACH) += snd-soc-acp-rt5645-mach.o
|
|
obj-$(CONFIG_SND_SOC_AMD_ACP3x) += raven/
|
|
obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o
|
|
obj-$(CONFIG_SND_SOC_AMD_RENOIR) += renoir/
|
|
obj-$(CONFIG_SND_SOC_AMD_ACP5x) += vangogh/
|
|
obj-$(CONFIG_SND_SOC_AMD_ACP6x) += yc/
|
|
obj-$(CONFIG_SND_SOC_AMD_ACP_COMMON) += acp/
|
|
obj-$(CONFIG_SND_AMD_ACP_CONFIG) += snd-acp-config.o
|