diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2018-03-27 14:30:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-04-17 18:11:05 +0100 |
commit | 5db6aab6f36f7560dc95f7ca340d5632b7a3be6a (patch) | |
tree | ee7e7b353bf8bafe5af024ea95f732b0b38a6777 /sound/soc/soc-topology.c | |
parent | 28aa6f7779f77a863a08c1b9db4b654a94c86dd0 (diff) | |
download | linux-5db6aab6f36f7560dc95f7ca340d5632b7a3be6a.tar.gz linux-5db6aab6f36f7560dc95f7ca340d5632b7a3be6a.tar.bz2 linux-5db6aab6f36f7560dc95f7ca340d5632b7a3be6a.zip |
ASoC: topology: Add support for compressed PCMs
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>
Diffstat (limited to 'sound/soc/soc-topology.c')
-rw-r--r-- | sound/soc/soc-topology.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |