Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67f5ed6e authored by Dimitris Papastamos's avatar Dimitris Papastamos Committed by Mark Brown
Browse files

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: default avatarDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2031c064
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1242,7 +1242,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,


		if (p->connect)
		if (p->connect)
			ret += snprintf(buf + ret, PAGE_SIZE - ret,
			ret += snprintf(buf + ret, PAGE_SIZE - ret,
					" in  %s %s\n",
					" in  \"%s\" \"%s\"\n",
					p->name ? p->name : "static",
					p->name ? p->name : "static",
					p->source->name);
					p->source->name);
	}
	}
@@ -1252,7 +1252,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,


		if (p->connect)
		if (p->connect)
			ret += snprintf(buf + ret, PAGE_SIZE - ret,
			ret += snprintf(buf + ret, PAGE_SIZE - ret,
					" out %s %s\n",
					" out \"%s\" \"%s\"\n",
					p->name ? p->name : "static",
					p->name ? p->name : "static",
					p->sink->name);
					p->sink->name);
	}
	}