diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-04-24 01:15:24 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-29 14:27:42 +0200 |
commit | b5ae4ccea5ab15adcde64f4474b36e4a630434ec (patch) | |
tree | da1fea24cec4875bb25d1f96f164e4e7eccba749 /sound/soc/soc-dai.c | |
parent | ASoC: soc-dai: add snd_soc_pcm_dai_remove() (diff) | |
download | linux-b5ae4ccea5ab15adcde64f4474b36e4a630434ec.tar.xz linux-b5ae4ccea5ab15adcde64f4474b36e4a630434ec.zip |
ASoC: soc-dai: add snd_soc_dai_compr_start()
dai related function should be implemented at soc-dai.c.
This patch adds snd_soc_dai_compr_start().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-By: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/87pnbxssj7.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dai.c')
-rw-r--r-- | sound/soc/soc-dai.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index 2bc452fe02ff..5c88f80b781d 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -504,3 +504,16 @@ int snd_soc_pcm_dai_bespoke_trigger(struct snd_pcm_substream *substream, return 0; } + +int snd_soc_dai_compr_startup(struct snd_soc_dai *dai, + struct snd_compr_stream *cstream) +{ + int ret = 0; + + if (dai->driver->cops && + dai->driver->cops->startup) + ret = dai->driver->cops->startup(cstream, dai); + + return soc_dai_ret(dai, ret); +} +EXPORT_SYMBOL_GPL(snd_soc_dai_compr_startup); |