diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-09-18 01:29:35 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-20 10:21:28 -0700 |
commit | bcb1fd1fcd6507ba5a1f8610550135dc367aedb7 (patch) | |
tree | ebc73c53748325b0a910b064cec0858b927624ef /include/sound | |
parent | 98061fdbfccc02aa0fd6637c67a0524aab385b8d (diff) | |
download | op-kernel-dev-bcb1fd1fcd6507ba5a1f8610550135dc367aedb7.zip op-kernel-dev-bcb1fd1fcd6507ba5a1f8610550135dc367aedb7.tar.gz |
ASoC: add for_each_card_rtds() macro
To be more readable code, this patch adds
new for_each_card_rtds() macro, and replace existing code to it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 1fffbaa..164418d 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1130,6 +1130,10 @@ struct snd_soc_card { #define for_each_card_links_safe(card, link, _link) \ list_for_each_entry_safe(link, _link, &(card)->dai_link_list, list) +#define for_each_card_rtds(card, rtd) \ + list_for_each_entry(rtd, &(card)->rtd_list, list) +#define for_each_card_rtds_safe(card, rtd, _rtd) \ + list_for_each_entry_safe(rtd, _rtd, &(card)->rtd_list, list) /* SoC machine DAI configuration, glues a codec and cpu DAI together */ struct snd_soc_pcm_runtime { |