ASoC: soc-dapm: Include quotes around contents in debugfs entries
PATCH 1/1 ASoC: soc-dapm: Include quotes around contents in debugfs entries
Sometimes the name of the control switch of a dapm route contains spaces which makes it impossible to distinguish it from the source widget. Add quotes around the names of the widgets to makes these parsable.
Signed-off-by Dimitris Papastamos <[email protected]>
--- sound/soc/soc-dapm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-dapm.c +2 -2
@@ -1242,7 +1242,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,if (p->connect) ret +=snprintf (buf + ret,PAGE_SIZE - ret, -" in %s %s\n" , +" in \"%s\" \"%s\"\n" , p->name ? p->name :"static" , p->source->name); }
@@ -1252,7 +1252,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,if (p->connect) ret +=snprintf (buf + ret,PAGE_SIZE - ret, -" out %s %s\n" , +" out \"%s\" \"%s\"\n" , p->name ? p->name :"static" , p->sink->name); }
Signature · 1 line
1.7.4.1
Quoted 6 lines · Dimitris Papastamos
Sometimes the name of the control switch of a dapm route contains spaces which makes it impossible to distinguish it from the source widget. Add quotes around the names of the widgets to makes these parsable.
Signed-off-by Dimitris Papastamos <[email protected]>---
Acked-by Liam Girdwood <[email protected]>
Mark Brown
AppliedQuoted 5 lines · Dimitris Papastamos
Sometimes the name of the control switch of a dapm route contains spaces which makes it impossible to distinguish it from the source widget. Add quotes around the names of the widgets to makes these parsable.
Signed-off-by Dimitris Papastamos <[email protected]>
Applied, thanks.