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>
This commit is contained in:
parent
c90269c1fb
commit
52dc685243
1 changed files with 3 additions and 0 deletions
|
@ -354,6 +354,9 @@ int rsnd_dai_connect(struct rsnd_mod *mod,
|
|||
if (!mod)
|
||||
return -EIO;
|
||||
|
||||
if (io->mod[type])
|
||||
return -EINVAL;
|
||||
|
||||
priv = rsnd_mod_to_priv(mod);
|
||||
dev = rsnd_priv_to_dev(priv);
|
||||
|
||||
|
|
Loading…
Reference in a new issue