Explorar o código

ASoC: dapm: Fix input list to use source widgets

We should only add source widgets to the input list.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Liam Girdwood %!s(int64=13) %!d(string=hai) anos
pai
achega
90c6ce0d54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sound/soc/soc-dapm.c

+ 1 - 1
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 ? */
 			/* do we need to add this widget to the list ? */
 			if (list) {
 			if (list) {
 				int err;
 				int err;
-				err = dapm_list_add_widget(list, path->sink);
+				err = dapm_list_add_widget(list, path->source);
 				if (err < 0) {
 				if (err < 0) {
 					dev_err(widget->dapm->dev, "could not add widget %s\n",
 					dev_err(widget->dapm->dev, "could not add widget %s\n",
 						widget->name);
 						widget->name);