]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Break out of widget search when source and sink are located
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 7 May 2015 10:33:58 +0000 (11:33 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2015 14:12:42 +0000 (15:12 +0100)
commitf965c37c0d3d36bff67a572702c431bc0f020e36
tree375bc0edde05f07ed4b1ce01568def77101b9544
parent6a72e0c3070979d651a36d7b1a1fa14cfb02d3fe
ASoC: dapm: Break out of widget search when source and sink are located

Currently snd_soc_dapm_add_route will continue to search the widget list
even after both the source and sink for the route have been located.
This patch breaks out of the search when both are located giving a
small improvement in probe time for drivers.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c