diff options
author | Jie Yang <yang.jie@intel.com> | 2015-10-13 23:41:00 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-22 13:52:16 +0100 |
commit | 6f0c42269f000b1e346c84d9a589f17aa94c96d8 (patch) | |
tree | 2edb15af0b7a05bb81d75c43e5358f2ffcb1b455 /sound/soc/intel | |
parent | 26d9ca3462df8f7e83fc372b23c8da5ed2b1c4f3 (diff) | |
download | op-kernel-dev-6f0c42269f000b1e346c84d9a589f17aa94c96d8.zip op-kernel-dev-6f0c42269f000b1e346c84d9a589f17aa94c96d8.tar.gz |
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/intel')
-rw-r--r-- | sound/soc/intel/Kconfig | 1 | ||||
-rw-r--r-- | sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig index 05fde5e6e..221e3bd 100644 --- a/sound/soc/intel/Kconfig +++ b/sound/soc/intel/Kconfig @@ -12,6 +12,7 @@ config SND_MFLD_MACHINE config SND_SST_MFLD_PLATFORM tristate + select SND_SOC_COMPRESS config SND_SST_IPC tristate diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index 683e501..4c734f5 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -529,7 +529,7 @@ static struct snd_soc_dai_driver sst_platform_dai[] = { }, { .name = "compress-cpu-dai", - .compress_dai = 1, + .compress_new = snd_soc_new_compress, .ops = &sst_compr_dai_ops, .playback = { .stream_name = "Compress Playback", |