ASoC: dapm: Fix source list debugfs outputs
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2013 13:21:49 +0000 (14:21 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Nov 2013 14:02:05 +0000 (14:02 +0000)
commit ff18620c2157671a8ee21ebb8e6a3520ea209b1f upstream.

... due to a copy & paste error.

Spotted by coverity CID 710923.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/soc/soc-dapm.c

index b516488..1d83a40 100644 (file)
@@ -1523,7 +1523,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
                                w->active ? "active" : "inactive");
 
        list_for_each_entry(p, &w->sources, list_sink) {
-               if (p->connected && !p->connected(w, p->sink))
+               if (p->connected && !p->connected(w, p->source))
                        continue;
 
                if (p->connect)