mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
ASoC: soc-topology: merge DAI call back functions into ops
ALSA SoC merges DAI call backs into .ops. This patch merge these into one. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87il9p9m5a.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
586685f14d
commit
80585b0c6a
1 changed files with 5 additions and 1 deletions
|
@ -1560,6 +1560,10 @@ static void set_dai_flags(struct snd_soc_dai_driver *dai_drv,
|
|||
1 : 0;
|
||||
}
|
||||
|
||||
static const struct snd_soc_dai_ops tplg_dai_ops = {
|
||||
.compress_new = snd_soc_new_compress,
|
||||
};
|
||||
|
||||
static int soc_tplg_dai_create(struct soc_tplg *tplg,
|
||||
struct snd_soc_tplg_pcm *pcm)
|
||||
{
|
||||
|
@ -1601,7 +1605,7 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg,
|
|||
}
|
||||
|
||||
if (pcm->compress)
|
||||
dai_drv->compress_new = snd_soc_new_compress;
|
||||
dai_drv->ops = &tplg_dai_ops;
|
||||
|
||||
/* pass control to component driver for optional further init */
|
||||
ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL);
|
||||
|
|
Loading…
Reference in a new issue