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

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

parent c90269c1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);