Commit 53daf208 authored by Mark Brown's avatar Mark Brown

ASoC: Display the error code when we fail to add a DAPM control

Useful for diagnostics.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent 0016226d
...@@ -584,8 +584,8 @@ static int dapm_new_mux(struct snd_soc_dapm_widget *w) ...@@ -584,8 +584,8 @@ static int dapm_new_mux(struct snd_soc_dapm_widget *w)
name + prefix_len, prefix); name + prefix_len, prefix);
ret = snd_ctl_add(card, kcontrol); ret = snd_ctl_add(card, kcontrol);
if (ret < 0) { if (ret < 0) {
dev_err(dapm->dev, dev_err(dapm->dev, "failed to add kcontrol %s: %d\n",
"asoc: failed to add kcontrol %s\n", w->name); w->name, ret);
kfree(wlist); kfree(wlist);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment