]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: dapm: Show if widgets are forced in debugfs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Mar 2012 18:01:01 +0000 (18:01 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Mar 2012 14:50:18 +0000 (14:50 +0000)
The information was not otherwise visible.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-dapm.c

index c9b088dab1cf4cad72d0ef2248deff11391b203b..a4d4aa1e6c496615f3b78890bcbb0aee9fa9ed8c 100644 (file)
@@ -1569,8 +1569,9 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
        out = is_connected_output_ep(w);
        dapm_clear_walk(w->dapm);
 
-       ret = snprintf(buf, PAGE_SIZE, "%s: %s  in %d out %d",
-                      w->name, w->power ? "On" : "Off", in, out);
+       ret = snprintf(buf, PAGE_SIZE, "%s: %s%s  in %d out %d",
+                      w->name, w->power ? "On" : "Off",
+                      w->force ? " (forced)" : "", in, out);
 
        if (w->reg >= 0)
                ret += snprintf(buf + ret, PAGE_SIZE - ret,