Skip to content

Commit

Permalink
ASoC: Display the error code when we fail to add a DAPM control
Browse files Browse the repository at this point in the history
Useful for diagnostics.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed Sep 19, 2011
1 parent 0016226 commit 53daf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 53daf20

Please sign in to comment.