aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-08-12 04:42:37 -0400
committerMark Brown <broonie@linaro.org>2013-08-15 06:18:09 -0400
commitb7ae6f31d8243ec684af16bc5c763eccdfabaec0 (patch)
tree09bcafcf065ffe743258f8ffbf6c055a1c130b4f
parentd4e4ab86bcba5a72779c43dc1459f71fea3d89c8 (diff)
ALSA: move dmaengine implementation from ASoC to ALSA core
For the PXA DMA rework, we need the generic dmaengine implementation that currently lives in sound/soc for standalone (non-ASoC) AC'97 support. Move it to sound/core, and rename the Kconfig symbol. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/core/Kconfig3
-rw-r--r--sound/core/Makefile3
-rw-r--r--sound/core/pcm_dmaengine.c (renamed from sound/soc/soc-dmaengine-pcm.c)0
-rw-r--r--sound/soc/Kconfig5
-rw-r--r--sound/soc/Makefile4
-rw-r--r--sound/soc/omap/Kconfig2
-rw-r--r--sound/soc/pxa/Kconfig2
-rw-r--r--sound/soc/spear/Kconfig2
8 files changed, 10 insertions, 11 deletions
diff --git a/sound/core/Kconfig b/sound/core/Kconfig
index c0c2f57a0d6f..94ce1c44ff83 100644
--- a/sound/core/Kconfig
+++ b/sound/core/Kconfig
@@ -6,6 +6,9 @@ config SND_PCM
6 tristate 6 tristate
7 select SND_TIMER 7 select SND_TIMER
8 8
9config SND_DMAENGINE_PCM
10 bool
11
9config SND_HWDEP 12config SND_HWDEP
10 tristate 13 tristate
11 14
diff --git a/sound/core/Makefile b/sound/core/Makefile
index 43d4117428ac..5e890cfed423 100644
--- a/sound/core/Makefile
+++ b/sound/core/Makefile
@@ -13,6 +13,8 @@ snd-$(CONFIG_SND_JACK) += jack.o
13snd-pcm-objs := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \ 13snd-pcm-objs := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \
14 pcm_memory.o 14 pcm_memory.o
15 15
16snd-pcm-dmaengine-objs := pcm_dmaengine.o
17
16snd-page-alloc-y := memalloc.o 18snd-page-alloc-y := memalloc.o
17snd-page-alloc-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o 19snd-page-alloc-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
18 20
@@ -30,6 +32,7 @@ obj-$(CONFIG_SND_TIMER) += snd-timer.o
30obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o 32obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
31obj-$(CONFIG_SND_RTCTIMER) += snd-rtctimer.o 33obj-$(CONFIG_SND_RTCTIMER) += snd-rtctimer.o
32obj-$(CONFIG_SND_PCM) += snd-pcm.o snd-page-alloc.o 34obj-$(CONFIG_SND_PCM) += snd-pcm.o snd-page-alloc.o
35obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
33obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o 36obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o
34 37
35obj-$(CONFIG_SND_OSSEMUL) += oss/ 38obj-$(CONFIG_SND_OSSEMUL) += oss/
diff --git a/sound/soc/soc-dmaengine-pcm.c b/sound/core/pcm_dmaengine.c
index aa924d9b7986..aa924d9b7986 100644
--- a/sound/soc/soc-dmaengine-pcm.c
+++ b/sound/core/pcm_dmaengine.c
diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig
index 45eeaa9f7fec..5138b8493051 100644
--- a/sound/soc/Kconfig
+++ b/sound/soc/Kconfig
@@ -26,12 +26,9 @@ if SND_SOC
26config SND_SOC_AC97_BUS 26config SND_SOC_AC97_BUS
27 bool 27 bool
28 28
29config SND_SOC_DMAENGINE_PCM
30 bool
31
32config SND_SOC_GENERIC_DMAENGINE_PCM 29config SND_SOC_GENERIC_DMAENGINE_PCM
33 bool 30 bool
34 select SND_SOC_DMAENGINE_PCM 31 select SND_DMAENGINE_PCM
35 32
36# All the supported SoCs 33# All the supported SoCs
37source "sound/soc/atmel/Kconfig" 34source "sound/soc/atmel/Kconfig"
diff --git a/sound/soc/Makefile b/sound/soc/Makefile
index bc0261476d7a..61a64d281905 100644
--- a/sound/soc/Makefile
+++ b/sound/soc/Makefile
@@ -1,10 +1,6 @@
1snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o 1snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o
2snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o 2snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o
3 3
4ifneq ($(CONFIG_SND_SOC_DMAENGINE_PCM),)
5snd-soc-core-objs += soc-dmaengine-pcm.o
6endif
7
8ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),) 4ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),)
9snd-soc-core-objs += soc-generic-dmaengine-pcm.o 5snd-soc-core-objs += soc-generic-dmaengine-pcm.o
10endif 6endif
diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig
index 9f5d55e6b17a..accd0ff0fbfc 100644
--- a/sound/soc/omap/Kconfig
+++ b/sound/soc/omap/Kconfig
@@ -1,7 +1,7 @@
1config SND_OMAP_SOC 1config SND_OMAP_SOC
2 tristate "SoC Audio for the Texas Instruments OMAP chips" 2 tristate "SoC Audio for the Texas Instruments OMAP chips"
3 depends on ARCH_OMAP && DMA_OMAP 3 depends on ARCH_OMAP && DMA_OMAP
4 select SND_SOC_DMAENGINE_PCM 4 select SND_DMAENGINE_PCM
5 5
6config SND_OMAP_SOC_DMIC 6config SND_OMAP_SOC_DMIC
7 tristate 7 tristate
diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig
index b35809467547..4db74a083db1 100644
--- a/sound/soc/pxa/Kconfig
+++ b/sound/soc/pxa/Kconfig
@@ -11,7 +11,7 @@ config SND_PXA2XX_SOC
11config SND_MMP_SOC 11config SND_MMP_SOC
12 bool "Soc Audio for Marvell MMP chips" 12 bool "Soc Audio for Marvell MMP chips"
13 depends on ARCH_MMP 13 depends on ARCH_MMP
14 select SND_SOC_DMAENGINE_PCM 14 select SND_DMAENGINE_PCM
15 select SND_ARM 15 select SND_ARM
16 help 16 help
17 Say Y if you want to add support for codecs attached to 17 Say Y if you want to add support for codecs attached to
diff --git a/sound/soc/spear/Kconfig b/sound/soc/spear/Kconfig
index 3567d73b218e..0a53053495f3 100644
--- a/sound/soc/spear/Kconfig
+++ b/sound/soc/spear/Kconfig
@@ -1,6 +1,6 @@
1config SND_SPEAR_SOC 1config SND_SPEAR_SOC
2 tristate 2 tristate
3 select SND_SOC_DMAENGINE_PCM 3 select SND_DMAENGINE_PCM
4 4
5config SND_SPEAR_SPDIF_OUT 5config SND_SPEAR_SPDIF_OUT
6 tristate 6 tristate