Hi Mark
Current soc-core.c has snd_soc_{of_}get_dai_name() to get DAI name for dlc (snd_soc_dai_link_component). It gets .dai_name, but we need .of_node too. Therefor user need to arrange.
It will be more useful if it gets both .dai_name and .of_node. This patch adds snd_soc_{of_}get_dlc() for it, and convert to use it.
v2 -> v3 - care loongson on [2/9]
v1 -> v2 - add patch for loongson
Link: https://lore.kernel.org/r/87cz1rdmp0.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87mt12hp75.wl-kuninori.morimoto.gx@renesas.com
Kuninori Morimoto (9): ASoC: soc-core.c: add snd_soc_{of_}get_dlc() ASoC: soc-core.c: add index on snd_soc_of_get_dai_name() ASoC: fsl: use snd_soc_{of_}get_dlc() ASoC: qcom: use snd_soc_{of_}get_dlc() ASoC: meson: use snd_soc_{of_}get_dlc() ASoC: samsung: use snd_soc_{of_}get_dlc() ASoC: loongson: use snd_soc_{of_}get_dlc() ASoC: soc-core.c: use snd_soc_{of_}get_dlc() ASoC: simple-card.c: use snd_soc_{of_}get_dlc()
include/sound/soc.h | 8 ++- sound/soc/fsl/imx-card.c | 14 +---- sound/soc/fsl/imx-rpmsg.c | 3 +- sound/soc/generic/simple-card-utils.c | 4 +- sound/soc/generic/simple-card.c | 4 +- sound/soc/loongson/loongson_card.c | 34 ++++------ sound/soc/mediatek/mt8173/mt8173-rt5650.c | 2 +- sound/soc/meson/axg-card.c | 3 +- sound/soc/meson/gx-card.c | 3 +- sound/soc/meson/meson-card-utils.c | 16 ++--- sound/soc/meson/meson-card.h | 3 +- sound/soc/qcom/common.c | 13 +--- sound/soc/samsung/odroid.c | 16 +---- sound/soc/soc-core.c | 77 ++++++++++++----------- 14 files changed, 79 insertions(+), 121 deletions(-)