diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index b322cf294d06..daca4b7de45c 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1253,7 +1253,7 @@ static int soc_post_component_init(struct snd_soc_card *card, | |||
1253 | struct snd_soc_dai_link *dai_link = NULL; | 1253 | struct snd_soc_dai_link *dai_link = NULL; |
1254 | struct snd_soc_aux_dev *aux_dev = NULL; | 1254 | struct snd_soc_aux_dev *aux_dev = NULL; |
1255 | struct snd_soc_pcm_runtime *rtd; | 1255 | struct snd_soc_pcm_runtime *rtd; |
1256 | const char *temp, *name; | 1256 | const char *name; |
1257 | int ret = 0; | 1257 | int ret = 0; |
1258 | 1258 | ||
1259 | if (!dailess) { | 1259 | if (!dailess) { |
@@ -1267,10 +1267,6 @@ static int soc_post_component_init(struct snd_soc_card *card, | |||
1267 | } | 1267 | } |
1268 | rtd->card = card; | 1268 | rtd->card = card; |
1269 | 1269 | ||
1270 | /* machine controls, routes and widgets are not prefixed */ | ||
1271 | temp = codec->name_prefix; | ||
1272 | codec->name_prefix = NULL; | ||
1273 | |||
1274 | /* do machine specific initialization */ | 1270 | /* do machine specific initialization */ |
1275 | if (!dailess && dai_link->init) | 1271 | if (!dailess && dai_link->init) |
1276 | ret = dai_link->init(rtd); | 1272 | ret = dai_link->init(rtd); |
@@ -1280,7 +1276,6 @@ static int soc_post_component_init(struct snd_soc_card *card, | |||
1280 | dev_err(card->dev, "ASoC: failed to init %s: %d\n", name, ret); | 1276 | dev_err(card->dev, "ASoC: failed to init %s: %d\n", name, ret); |
1281 | return ret; | 1277 | return ret; |
1282 | } | 1278 | } |
1283 | codec->name_prefix = temp; | ||
1284 | 1279 | ||
1285 | /* register the rtd device */ | 1280 | /* register the rtd device */ |
1286 | rtd->codec = codec; | 1281 | rtd->codec = codec; |