From: Mark Brown Date: Mon, 5 Sep 2011 17:51:05 +0000 (-0700) Subject: ASoC: Display the error code when we fail to add a DAPM control X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53daf20893b18000768aaa617a60b987fa39f875;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: Display the error code when we fail to add a DAPM control Useful for diagnostics. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 4859ad77eac7..4a440b52dd7a 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -584,8 +584,8 @@ static int dapm_new_mux(struct snd_soc_dapm_widget *w) name + prefix_len, prefix); ret = snd_ctl_add(card, kcontrol); if (ret < 0) { - dev_err(dapm->dev, - "asoc: failed to add kcontrol %s\n", w->name); + dev_err(dapm->dev, "failed to add kcontrol %s: %d\n", + w->name, ret); kfree(wlist); return ret; }