aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/jz4740/Kconfig
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-04-22 16:46:36 -0400
committerMark Brown <broonie@linaro.org>2014-04-23 07:18:44 -0400
commit0aa2a15a7b5ca861b02379a7dcb2d7bf427c62cc (patch)
tree9accc68ec3c4adcb83561168c3fc2c1babb9f780 /sound/soc/jz4740/Kconfig
parent218e18a3728507ee82ed2eb10c789671a00e34bd (diff)
ASoC: jz4740: Improve build test coverage
Allow the jz4740 audio drivers to be build when CONFIG_COMPILE_TEST is selected. This should improve the build test coverage. There is one small piece of platform dependent code in the jz4740-i2s driver. It uses the DMA request type constants which are defined in a platform specific header. We can solve this by moving them from the platform specific header to the I2S driver. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/jz4740/Kconfig')
-rw-r--r--sound/soc/jz4740/Kconfig11
1 files changed, 8 insertions, 3 deletions
diff --git a/sound/soc/jz4740/Kconfig b/sound/soc/jz4740/Kconfig
index 29f76af5d963..1a354a6b6e87 100644
--- a/sound/soc/jz4740/Kconfig
+++ b/sound/soc/jz4740/Kconfig
@@ -1,24 +1,29 @@
1config SND_JZ4740_SOC 1config SND_JZ4740_SOC
2 tristate "SoC Audio for Ingenic JZ4740 SoC" 2 tristate "SoC Audio for Ingenic JZ4740 SoC"
3 depends on MACH_JZ4740 && SND_SOC 3 depends on MACH_JZ4740 || COMPILE_TEST
4 select SND_SOC_GENERIC_DMAENGINE_PCM 4 select SND_SOC_GENERIC_DMAENGINE_PCM
5 help 5 help
6 Say Y or M if you want to add support for codecs attached to 6 Say Y or M if you want to add support for codecs attached to
7 the JZ4740 I2S interface. You will also need to select the audio 7 the JZ4740 I2S interface. You will also need to select the audio
8 interfaces to support below. 8 interfaces to support below.
9 9
10if SND_JZ4740_SOC
11
10config SND_JZ4740_SOC_I2S 12config SND_JZ4740_SOC_I2S
11 depends on SND_JZ4740_SOC
12 tristate "SoC Audio (I2S protocol) for Ingenic JZ4740 SoC" 13 tristate "SoC Audio (I2S protocol) for Ingenic JZ4740 SoC"
14 depends on HAS_IOMEM
13 help 15 help
14 Say Y if you want to use I2S protocol and I2S codec on Ingenic JZ4740 16 Say Y if you want to use I2S protocol and I2S codec on Ingenic JZ4740
15 based boards. 17 based boards.
16 18
17config SND_JZ4740_SOC_QI_LB60 19config SND_JZ4740_SOC_QI_LB60
18 tristate "SoC Audio support for Qi LB60" 20 tristate "SoC Audio support for Qi LB60"
19 depends on SND_JZ4740_SOC && JZ4740_QI_LB60 21 depends on HAS_IOMEM
22 depends on JZ4740_QI_LB60 || COMPILE_TEST
20 select SND_JZ4740_SOC_I2S 23 select SND_JZ4740_SOC_I2S
21 select SND_SOC_JZ4740_CODEC 24 select SND_SOC_JZ4740_CODEC
22 help 25 help
23 Say Y if you want to add support for ASoC audio on the Qi LB60 board 26 Say Y if you want to add support for ASoC audio on the Qi LB60 board
24 a.k.a Qi Ben NanoNote. 27 a.k.a Qi Ben NanoNote.
28
29endif