aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-17 19:11:49 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-18 06:16:31 -0400
commit4b1cfcb4f36dca33b4552d9612537e6c0ca73639 (patch)
tree9c453ef2b49b1a26182f403ac7429bd87a568a19 /sound
parent680fa1f807bc65ea147c6c3ea52751cab75bcd34 (diff)
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. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index d6af52bd97df..a5d3685a5d38 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1055,13 +1055,13 @@ static int soc_post_component_init(struct snd_soc_card *card,
1055 } 1055 }
1056 rtd->card = card; 1056 rtd->card = card;
1057 1057
1058 /* Make sure all DAPM widgets are instantiated */
1059 snd_soc_dapm_new_widgets(&codec->dapm);
1060
1058 /* machine controls, routes and widgets are not prefixed */ 1061 /* machine controls, routes and widgets are not prefixed */
1059 temp = codec->name_prefix; 1062 temp = codec->name_prefix;
1060 codec->name_prefix = NULL; 1063 codec->name_prefix = NULL;
1061 1064
1062 /* Make sure all DAPM widgets are instantiated */
1063 snd_soc_dapm_new_widgets(&codec->dapm);
1064
1065 /* do machine specific initialization */ 1065 /* do machine specific initialization */
1066 if (!dailess && dai_link->init) 1066 if (!dailess && dai_link->init)
1067 ret = dai_link->init(rtd); 1067 ret = dai_link->init(rtd);