Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: generic: update outdated comment for removed soc_bind_dai_link()

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>

authored by

Kexin Sun and committed by
Mark Brown
d57fe7b0 e3f1ce07

+5 -3
+1 -1
sound/soc/generic/simple-card-utils.c
··· 718 718 int is_single_links) 719 719 { 720 720 /* 721 - * In soc_bind_dai_link() will check cpu name after 721 + * In snd_soc_add_pcm_runtime() will check cpu name after 722 722 * of_node matching if dai_link has cpu_dai_name. 723 723 * but, it will never match if name was created by 724 724 * fmt_single_name() remove cpu_dai_name if cpu_args
+4 -2
sound/soc/generic/simple-card.c
··· 48 48 49 49 /* 50 50 * Get node via "sound-dai = <&phandle port>" 51 - * it will be used as xxx_of_node on soc_bind_dai_link() 51 + * It will be used as the of_node for component matching during 52 + * snd_soc_add_pcm_runtime(). 52 53 */ 53 54 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args); 54 55 if (ret) ··· 77 76 78 77 /* 79 78 * Get node via "sound-dai = <&phandle port>" 80 - * it will be used as xxx_of_node on soc_bind_dai_link() 79 + * It will be used as the of_node for component matching during 80 + * snd_soc_add_pcm_runtime(). 81 81 */ 82 82 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args); 83 83 if (ret)