From: Liam Girdwood Date: Tue, 5 Jun 2012 18:27:15 +0000 (+0100) Subject: ASoC: dapm: Fix input list to use source widgets X-Git-Tag: v3.5-rc3~21^2~13 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=90c6ce0d5482ee52b0a427115e185d488783164b;p=~emulex%2Finfiniband.git ASoC: dapm: Fix input list to use source widgets We should only add source widgets to the input list. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index b47fe75444a..89eae93445c 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -913,7 +913,7 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, /* do we need to add this widget to the list ? */ if (list) { int err; - err = dapm_list_add_widget(list, path->sink); + err = dapm_list_add_widget(list, path->source); if (err < 0) { dev_err(widget->dapm->dev, "could not add widget %s\n", widget->name);