Skip to content

Commit f1f2d97

Browse files
Chen Zhougregkh
authored andcommitted
ASoC: atmel: fix build error with CONFIG_SND_ATMEL_SOC_DMA=m
[ Upstream commit 8fea780 ] If CONFIG_SND_ATMEL_SOC_DMA=m, build error: sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_set_audio': (.text+0x7cd): undefined reference to `atmel_pcm_dma_platform_register' Function atmel_pcm_dma_platform_register is defined under CONFIG SND_ATMEL_SOC_DMA, so select SND_ATMEL_SOC_DMA in CONFIG SND_ATMEL_SOC_SSC, same to CONFIG_SND_ATMEL_SOC_PDC. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Chen Zhou <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 54630b1 commit f1f2d97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/atmel/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ config SND_ATMEL_SOC_DMA
2525

2626
config SND_ATMEL_SOC_SSC_DMA
2727
tristate
28+
select SND_ATMEL_SOC_DMA
29+
select SND_ATMEL_SOC_PDC
2830

2931
config SND_ATMEL_SOC_SSC
3032
tristate

0 commit comments

Comments
 (0)