Skip to contentSkip to conversation

ASoC: dapm-graph: Handle sourd card with space in name

PATCH Superseded Yiwei Lin 3 participants 4 messages Nov 6, 2025 – Nov 7, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yiwei Lin

author
#0 lore raw

PATCH 1/1 ASoC: dapm-graph: Handle sourd card with space in name

When the name of the sound card has a space between, the script will fail to output the dot file. Consider the case to generate it correctly.

---
 tools/sound/dapm-graph | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/sound/dapm-graph +2 -2
index b6196ee50..22993317d 100755
@@ -174,7 +174,7 @@ process_dapm_component()
 
 	# Extract directory name into component name:
 	#   "./cs42l51.0-004a/dapm" -> "cs42l51.0-004a"
-	c_name="$(basename $(dirname "${c_dir}"))"
+	c_name="$(basename "$(dirname "${c_dir}")")"
     fi
 
     dbg_echo " * Component: ${c_name}"
@@ -201,7 +201,7 @@ process_dapm_component()
     >"${links_file}"
 
     # Iterate over widgets in the component dir
-    for w_file in ${c_dir}/*; do
+    for w_file in "${c_dir}"/*; do
 	process_dapm_widget "${tmp_dir}" "${c_name}" "${w_file}"
     done
 
Signature · 1 line
2.34.1
#2 lore raw
In reply to Yiwei Lin
Quoted 3 lines

When the name of the sound card has a space between, the script will fail to output the dot file. Consider the case to generate it correctly.

* You may occasionally put more than 56 characters into text lines of such a change description.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc4#n658

* I hope that a typo will be avoided for the summary phrase finally.

Regards,
Markus

author
#3 lore raw
Quoted 8 lines · Markus Elfring
Quoted 3 lines

When the name of the sound card has a space between, the script will fail to output the dot file. Consider the case to generate it correctly.

* You may occasionally put more than 56 characters into text lines of such a change description.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc4#n658

* I hope that a typo will be avoided for the summary phrase finally.

Sorry for making such a mistake... I'll send another patch to fix regarding these error.

Quoted 3 lines

Regards,
Markus