ASoC: dapm: Add snd_soc_dapm_add_path() helper function
commit2553628e1973709bf378320ecffd3e4fb34458db
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 29 Jul 2013 15:14:02 +0000 (29 17:14 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 17:41:00 +0000 (29 18:41 +0100)
tree38ab7961bb923e3ffca25ec02704f7fb65a7e8f3
parentde9ba98b6d2629f53fd271a973176c2fa9736d9c
ASoC: dapm: Add snd_soc_dapm_add_path() helper function

snd_soc_dapm_add_path() is similar to snd_soc_dapm_add_route() except that it
expects the pointer to the source and sink widgets instead of their names. This
allows us to simplify the case where we already have a pointer to widgets. (E.g.
as we have in snd_soc_dapm_link_dai_widgets()). snd_soc_dapm_add_route() will be
updated to just look up the widget and then use snd_soc_dapm_add_path() to
handle everything else.

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