]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Add warnings for widget overwrite when adding route
authorZhiwei Jiang <qq282012236@gmail.com>
Thu, 31 Jan 2019 11:30:05 +0000 (19:30 +0800)
committerMark Brown <broonie@kernel.org>
Sat, 2 Feb 2019 16:15:27 +0000 (17:15 +0100)
commit332441fe3c3bcfb96faefca0da0fa932392d390e
tree20cbafaf134087df26305e6dd3b6d930ed9ab75d
parenta427b63733b7d6eaae895ade2e0fbff86bb7d55c
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: Zhiwei Jiang <qq282012236@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c