Commit 52dc6852 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: rsnd_dai_connect() returns error if it connect to existing mod

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c90269c1
...@@ -354,6 +354,9 @@ int rsnd_dai_connect(struct rsnd_mod *mod, ...@@ -354,6 +354,9 @@ int rsnd_dai_connect(struct rsnd_mod *mod,
if (!mod) if (!mod)
return -EIO; return -EIO;
if (io->mod[type])
return -EINVAL;
priv = rsnd_mod_to_priv(mod); priv = rsnd_mod_to_priv(mod);
dev = rsnd_priv_to_dev(priv); dev = rsnd_priv_to_dev(priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment