ASoC: s6000: Allow to build when COMPILE_TEST is enabled
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 30 Jun 2014 08:01:38 +0000 (10:01 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 4 Jul 2014 17:57:58 +0000 (18:57 +0100)
Most of the ASoC s6000 code is architecture independent. This patch makes it
possible to select the platform when COMPILE_TEST is enabled.

The only architecture dependent code is the PCM driver which will still only be
selected if XTENSA_VARIANT_S6000 is enabled.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/s6000/Kconfig
sound/soc/s6000/Makefile
sound/soc/s6000/s6105-ipcam.c

index c74eb3d4a47cd4878d1ddb76cd4b3252be82d471..4823e1e4daefcfd34a684319056becfcb896ece7 100644 (file)
@@ -1,17 +1,23 @@
 config SND_S6000_SOC
        tristate "SoC Audio for the Stretch s6000 family"
-       depends on XTENSA_VARIANT_S6000
+       depends on XTENSA_VARIANT_S6000 || COMPILE_TEST
+       depends on HAS_IOMEM
+       select SND_S6000_SOC_PCM if XTENSA_VARIANT_S6000
        help
          Say Y or M if you want to add support for codecs attached to
          s6000 family chips. You will also need to select the platform
          to support below.
 
+config SND_S6000_SOC_PCM
+       tristate
+
 config SND_S6000_SOC_I2S
        tristate
 
 config SND_S6000_SOC_S6IPCAM
        tristate "SoC Audio support for Stretch 6105 IP Camera"
-       depends on SND_S6000_SOC && XTENSA_PLATFORM_S6105
+       depends on SND_S6000_SOC
+       depends on XTENSA_PLATFORM_S6105 || COMPILE_TEST
        select SND_S6000_SOC_I2S
        select SND_SOC_TLV320AIC3X
        help
index 7a613612e0101def81e8983f90f4e0bb2c57296b..0f0ae2a012aa7d6e24d8e52333d87e6d5c4e4266 100644 (file)
@@ -2,7 +2,7 @@
 snd-soc-s6000-objs := s6000-pcm.o
 snd-soc-s6000-i2s-objs := s6000-i2s.o
 
-obj-$(CONFIG_SND_S6000_SOC) += snd-soc-s6000.o
+obj-$(CONFIG_SND_S6000_SOC_PCM) += snd-soc-s6000.o
 obj-$(CONFIG_SND_S6000_SOC_I2S) += snd-soc-s6000-i2s.o
 
 # s6105 Machine Support
index 0b21d1dc80c1be2844fcf8e9024007b1d879159d..50875e66a0a3a719be1d4389a5242cb212c11e8d 100644 (file)
@@ -19,8 +19,6 @@
 #include <sound/pcm.h>
 #include <sound/soc.h>
 
-#include <variant/dmac.h>
-
 #include "s6000-pcm.h"
 #include "s6000-i2s.h"