ASoC: dapm: Simplify snd_soc_dapm_link_dai_widgets()
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 7 May 2014 14:20:28 +0000 (16:20 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 20:37:17 +0000 (21:37 +0100)
commit0f9bd7b19467b9454a8e3729406f4cdcaaa32814
tree7e773e4997edd936403270d11cc0e99e584649ad
parentfe83897fc5b519b085f545d5cee2b722ed4f6d85
ASoC: dapm: Simplify snd_soc_dapm_link_dai_widgets()

If we find a widget who's stream name matches the name of a DAI widget then
thats the one it should be connected to. Based on the widget id we can say in
which direction the path should be. No need to go back to the DAI and check the
stream names.

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