Skip to contentSkip to conversation

ASoC: Fix prefixing of DAPM controls

PATCH New Mark Brown 1 participant 1 message Oct 17, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Fix prefixing of DAPM controls

We don't want to clear the prefix while we're creating the DAPM controls for the device as the prefix is applied during control creation.

---
 sound/soc/soc-core.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/soc-core.c +3 -3
index 72c23c6..67724cdf 100644
@@ -1055,13 +1055,13 @@ static int soc_post_component_init(struct snd_soc_card *card,
 	}
 	rtd->card = card;
 
+	/* Make sure all DAPM widgets are instantiated */
+	snd_soc_dapm_new_widgets(&codec->dapm);
+
 	/* machine controls, routes and widgets are not prefixed */
 	temp = codec->name_prefix;
 	codec->name_prefix = NULL;
 
-	/* Make sure all DAPM widgets are instantiated */
-	snd_soc_dapm_new_widgets(&codec->dapm);
-
 	/* do machine specific initialization */
 	if (!dailess && dai_link->init)
 		ret = dai_link->init(rtd);
Signature · 1 line
1.7.6.3