The function soc_bind_dai_link() was first merged into
snd_soc_add_dai_link() by commit
63dc47da1f39 ("ASoC: soc-core: merge
snd_soc_add_dai_link() and soc_bind_dai_link()"), and later renamed to
snd_soc_add_pcm_runtime() by commit
0c04800424c4 ("ASoC: soc-core:
rename snd_soc_add_dai_link() to snd_soc_add_pcm_runtime()").
In simple-card.c, also adjust the wording since snd_soc_add_pcm_runtime()
no longer uses "xxx_of_node" fields but matches components by of_node
through snd_soc_find_dai() and snd_soc_is_matching_component().
In simple-card-utils.c, simply update the function name to its
successor snd_soc_add_pcm_runtime().
Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20260321115018.9481-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
int is_single_links)
{
/*
- * In soc_bind_dai_link() will check cpu name after
+ * In snd_soc_add_pcm_runtime() will check cpu name after
* of_node matching if dai_link has cpu_dai_name.
* but, it will never match if name was created by
* fmt_single_name() remove cpu_dai_name if cpu_args
/*
* Get node via "sound-dai = <&phandle port>"
- * it will be used as xxx_of_node on soc_bind_dai_link()
+ * It will be used as the of_node for component matching during
+ * snd_soc_add_pcm_runtime().
*/
ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args);
if (ret)
/*
* Get node via "sound-dai = <&phandle port>"
- * it will be used as xxx_of_node on soc_bind_dai_link()
+ * It will be used as the of_node for component matching during
+ * snd_soc_add_pcm_runtime().
*/
ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args);
if (ret)