aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-02-24 12:09:32 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-25 06:44:36 -0500
commit67f5ed6e716bf9b574c8cbe04765171de5d4d0fe (patch)
tree7a1c3a025d05c011d3ef93bcff569c8eee5b6189 /sound/soc/soc-dapm.c
parent2031c0645c8e2f3935254bf201b4f6f00dd0790d (diff)
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 <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 200ae7cd2f00..b8e6ab739def 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1242,7 +1242,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
1242 1242
1243 if (p->connect) 1243 if (p->connect)
1244 ret += snprintf(buf + ret, PAGE_SIZE - ret, 1244 ret += snprintf(buf + ret, PAGE_SIZE - ret,
1245 " in %s %s\n", 1245 " in \"%s\" \"%s\"\n",
1246 p->name ? p->name : "static", 1246 p->name ? p->name : "static",
1247 p->source->name); 1247 p->source->name);
1248 } 1248 }
@@ -1252,7 +1252,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
1252 1252
1253 if (p->connect) 1253 if (p->connect)
1254 ret += snprintf(buf + ret, PAGE_SIZE - ret, 1254 ret += snprintf(buf + ret, PAGE_SIZE - ret,
1255 " out %s %s\n", 1255 " out \"%s\" \"%s\"\n",
1256 p->name ? p->name : "static", 1256 p->name ? p->name : "static",
1257 p->sink->name); 1257 p->sink->name);
1258 } 1258 }