ASoC: sof: topology: use for_each_card_rtds()

We already have for_each_card_rtds(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87h5mpet2c.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2026-06-26 06:04:20 +00:00 committed by Mark Brown
parent 6eee87fc72
commit e3653722b9
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1102,7 +1102,7 @@ static int sof_connect_dai_widget(struct snd_soc_component *scomp,
full = NULL;
partial = NULL;
list_for_each_entry(rtd, &card->rtd_list, list) {
for_each_card_rtds(card, rtd) {
/* does stream match DAI link ? */
if (rtd->dai_link->stream_name) {
if (!strcmp(rtd->dai_link->stream_name, w->sname)) {
@ -1167,7 +1167,7 @@ static void sof_disconnect_dai_widget(struct snd_soc_component *scomp,
else
return;
list_for_each_entry(rtd, &card->rtd_list, list) {
for_each_card_rtds(card, rtd) {
/* does stream match DAI link ? */
if (!rtd->dai_link->stream_name ||
!strstr(rtd->dai_link->stream_name, sname))