mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
ASoC: rsnd: try to connect connected mod is not error
If system uses CTU/MUX, CTU/MUX/DVC will try to connect same CMD to system, but it is not error in this case. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6c001f3ab4
commit
bfa3119c38
@ -369,6 +369,9 @@ int rsnd_dai_connect(struct rsnd_mod *mod,
|
|||||||
if (!mod)
|
if (!mod)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
|
if (io->mod[type] == mod)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (io->mod[type])
|
if (io->mod[type])
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user