mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
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>
This commit is contained in:
parent
ad20ff920c
commit
f13ebada17
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user