|
@@ -3341,16 +3341,10 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
|
|
|
}
|
|
|
|
|
|
prefix = soc_dapm_prefix(dapm);
|
|
|
- if (prefix) {
|
|
|
+ if (prefix)
|
|
|
w->name = kasprintf(GFP_KERNEL, "%s %s", prefix, widget->name);
|
|
|
- if (widget->sname)
|
|
|
- w->sname = kasprintf(GFP_KERNEL, "%s %s", prefix,
|
|
|
- widget->sname);
|
|
|
- } else {
|
|
|
+ else
|
|
|
w->name = kasprintf(GFP_KERNEL, "%s", widget->name);
|
|
|
- if (widget->sname)
|
|
|
- w->sname = kasprintf(GFP_KERNEL, "%s", widget->sname);
|
|
|
- }
|
|
|
if (w->name == NULL) {
|
|
|
kfree(w);
|
|
|
return NULL;
|
|
@@ -3799,7 +3793,7 @@ int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card)
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- if (!w->sname || !strstr(w->sname, dai_w->name))
|
|
|
+ if (!w->sname || !strstr(w->sname, dai_w->sname))
|
|
|
continue;
|
|
|
|
|
|
if (dai_w->id == snd_soc_dapm_dai_in) {
|