Skip to content

Commit

Permalink
ASoC: topology: Add support for compressed PCMs
Browse files Browse the repository at this point in the history
Register a compressed PCM if topology defines one.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
lrgirdwo authored and broonie committed Apr 17, 2018
1 parent 28aa6f7 commit 5db6aab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/soc-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5db6aab

Please sign in to comment.