aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.6
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-12-10 21:05:27 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-12-10 21:05:27 +0000
commit5364c8124e5ab6622f7fc05c123bcd4b97d77415 (patch)
treead060fc8641272a987c9be76c9100bf4aed47c1d /target/linux/generic/patches-3.6
parent39dd0738807dccca65fc64ee1a99b173e5a6ec7c (diff)
downloadupstream-5364c8124e5ab6622f7fc05c123bcd4b97d77415.tar.gz
upstream-5364c8124e5ab6622f7fc05c123bcd4b97d77415.tar.bz2
upstream-5364c8124e5ab6622f7fc05c123bcd4b97d77415.zip
generic: backport an upstream fix for building snd-soc-pcm as a module
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34617 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.6')
-rw-r--r--target/linux/generic/patches-3.6/066-snd-soc-dmaengine-pcm.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.6/066-snd-soc-dmaengine-pcm.patch b/target/linux/generic/patches-3.6/066-snd-soc-dmaengine-pcm.patch
new file mode 100644
index 0000000000..f29721815c
--- /dev/null
+++ b/target/linux/generic/patches-3.6/066-snd-soc-dmaengine-pcm.patch
@@ -0,0 +1,34 @@
+From 961a7aeafab477f63d9eef26afde9cbb8badcd0f Mon Sep 17 00:00:00 2001
+From: Peter Ujfalusi <peter.ujfalusi@ti.com>
+Date: Mon, 1 Oct 2012 12:29:26 +0300
+Subject: [PATCH] ASoC: dmaengine: Correct Makefile when sound is built as
+ module
+
+soc-dmaengine-pcm library need to be part of the snd-soc-core in order to
+be able to compile ASoC as modules when dmaengine is enabled on the platform.
+
+Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
+Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
+---
+ sound/soc/Makefile | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/sound/soc/Makefile b/sound/soc/Makefile
+index bcbf1d0..99f32f7 100644
+--- a/sound/soc/Makefile
++++ b/sound/soc/Makefile
+@@ -1,8 +1,9 @@
+ snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o
+ snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o
+
+-snd-soc-dmaengine-pcm-objs := soc-dmaengine-pcm.o
+-obj-$(CONFIG_SND_SOC_DMAENGINE_PCM) += snd-soc-dmaengine-pcm.o
++ifneq ($(CONFIG_SND_SOC_DMAENGINE_PCM),)
++snd-soc-core-objs += soc-dmaengine-pcm.o
++endif
+
+ obj-$(CONFIG_SND_SOC) += snd-soc-core.o
+ obj-$(CONFIG_SND_SOC) += codecs/
+--
+1.7.10.4
+