ASoC: Display the error code when we fail to add a DAPM control
PATCH 1/1 ASoC: Display the error code when we fail to add a DAPM control
Useful for diagnostics.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/soc-dapm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-dapm.c +2 -2
@@ -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; }
Signature · 1 line
1.7.5.4
Quoted 28 lines · Mark Brown
Useful for diagnostics.
Signed-off-by Mark Brown <[email protected]>--- sound/soc/soc-dapm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)sound/soc/soc-dapm.c +2
-2@@ -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; }--
1.7.5.4Acked-by Liam Girdwood <[email protected]>