summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/rcar
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-11-21 01:58:30 +0000
committerMark Brown <broonie@kernel.org>2018-11-21 13:27:21 +0000
commit331e875432ecfb651d9335a18149160c307429ab (patch)
tree24b3271857922f91a1826f8065636a72cdf2a131 /sound/soc/sh/rcar
parentf6c2d6026afe2f1e611bdec270e1f42af0a42f06 (diff)
downloadlinux-331e875432ecfb651d9335a18149160c307429ab.tar.bz2
ASoC: rsnd: tidyup rsnd_parse_connect_ssiu_compatible()
rsnd_parse_connect_ssiu_compatible() is doing - using rsnd_ssiu_id(), but we use it via rsnd_mod_id() - we can break loop if rsnd_dai_connect() was called This patch fixup these. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar')
-rw-r--r--sound/soc/sh/rcar/ssiu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c
index 650b14e99b05..04b1a4836bd3 100644
--- a/sound/soc/sh/rcar/ssiu.c
+++ b/sound/soc/sh/rcar/ssiu.c
@@ -382,9 +382,11 @@ static void rsnd_parse_connect_ssiu_compatible(struct rsnd_priv *priv,
for_each_rsnd_ssiu(ssiu, priv, i) {
mod = rsnd_mod_get(ssiu);
- if ((rsnd_mod_id(ssi_mod) == rsnd_ssiu_id(mod)) &&
- (rsnd_mod_id_sub(mod) == 0))
+ if ((rsnd_mod_id(ssi_mod) == rsnd_mod_id(mod)) &&
+ (rsnd_mod_id_sub(mod) == 0)) {
rsnd_dai_connect(mod, io, mod->type);
+ return;
+ }
}
}