diff options
author | Jyri Sarha <jsarha@ti.com> | 2014-06-13 05:49:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-21 06:03:01 -0400 |
commit | 7f28f357840fc857348b7ed42d7ee697cd221a59 (patch) | |
tree | bb83b434870a48e8487596c07a91f6f705ad1a5c /sound/soc/davinci | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
ASoC: davinci-mcasp: Add dependecy to SND_DAVINCI_SOC or SND_OMAP_SOC
Fixes build with SND_DAVINCI_SOC or SND_OMAP_SOC alone and adds build
dependecy to SND_DAVINCI_SOC or SND_OMAP_SOC.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/Kconfig | 1 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/davinci/Kconfig b/sound/soc/davinci/Kconfig index 50a098749b9e..fdbb16fffd30 100644 --- a/sound/soc/davinci/Kconfig +++ b/sound/soc/davinci/Kconfig | |||
@@ -6,6 +6,7 @@ config SND_DAVINCI_SOC_I2S | |||
6 | tristate | 6 | tristate |
7 | 7 | ||
8 | config SND_DAVINCI_SOC_MCASP | 8 | config SND_DAVINCI_SOC_MCASP |
9 | depends on SND_DAVINCI_SOC || SND_OMAP_SOC | ||
9 | tristate | 10 | tristate |
10 | 11 | ||
11 | config SND_DAVINCI_SOC_VCIF | 12 | config SND_DAVINCI_SOC_VCIF |
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 9afb14629a17..0ee4986038cc 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -1223,14 +1223,22 @@ static int davinci_mcasp_probe(struct platform_device *pdev) | |||
1223 | goto err; | 1223 | goto err; |
1224 | 1224 | ||
1225 | switch (mcasp->version) { | 1225 | switch (mcasp->version) { |
1226 | #if IS_BUILTIN(CONFIG_SND_DAVINCI_SOC) || \ | ||
1227 | (IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \ | ||
1228 | IS_MODULE(CONFIG_SND_DAVINCI_SOC)) | ||
1226 | case MCASP_VERSION_1: | 1229 | case MCASP_VERSION_1: |
1227 | case MCASP_VERSION_2: | 1230 | case MCASP_VERSION_2: |
1228 | case MCASP_VERSION_3: | 1231 | case MCASP_VERSION_3: |
1229 | ret = davinci_soc_platform_register(&pdev->dev); | 1232 | ret = davinci_soc_platform_register(&pdev->dev); |
1230 | break; | 1233 | break; |
1234 | #endif | ||
1235 | #if IS_BUILTIN(CONFIG_SND_OMAP_SOC) || \ | ||
1236 | (IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \ | ||
1237 | IS_MODULE(CONFIG_SND_OMAP_SOC)) | ||
1231 | case MCASP_VERSION_4: | 1238 | case MCASP_VERSION_4: |
1232 | ret = omap_pcm_platform_register(&pdev->dev); | 1239 | ret = omap_pcm_platform_register(&pdev->dev); |
1233 | break; | 1240 | break; |
1241 | #endif | ||
1234 | default: | 1242 | default: |
1235 | dev_err(&pdev->dev, "Invalid McASP version: %d\n", | 1243 | dev_err(&pdev->dev, "Invalid McASP version: %d\n", |
1236 | mcasp->version); | 1244 | mcasp->version); |