diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-12-16 21:56:31 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-18 07:10:56 -0500 |
commit | 52dc68524327ed7bedfc2856bca4fa634f11141a (patch) | |
tree | 76b2424f1f0dd3e3fb878926cf3c4d38f0131756 | |
parent | c90269c1fbfcb3082d379237f0912ea231e90a24 (diff) |
ASoC: rsnd: rsnd_dai_connect() returns error if it connect to existing mod
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 44f32c1db05d..e59dc8a461bb 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -354,6 +354,9 @@ int rsnd_dai_connect(struct rsnd_mod *mod, | |||
354 | if (!mod) | 354 | if (!mod) |
355 | return -EIO; | 355 | return -EIO; |
356 | 356 | ||
357 | if (io->mod[type]) | ||
358 | return -EINVAL; | ||
359 | |||
357 | priv = rsnd_mod_to_priv(mod); | 360 | priv = rsnd_mod_to_priv(mod); |
358 | dev = rsnd_priv_to_dev(priv); | 361 | dev = rsnd_priv_to_dev(priv); |
359 | 362 | ||