{
struct snd_soc_aux_dev *aux_dev = &card->aux_dev[num];
struct snd_soc_pcm_runtime *rtd = &card->rtd_aux[num];
- const char *temp;
int ret;
rtd->card = card;
- temp = codec->name_prefix;
- codec->name_prefix = NULL;
-
/* do machine specific initialization */
if (aux_dev->init) {
ret = aux_dev->init(&codec->dapm);
return ret;
}
- codec->name_prefix = temp;
-
rtd->codec = codec;
return 0;
{
struct snd_soc_dai_link *dai_link = &card->dai_link[num];
struct snd_soc_pcm_runtime *rtd = &card->rtd[num];
- const char *temp;
int ret;
rtd->card = card;
- /* machine controls, routes and widgets are not prefixed */
- temp = codec->name_prefix;
- codec->name_prefix = NULL;
-
/* do machine specific initialization */
if (dai_link->init) {
ret = dai_link->init(rtd);
return ret;
}
- codec->name_prefix = temp;
-
rtd->codec = codec;
return 0;