From: Liam Girdwood Date: Tue, 27 Mar 2018 13:30:45 +0000 (+0100) Subject: ASoC: topology: Add support for compressed PCMs X-Git-Tag: for-linus-20180616~69^2^2~205 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5db6aab6f36f;p=linux-block.git ASoC: topology: Add support for compressed PCMs Register a compressed PCM if topology defines one. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index b9370ae31907..b95a9ab0b526 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1772,6 +1772,9 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg, set_stream_info(stream, caps); } + if (pcm->compress) + dai_drv->compress_new = snd_soc_new_compress; + /* pass control to component driver for optional further init */ ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL); if (ret < 0) {