summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
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/soc-core.c
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/soc-core.c')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 6173d15236c3..6e543e18b4fa 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1370,9 +1370,9 @@ static int soc_probe_link_dais(struct snd_soc_card *card, int num, int order)
soc_dpcm_debugfs_add(rtd);
#endif
- if (cpu_dai->driver->compress_dai) {
+ if (cpu_dai->driver->compress_new) {
/*create compress_device"*/
- ret = soc_new_compress(rtd, num);
+ ret = cpu_dai->driver->compress_new(rtd, num);
if (ret < 0) {
dev_err(card->dev, "ASoC: can't create compress %s\n",
dai_link->stream_name);