aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-06-30 04:01:38 -0400
committerMark Brown <broonie@linaro.org>2014-07-04 13:57:58 -0400
commitb5dd60fd263147f723aeebc424dab7cd6613d3be (patch)
tree9e37aa2574a32103f2afa492a97f025eaba63d10
parent001eaa25ca8cf4bfdb76fa8f2287b8d34287b9b6 (diff)
ASoC: s6000: Allow to build when COMPILE_TEST is enabled
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>
-rw-r--r--sound/soc/s6000/Kconfig10
-rw-r--r--sound/soc/s6000/Makefile2
-rw-r--r--sound/soc/s6000/s6105-ipcam.c2
3 files changed, 9 insertions, 5 deletions
diff --git a/sound/soc/s6000/Kconfig b/sound/soc/s6000/Kconfig
index c74eb3d4a47c..4823e1e4daef 100644
--- a/sound/soc/s6000/Kconfig
+++ b/sound/soc/s6000/Kconfig
@@ -1,17 +1,23 @@
1config SND_S6000_SOC 1config SND_S6000_SOC
2 tristate "SoC Audio for the Stretch s6000 family" 2 tristate "SoC Audio for the Stretch s6000 family"
3 depends on XTENSA_VARIANT_S6000 3 depends on XTENSA_VARIANT_S6000 || COMPILE_TEST
4 depends on HAS_IOMEM
5 select SND_S6000_SOC_PCM if XTENSA_VARIANT_S6000
4 help 6 help
5 Say Y or M if you want to add support for codecs attached to 7 Say Y or M if you want to add support for codecs attached to
6 s6000 family chips. You will also need to select the platform 8 s6000 family chips. You will also need to select the platform
7 to support below. 9 to support below.
8 10
11config SND_S6000_SOC_PCM
12 tristate
13
9config SND_S6000_SOC_I2S 14config SND_S6000_SOC_I2S
10 tristate 15 tristate
11 16
12config SND_S6000_SOC_S6IPCAM 17config SND_S6000_SOC_S6IPCAM
13 tristate "SoC Audio support for Stretch 6105 IP Camera" 18 tristate "SoC Audio support for Stretch 6105 IP Camera"
14 depends on SND_S6000_SOC && XTENSA_PLATFORM_S6105 19 depends on SND_S6000_SOC
20 depends on XTENSA_PLATFORM_S6105 || COMPILE_TEST
15 select SND_S6000_SOC_I2S 21 select SND_S6000_SOC_I2S
16 select SND_SOC_TLV320AIC3X 22 select SND_SOC_TLV320AIC3X
17 help 23 help
diff --git a/sound/soc/s6000/Makefile b/sound/soc/s6000/Makefile
index 7a613612e010..0f0ae2a012aa 100644
--- a/sound/soc/s6000/Makefile
+++ b/sound/soc/s6000/Makefile
@@ -2,7 +2,7 @@
2snd-soc-s6000-objs := s6000-pcm.o 2snd-soc-s6000-objs := s6000-pcm.o
3snd-soc-s6000-i2s-objs := s6000-i2s.o 3snd-soc-s6000-i2s-objs := s6000-i2s.o
4 4
5obj-$(CONFIG_SND_S6000_SOC) += snd-soc-s6000.o 5obj-$(CONFIG_SND_S6000_SOC_PCM) += snd-soc-s6000.o
6obj-$(CONFIG_SND_S6000_SOC_I2S) += snd-soc-s6000-i2s.o 6obj-$(CONFIG_SND_S6000_SOC_I2S) += snd-soc-s6000-i2s.o
7 7
8# s6105 Machine Support 8# s6105 Machine Support
diff --git a/sound/soc/s6000/s6105-ipcam.c b/sound/soc/s6000/s6105-ipcam.c
index 0b21d1dc80c1..50875e66a0a3 100644
--- a/sound/soc/s6000/s6105-ipcam.c
+++ b/sound/soc/s6000/s6105-ipcam.c
@@ -19,8 +19,6 @@
19#include <sound/pcm.h> 19#include <sound/pcm.h>
20#include <sound/soc.h> 20#include <sound/soc.h>
21 21
22#include <variant/dmac.h>
23
24#include "s6000-pcm.h" 22#include "s6000-pcm.h"
25#include "s6000-i2s.h" 23#include "s6000-i2s.h"
26 24