projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c9e38c
)
ASoC: meson: axg-card: use snd_soc_dai_link_component for aux_dev
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Thu, 8 Aug 2019 05:53:59 +0000
(14:53 +0900)
committer
Mark Brown
<broonie@kernel.org>
Fri, 9 Aug 2019 17:12:31 +0000
(18:12 +0100)
We can use snd_soc_dai_link_component to specify aux_dev.
Let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87r25w6wa1.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-card.c
patch
|
blob
|
history
diff --git
a/sound/soc/meson/axg-card.c
b/sound/soc/meson/axg-card.c
index 14a8321744daf80ec93db9b30de168d84a591255..6283e5025548cc78c0bb434a3b952ab7370ad5bf 100644
(file)
--- a/
sound/soc/meson/axg-card.c
+++ b/
sound/soc/meson/axg-card.c
@@
-124,7
+124,7
@@
static void axg_card_clean_references(struct axg_card *priv)
if (card->aux_dev) {
for (i = 0; i < card->num_aux_devs; i++)
- of_node_put(card->aux_dev[i].
codec_
of_node);
+ of_node_put(card->aux_dev[i].
dlc.
of_node);
}
kfree(card->dai_link);
@@
-158,9
+158,9
@@
static int axg_card_add_aux_devices(struct snd_soc_card *card)
card->num_aux_devs = num;
for (i = 0; i < card->num_aux_devs; i++, aux++) {
- aux->
codec_
of_node =
+ aux->
dlc.
of_node =
of_parse_phandle(node, "audio-aux-devs", i);
- if (!aux->
codec_
of_node)
+ if (!aux->
dlc.
of_node)
return -EINVAL;
}