All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Fix build dependency for SND_ATMEL_SOC_SSC
@ 2012-01-06  6:54 Axel Lin
  2012-01-06  7:36 ` Axel Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-01-06  6:54 UTC (permalink / raw)
  To: alsa-devel; +Cc: Sedji Gaouaou, Paul Bolle, Mark Brown, Liam Girdwood

Make SND_ATMEL_SOC_SSC select ATMEL_SSC to fix below build errors:

  LD      .tmp_vmlinux1
sound/built-in.o: In function `atmel_ssc_remove':
sound/soc/atmel/atmel_ssc_dai.c:713: undefined reference to `ssc_free'
sound/built-in.o: In function `atmel_ssc_probe':
sound/soc/atmel/atmel_ssc_dai.c:700: undefined reference to `ssc_request'
sound/built-in.o: In function `atmel_ssc_set_audio':
sound/soc/atmel/atmel_ssc_dai.c:845: undefined reference to `ssc_request'
sound/soc/atmel/atmel_ssc_dai.c:851: undefined reference to `ssc_free'
make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
This patch is against linux-next 20120103.
 sound/soc/atmel/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig
index d1fcc81..a4d6742 100644
--- a/sound/soc/atmel/Kconfig
+++ b/sound/soc/atmel/Kconfig
@@ -9,6 +9,7 @@ config SND_ATMEL_SOC
 config SND_ATMEL_SOC_SSC
 	tristate
 	depends on SND_ATMEL_SOC
+	select ATMEL_SSC
 	help
 	  Say Y or M if you want to add support for codecs the
 	  ATMEL SSC interface. You will also needs to select the individual
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: Fix build dependency for SND_ATMEL_SOC_SSC
  2012-01-06  6:54 [PATCH] ASoC: Fix build dependency for SND_ATMEL_SOC_SSC Axel Lin
@ 2012-01-06  7:36 ` Axel Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Axel Lin @ 2012-01-06  7:36 UTC (permalink / raw)
  To: alsa-devel; +Cc: Paul Bolle, Mark Brown, Liam Girdwood

2012/1/6 Axel Lin <axel.lin@gmail.com>:
> Make SND_ATMEL_SOC_SSC select ATMEL_SSC to fix below build errors:
>
>  LD      .tmp_vmlinux1
> sound/built-in.o: In function `atmel_ssc_remove':
> sound/soc/atmel/atmel_ssc_dai.c:713: undefined reference to `ssc_free'
> sound/built-in.o: In function `atmel_ssc_probe':
> sound/soc/atmel/atmel_ssc_dai.c:700: undefined reference to `ssc_request'
> sound/built-in.o: In function `atmel_ssc_set_audio':
> sound/soc/atmel/atmel_ssc_dai.c:845: undefined reference to `ssc_request'
> sound/soc/atmel/atmel_ssc_dai.c:851: undefined reference to `ssc_free'
> make: *** [.tmp_vmlinux1] Error 1
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> This patch is against linux-next 20120103.
>  sound/soc/atmel/Kconfig |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig
> index d1fcc81..a4d6742 100644
> --- a/sound/soc/atmel/Kconfig
> +++ b/sound/soc/atmel/Kconfig
> @@ -9,6 +9,7 @@ config SND_ATMEL_SOC
>  config SND_ATMEL_SOC_SSC
>        tristate
>        depends on SND_ATMEL_SOC
> +       select ATMEL_SSC

With this patch I got  recursive dependency detected with the patch
because SND_AT91_SOC_SAM9G20_WM8731 depends on ATMEL_SSC.

scripts/kconfig/mconf Kconfig
drivers/misc/Kconfig:212:error: recursive dependency detected!
drivers/misc/Kconfig:212:       symbol ATMEL_SSC is selected by
SND_ATMEL_SOC_SSC
sound/soc/atmel/Kconfig:9:      symbol SND_ATMEL_SOC_SSC is selected
by SND_AT91_SOC_SAM9G20_WM8731
sound/soc/atmel/Kconfig:18:     symbol SND_AT91_SOC_SAM9G20_WM8731
depends on ATMEL_SSC

And if I removed ATMEL_SSC dependency from SND_AT91_SOC_SAM9G20_WM8731,
I still got below build warning:

warning: (SND_ATMEL_SOC_SSC) selects ATMEL_SSC which has unmet direct
dependencies (MISC_DEVICES && (AVR32 || ARCH_AT91))
warning: (SND_ATMEL_SOC_SSC) selects ATMEL_SSC which has unmet direct
dependencies (MISC_DEVICES && (AVR32 || ARCH_AT91))

So how about make SND_AT91_SOC_AFEB9260 depend on ATMEL_SSC
instead of making SND_ATMEL_SOC_SSC select ATMEL_SSC? Comment?

Regards,
Axek

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-06  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06  6:54 [PATCH] ASoC: Fix build dependency for SND_ATMEL_SOC_SSC Axel Lin
2012-01-06  7:36 ` Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.