mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
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>
This commit is contained in:
parent
0016226d03
commit
53daf20893
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue