diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-05 17:51:05 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-19 10:27:22 (GMT) |
commit | 53daf20893b18000768aaa617a60b987fa39f875 (patch) | |
tree | b457e58aebe821adb41d358ad133e85f9afe6eee /sound/soc/soc-dapm.c | |
parent | 0016226d03fa8d695fb7b933ea1810503d774820 (diff) | |
download | linux-fsl-qoriq-53daf20893b18000768aaa617a60b987fa39f875.tar.xz |
ASoC: Display the error code when we fail to add a DAPM control
Useful for diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 4859ad7..4a440b5 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; } |