From: Mark Brown Date: Mon, 14 Sep 2009 15:49:00 +0000 (+0100) Subject: ASoC: Fix display of stream name in DAPM debugfs X-Git-Tag: v2.6.32-rc1~166^2~10 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3eef08ba522775360cc59fe0a6b1bca6ecc8da4e;p=~emulex%2Finfiniband.git ASoC: Fix display of stream name in DAPM debugfs Also display streams all the time while we're here. Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 0d8b08ef873..f79711b9fa5 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -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)