summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown2012-03-03 19:01:01 +0100
committerMark Brown2012-03-05 15:50:18 +0100
commitf13ebada17142438ab97afa0421aa5084ce174f2 (patch)
tree6bf147722ac3c963360e31b07f282166e4609ca1 /sound/soc/soc-dapm.c
parentASoC: wm8753: fix initialization (diff)
downloadkernel-qcow2-linux-f13ebada17142438ab97afa0421aa5084ce174f2.tar.gz
kernel-qcow2-linux-f13ebada17142438ab97afa0421aa5084ce174f2.tar.xz
kernel-qcow2-linux-f13ebada17142438ab97afa0421aa5084ce174f2.zip
ASoC: dapm: Show if widgets are forced in debugfs
The information was not otherwise visible. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index c9b088dab1cf..a4d4aa1e6c49 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -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,