Skip to content
Unverified Commit 411db2ab authored by Zhiwei Jiang's avatar Zhiwei Jiang Committed by Mark Brown
Browse files

ASoC: dapm: Add warnings for widget overwrite when adding route



Currently, in some complex cases, more than one widgets have same
name and registed from differnt dapm context, and route add from
another context too. When snd_soc_dapm_add_route, the previous
registered widget will overwritten by the latest same name widget,
will cause unexpect error. For Asoc framework we cant avoid this
situation and we cant decide which widget that wanted with route.
At least we can give users a notice.

Signed-off-by: default avatarZhiwei Jiang <qq282012236@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 078a85f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment