diff options
| author | Daniel Mack <zonque@gmail.com> | 2013-08-12 04:42:37 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-08-15 06:18:09 -0400 |
| commit | b7ae6f31d8243ec684af16bc5c763eccdfabaec0 (patch) | |
| tree | 09bcafcf065ffe743258f8ffbf6c055a1c130b4f | |
| parent | d4e4ab86bcba5a72779c43dc1459f71fea3d89c8 (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/Kconfig | 3 | ||||
| -rw-r--r-- | sound/core/Makefile | 3 | ||||
| -rw-r--r-- | sound/core/pcm_dmaengine.c (renamed from sound/soc/soc-dmaengine-pcm.c) | 0 | ||||
| -rw-r--r-- | sound/soc/Kconfig | 5 | ||||
| -rw-r--r-- | sound/soc/Makefile | 4 | ||||
| -rw-r--r-- | sound/soc/omap/Kconfig | 2 | ||||
| -rw-r--r-- | sound/soc/pxa/Kconfig | 2 | ||||
| -rw-r--r-- | sound/soc/spear/Kconfig | 2 |
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 | ||
| 9 | config SND_DMAENGINE_PCM | ||
| 10 | bool | ||
| 11 | |||
| 9 | config SND_HWDEP | 12 | config 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 | |||
| 13 | snd-pcm-objs := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \ | 13 | snd-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 | ||
| 16 | snd-pcm-dmaengine-objs := pcm_dmaengine.o | ||
| 17 | |||
| 16 | snd-page-alloc-y := memalloc.o | 18 | snd-page-alloc-y := memalloc.o |
| 17 | snd-page-alloc-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o | 19 | snd-page-alloc-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o |
| 18 | 20 | ||
| @@ -30,6 +32,7 @@ obj-$(CONFIG_SND_TIMER) += snd-timer.o | |||
| 30 | obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o | 32 | obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o |
| 31 | obj-$(CONFIG_SND_RTCTIMER) += snd-rtctimer.o | 33 | obj-$(CONFIG_SND_RTCTIMER) += snd-rtctimer.o |
| 32 | obj-$(CONFIG_SND_PCM) += snd-pcm.o snd-page-alloc.o | 34 | obj-$(CONFIG_SND_PCM) += snd-pcm.o snd-page-alloc.o |
| 35 | obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o | ||
| 33 | obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o | 36 | obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o |
| 34 | 37 | ||
| 35 | obj-$(CONFIG_SND_OSSEMUL) += oss/ | 38 | obj-$(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 | |||
| 26 | config SND_SOC_AC97_BUS | 26 | config SND_SOC_AC97_BUS |
| 27 | bool | 27 | bool |
| 28 | 28 | ||
| 29 | config SND_SOC_DMAENGINE_PCM | ||
| 30 | bool | ||
| 31 | |||
| 32 | config SND_SOC_GENERIC_DMAENGINE_PCM | 29 | config 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 |
| 37 | source "sound/soc/atmel/Kconfig" | 34 | source "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 @@ | |||
| 1 | snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o | 1 | snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o |
| 2 | snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o | 2 | snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o |
| 3 | 3 | ||
| 4 | ifneq ($(CONFIG_SND_SOC_DMAENGINE_PCM),) | ||
| 5 | snd-soc-core-objs += soc-dmaengine-pcm.o | ||
| 6 | endif | ||
| 7 | |||
| 8 | ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),) | 4 | ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),) |
| 9 | snd-soc-core-objs += soc-generic-dmaengine-pcm.o | 5 | snd-soc-core-objs += soc-generic-dmaengine-pcm.o |
| 10 | endif | 6 | endif |
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 @@ | |||
| 1 | config SND_OMAP_SOC | 1 | config 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 | ||
| 6 | config SND_OMAP_SOC_DMIC | 6 | config 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 | |||
| 11 | config SND_MMP_SOC | 11 | config 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 @@ | |||
| 1 | config SND_SPEAR_SOC | 1 | config SND_SPEAR_SOC |
| 2 | tristate | 2 | tristate |
| 3 | select SND_SOC_DMAENGINE_PCM | 3 | select SND_DMAENGINE_PCM |
| 4 | 4 | ||
| 5 | config SND_SPEAR_SPDIF_OUT | 5 | config SND_SPEAR_SPDIF_OUT |
| 6 | tristate | 6 | tristate |
