ASoC: dapm: Fix source list debugfs outputs
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2013 13:21:49 +0000 (14:21 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 28 Oct 2013 16:32:57 +0000 (09:32 -0700)
... 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>
Cc: stable@vger.kernel.org
sound/soc/soc-dapm.c

index c17c14c394df88bb0442ccaf51b5735f05455ab5..e650e995a8e6850a25ed4cdbcd2b6bdf1322bf7f 100644 (file)
@@ -1949,7 +1949,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)