[PATCH] ASoC: atmel-pcm: Fix build error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Ye Bin <yebin10@xxxxxxxxxx>

If SND_ATMEL_SOC_SSC is y and SND_ATMEL_SOC_PDC is m, building fails:
sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_set_audio':
(.text+0x6f6): undefined reference to `atmel_pcm_pdc_platform_register'

Select SND_ATMEL_SOC_PDC to fix this.

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Fixes: 92dfa6198623 ("ASoC: atmel-pcm: split into two file")
Signed-off-by: Ye Bin <yebin10@xxxxxxxxxx>
---
 sound/soc/atmel/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig
index f118c229ed82..78e7d40c3c24 100644
--- a/sound/soc/atmel/Kconfig
+++ b/sound/soc/atmel/Kconfig
@@ -19,11 +19,11 @@ config SND_ATMEL_SOC_DMA
 
 config SND_ATMEL_SOC_SSC
 	tristate
+	select SND_ATMEL_SOC_PDC
 
 config SND_ATMEL_SOC_SSC_PDC
 	tristate "SoC PCM DAI support for AT91 SSC controller using PDC"
 	depends on ATMEL_SSC
-	select SND_ATMEL_SOC_PDC
 	select SND_ATMEL_SOC_SSC
 	help
 	  Say Y or M if you want to add support for Atmel SSC interface
-- 
2.17.2




[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux