ASoC: dapm: Reduce number of checked paths in dapm_widget_in_card_paths()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 20 Oct 2014 17:36:33 +0000 (19:36 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Oct 2014 11:02:33 +0000 (12:02 +0100)
commitcdc4508b4d1c609e3b0e4f23697edbee0d23b86e
tree25375e455a09971bed18a0f9e76248e3c5b0119e
parent98ad73c995ed4886c36a1fcfcda53fbff484f666
ASoC: dapm: Reduce number of checked paths in dapm_widget_in_card_paths()

Each widget has a list of all the paths that it is connected to. There is no
need to iterate over all paths when we are only interested in the paths of a
specific widget.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c