Skip to content

Commit

Permalink
ASoC: Fix display of stream name in DAPM debugfs
Browse files Browse the repository at this point in the history
Also display streams all the time while we're here.

Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Sep 14, 2009
1 parent 33d7f77 commit 3eef08b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,9 +1131,10 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
ret = snprintf(buf, PAGE_SIZE, "%s: %s in %d out %d\n",
w->name, w->power ? "On" : "Off", in, out);

if (w->active && w->sname)
ret += snprintf(buf, PAGE_SIZE - ret, " stream %s active\n",
w->sname);
if (w->sname)
ret += snprintf(buf + ret, PAGE_SIZE - ret, " stream %s %s\n",
w->sname,
w->active ? "active" : "inactive");

list_for_each_entry(p, &w->sources, list_sink) {
if (p->connect)
Expand Down

0 comments on commit 3eef08b

Please sign in to comment.