Compress APIs are not always needed, but they are always built currentlly, in both ALSA core and ASoC core.
This series make it possible to not compile it when unneeded.
Hi, Takashi & all,
I am not sure you will like the patch 2/2, it split soc-compress to a module, but introduced several extra 'EXPORT_SYMBOL_GPL' there. If don't like it, you can just apply the first one(1/2) and skip 2/2.
thanks, ~Keyon
Changes in this version: 1. change to use a callback for compress_new, and remove compress_dai bool. 2. remove the empty module_init/exit for soc-compress module.
Jie Yang (2): ASoC: soc-compress: add a config item for soc-compress ASoC: soc-compress: split soc-compress to a module
include/sound/soc-dai.h | 2 +- include/sound/soc.h | 2 ++ sound/soc/Kconfig | 6 +++++- sound/soc/Makefile | 5 ++++- sound/soc/intel/Kconfig | 1 + sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/soc-compress.c | 10 ++++++++++ sound/soc/soc-core.c | 4 ++-- sound/soc/soc-dapm.c | 1 + sound/soc/soc-pcm.c | 13 +++++++++++++ 10 files changed, 40 insertions(+), 6 deletions(-)