Commit 5db6aab6 authored by Liam Girdwood's avatar Liam Girdwood Committed by Mark Brown

ASoC: topology: Add support for compressed PCMs

Register a compressed PCM if topology defines one.
Signed-off-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 28aa6f77
...@@ -1772,6 +1772,9 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg, ...@@ -1772,6 +1772,9 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg,
set_stream_info(stream, caps); 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 */ /* pass control to component driver for optional further init */
ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL); ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment