mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
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
@ -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 New Issue
Block a user