mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
6eee87fc72
commit
e3653722b9
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user