ASoC: fsl: fix build failure
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 2 Jun 2016 12:59:24 +0000 (18:29 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 2 Jun 2016 23:28:15 +0000 (00:28 +0100)
m32r allmodconfig build is failing with the error:
ERROR: "bad_dma_ops" [sound/soc/fsl/snd-soc-fsl-asrc.ko] undefined!

The code is using DMA but the related dependency is not mentioned in the
Kconfig.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/Kconfig

index 35aabf9dc503b8f4ac78bba4df86343585aaf8fb..19bdcac71775a50134070960d51b995c06687e75 100644 (file)
@@ -4,6 +4,7 @@ comment "Common SoC Audio options for Freescale CPUs:"
 
 config SND_SOC_FSL_ASRC
        tristate "Asynchronous Sample Rate Converter (ASRC) module support"
+       depends on HAS_DMA
        select REGMAP_MMIO
        select SND_SOC_GENERIC_DMAENGINE_PCM
        help