ASoC: soc-dapm: Include quotes around contents in debugfs entries
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 24 Feb 2011 17:09:32 +0000 (17:09 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 25 Feb 2011 11:44:36 +0000 (11:44 +0000)
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>
sound/soc/soc-dapm.c

index 200ae7cd2f0058b7c7249299c1b353881e4f7b4e..b8e6ab739defe532f1ee1c3144add259afa8b968 100644 (file)
@@ -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);
        }