mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 11:36:46 +07:00
9437bfda00
The ssc audio driver can call into both pdc and dma backends. With the latest rework, the logic to do this in a safe way avoiding link errors was removed, bringing back link errors that were fixed long ago in commit061981ff8c
("ASoC: atmel: properly select dma driver state") such as sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_set_audio': atmel_ssc_dai.c:(.text+0xac): undefined reference to `atmel_pcm_pdc_platform_register' Fix it this time using Makefile hacks and a comment to prevent this from accidentally getting removed again rather than Kconfig hacks. Fixes:1829141055
("ASoC: atmel: enable SOC_SSC_PDC and SOC_SSC_DMA in Kconfig") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Link: https://lore.kernel.org/r/20200130130545.31148-1-codrin.ciubotariu@microchip.com Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Mark Brown <broonie@kernel.org>
37 lines
1.5 KiB
Makefile
37 lines
1.5 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# AT91 Platform Support
|
|
snd-soc-atmel-pcm-pdc-objs := atmel-pcm-pdc.o
|
|
snd-soc-atmel-pcm-dma-objs := atmel-pcm-dma.o
|
|
snd-soc-atmel_ssc_dai-objs := atmel_ssc_dai.o
|
|
snd-soc-atmel-i2s-objs := atmel-i2s.o
|
|
snd-soc-mchp-i2s-mcc-objs := mchp-i2s-mcc.o
|
|
|
|
# pdc and dma need to both be built-in if any user of
|
|
# ssc is built-in.
|
|
ifdef CONFIG_SND_ATMEL_SOC_PDC
|
|
obj-$(CONFIG_SND_ATMEL_SOC_SSC) += snd-soc-atmel-pcm-pdc.o
|
|
endif
|
|
ifdef CONFIG_SND_ATMEL_SOC_DMA
|
|
obj-$(CONFIG_SND_ATMEL_SOC_SSC) += snd-soc-atmel-pcm-dma.o
|
|
endif
|
|
obj-$(CONFIG_SND_ATMEL_SOC_SSC) += snd-soc-atmel_ssc_dai.o
|
|
obj-$(CONFIG_SND_ATMEL_SOC_I2S) += snd-soc-atmel-i2s.o
|
|
obj-$(CONFIG_SND_MCHP_SOC_I2S_MCC) += snd-soc-mchp-i2s-mcc.o
|
|
|
|
# AT91 Machine Support
|
|
snd-soc-sam9g20-wm8731-objs := sam9g20_wm8731.o
|
|
snd-atmel-soc-wm8904-objs := atmel_wm8904.o
|
|
snd-soc-sam9x5-wm8731-objs := sam9x5_wm8731.o
|
|
snd-atmel-soc-classd-objs := atmel-classd.o
|
|
snd-atmel-soc-pdmic-objs := atmel-pdmic.o
|
|
snd-atmel-soc-tse850-pcm5142-objs := tse850-pcm5142.o
|
|
snd-soc-mikroe-proto-objs := mikroe-proto.o
|
|
|
|
obj-$(CONFIG_SND_AT91_SOC_SAM9G20_WM8731) += snd-soc-sam9g20-wm8731.o
|
|
obj-$(CONFIG_SND_ATMEL_SOC_WM8904) += snd-atmel-soc-wm8904.o
|
|
obj-$(CONFIG_SND_AT91_SOC_SAM9X5_WM8731) += snd-soc-sam9x5-wm8731.o
|
|
obj-$(CONFIG_SND_ATMEL_SOC_CLASSD) += snd-atmel-soc-classd.o
|
|
obj-$(CONFIG_SND_ATMEL_SOC_PDMIC) += snd-atmel-soc-pdmic.o
|
|
obj-$(CONFIG_SND_ATMEL_SOC_TSE850_PCM5142) += snd-atmel-soc-tse850-pcm5142.o
|
|
obj-$(CONFIG_SND_SOC_MIKROE_PROTO) += snd-soc-mikroe-proto.o
|