projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c90269c
)
ASoC: rsnd: rsnd_dai_connect() returns error if it connect to existing mod
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Thu, 17 Dec 2015 02:56:31 +0000
(
02:56
+0000)
committer
Mark Brown
<broonie@kernel.org>
Fri, 18 Dec 2015 12:10:56 +0000
(12:10 +0000)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
patch
|
blob
|
history
diff --git
a/sound/soc/sh/rcar/core.c
b/sound/soc/sh/rcar/core.c
index
44f32c1
..
e59dc8a
100644
(file)
--- 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,
if (!mod)
return -EIO;
+ if (io->mod[type])
+ return -EINVAL;
+
priv = rsnd_mod_to_priv(mod);
dev = rsnd_priv_to_dev(priv);