diff options
-rw-r--r-- | sound/soc/soc-dapm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 0d294ef72590..846678aa3d35 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1147,9 +1147,16 @@ static ssize_t dapm_widget_power_read_file(struct file *file, | |||
1147 | out = is_connected_output_ep(w); | 1147 | out = is_connected_output_ep(w); |
1148 | dapm_clear_walk(w->codec); | 1148 | dapm_clear_walk(w->codec); |
1149 | 1149 | ||
1150 | ret = snprintf(buf, PAGE_SIZE, "%s: %s in %d out %d\n", | 1150 | ret = snprintf(buf, PAGE_SIZE, "%s: %s in %d out %d", |
1151 | w->name, w->power ? "On" : "Off", in, out); | 1151 | w->name, w->power ? "On" : "Off", in, out); |
1152 | 1152 | ||
1153 | if (w->reg >= 0) | ||
1154 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
1155 | " - R%d(0x%x) bit %d", | ||
1156 | w->reg, w->reg, w->shift); | ||
1157 | |||
1158 | ret += snprintf(buf + ret, PAGE_SIZE - ret, "\n"); | ||
1159 | |||
1153 | if (w->sname) | 1160 | if (w->sname) |
1154 | ret += snprintf(buf + ret, PAGE_SIZE - ret, " stream %s %s\n", | 1161 | ret += snprintf(buf + ret, PAGE_SIZE - ret, " stream %s %s\n", |
1155 | w->sname, | 1162 | w->sname, |