aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-06-03 08:11:56 -0400
committerMark Brown <broonie@linaro.org>2014-06-22 06:57:10 -0400
commitff40260f79dc0436604452bccd449bffd25ebafb (patch)
treea9306ad409d0b87a67b499fecb72cde2e9e15483
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
ASoC: fsl: refine DMA/FIQ dependencies
Commit 31ee2bfd724ab ("ASoC: fsl: select SND_SOC_IMX_PCM_DMA where needed") started selecting SND_SOC_IMX_PCM_DMA and SND_SOC_IMX_PCM_FIQ for two drivers when building for i.MX. This has turned out too aggressive, as FIQ is only available for i.mx2 through i.mx5, but not i.mx6 or vybrid. Further, two more drivers have become user-selectable in the meantime, and they both depend on DMA for the imx platform as well. This changes the selection of FIQ to depend on the TZIC or AVIC interrupt controllers that actually export the imx specific FIQ interfaces, and adds the missing select statements for SAI and ESAI. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/fsl/Kconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig
index 37933629cbed..52bbe9f80111 100644
--- a/sound/soc/fsl/Kconfig
+++ b/sound/soc/fsl/Kconfig
@@ -5,6 +5,7 @@ comment "Common SoC Audio options for Freescale CPUs:"
5config SND_SOC_FSL_SAI 5config SND_SOC_FSL_SAI
6 tristate "Synchronous Audio Interface (SAI) module support" 6 tristate "Synchronous Audio Interface (SAI) module support"
7 select REGMAP_MMIO 7 select REGMAP_MMIO
8 select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
8 select SND_SOC_GENERIC_DMAENGINE_PCM 9 select SND_SOC_GENERIC_DMAENGINE_PCM
9 help 10 help
10 Say Y if you want to add Synchronous Audio Interface (SAI) 11 Say Y if you want to add Synchronous Audio Interface (SAI)
@@ -15,7 +16,7 @@ config SND_SOC_FSL_SAI
15config SND_SOC_FSL_SSI 16config SND_SOC_FSL_SSI
16 tristate "Synchronous Serial Interface module support" 17 tristate "Synchronous Serial Interface module support"
17 select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n 18 select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
18 select SND_SOC_IMX_PCM_FIQ if SND_IMX_SOC != n && ARCH_MXC 19 select SND_SOC_IMX_PCM_FIQ if SND_IMX_SOC != n && (MXC_TZIC || MXC_AVIC)
19 select REGMAP_MMIO 20 select REGMAP_MMIO
20 help 21 help
21 Say Y if you want to add Synchronous Serial Interface (SSI) 22 Say Y if you want to add Synchronous Serial Interface (SSI)
@@ -27,7 +28,7 @@ config SND_SOC_FSL_SPDIF
27 tristate "Sony/Philips Digital Interface module support" 28 tristate "Sony/Philips Digital Interface module support"
28 select REGMAP_MMIO 29 select REGMAP_MMIO
29 select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n 30 select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
30 select SND_SOC_IMX_PCM_FIQ if SND_IMX_SOC != n && ARCH_MXC 31 select SND_SOC_IMX_PCM_FIQ if SND_IMX_SOC != n && (MXC_TZIC || MXC_AVIC)
31 help 32 help
32 Say Y if you want to add Sony/Philips Digital Interface (SPDIF) 33 Say Y if you want to add Sony/Philips Digital Interface (SPDIF)
33 support for the Freescale CPUs. 34 support for the Freescale CPUs.
@@ -37,6 +38,7 @@ config SND_SOC_FSL_SPDIF
37config SND_SOC_FSL_ESAI 38config SND_SOC_FSL_ESAI
38 tristate "Enhanced Serial Audio Interface (ESAI) module support" 39 tristate "Enhanced Serial Audio Interface (ESAI) module support"
39 select REGMAP_MMIO 40 select REGMAP_MMIO
41 select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
40 select SND_SOC_FSL_UTILS 42 select SND_SOC_FSL_UTILS
41 help 43 help
42 Say Y if you want to add Enhanced Synchronous Audio Interface 44 Say Y if you want to add Enhanced Synchronous Audio Interface