mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
ASoC: Fix display of stream name in DAPM debugfs
Also display streams all the time while we're here. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
33d7f77850
commit
3eef08ba52
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user