diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-05-13 16:06:44 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-13 12:44:18 +0100 |
commit | e2b30edfb9435879dc68cdb7ce20299492012101 (patch) | |
tree | ddbd0ba72becdf62983c120cb643c7cb113dd150 /sound/soc/soc-core.c | |
parent | 0a2cfcd998e3503c20be497cadb0ef23edb984be (diff) | |
download | linux-stable-e2b30edfb9435879dc68cdb7ce20299492012101.tar.gz linux-stable-e2b30edfb9435879dc68cdb7ce20299492012101.tar.bz2 linux-stable-e2b30edfb9435879dc68cdb7ce20299492012101.zip |
ASoC: soc-core: tidyup soc_bind_dai_link() comment balance
Many code at soc_bind_dai_link() was changed, and its comment is
now a little bit anbalanced.
This patch tidyup these.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 2ceca7fdf622..c80e7df3b20b 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -906,9 +906,8 @@ static int soc_bind_dai_link(struct snd_soc_card *card, } snd_soc_rtdcom_add(rtd, rtd->cpu_dai->component); - rtd->num_codecs = dai_link->num_codecs; - /* Find CODEC from registered CODECs */ + rtd->num_codecs = dai_link->num_codecs; for_each_link_codecs(dai_link, i, codecs) { rtd->codec_dais[i] = snd_soc_find_dai(codecs); if (!rtd->codec_dais[i]) { @@ -922,7 +921,7 @@ static int soc_bind_dai_link(struct snd_soc_card *card, /* Single codec links expect codec and codec_dai in runtime data */ rtd->codec_dai = rtd->codec_dais[0]; - /* find one from the set of registered platforms */ + /* Find PLATFORM from registered PLATFORMs */ for_each_component(component) { if (!snd_soc_is_matching_component(dai_link->platforms, component)) |