summaryrefslogtreecommitdiffstats
path: root/sound/soc/Makefile
diff options
context:
space:
mode:
authorJie Yang2015-10-13 17:41:00 +0200
committerMark Brown2015-10-22 14:52:16 +0200
commit6f0c42269f000b1e346c84d9a589f17aa94c96d8 (patch)
tree2edb15af0b7a05bb81d75c43e5358f2ffcb1b455 /sound/soc/Makefile
parentASoC: Let snd_soc_limit_volume() take a snd_soc_card (diff)
downloadkernel-qcow2-linux-6f0c42269f000b1e346c84d9a589f17aa94c96d8.tar.gz
kernel-qcow2-linux-6f0c42269f000b1e346c84d9a589f17aa94c96d8.tar.xz
kernel-qcow2-linux-6f0c42269f000b1e346c84d9a589f17aa94c96d8.zip
ASoC: compress: add config item for soc-compress to make it compiled only when needed
We don't always need soc-compress in soc, here add a config item SND_SOC_COMPRESS, when nobody select it, the soc-compress will not be compiled. Here also change Kconfig to 'select SND_SOC_COMPRESS' for drivers that needed soc-compress. Signed-off-by: Jie Yang <yang.jie@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/Makefile')
-rw-r--r--sound/soc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/Makefile b/sound/soc/Makefile
index 134aca150a50..280ac8257d3e 100644
--- a/sound/soc/Makefile
+++ b/sound/soc/Makefile
@@ -1,5 +1,6 @@
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 soc-devres.o soc-ops.o
+snd-soc-core-objs += soc-pcm.o soc-io.o soc-devres.o soc-ops.o
+snd-soc-core-$(CONFIG_SND_SOC_COMPRESS) += soc-compress.o
ifneq ($(CONFIG_SND_SOC_TOPOLOGY),)
snd-soc-core-objs += soc-topology.o