OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
586685f
)
ASoC: soc-topology: merge DAI call back functions into ops
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Tue, 8 Aug 2023 22:58:42 +0000
(22:58 +0000)
committer
Mark Brown
<broonie@kernel.org>
Mon, 14 Aug 2023 12:10:32 +0000
(13:10 +0100)
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>
sound/soc/soc-topology.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-topology.c
b/sound/soc/soc-topology.c
index
ad08d4f
..
e783055
100644
(file)
--- a/
sound/soc/soc-topology.c
+++ b/
sound/soc/soc-topology.c
@@
-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_compres
s;
+ dai_drv->
ops = &tplg_dai_op
s;
/* pass control to component driver for optional further init */
ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL);