diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-20 19:03:28 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-21 10:18:02 +0100 |
commit | 082100dc9210449dac8ad8c7d20180cc1a0c319d (patch) | |
tree | 8fab04494a9a932e9e5bf3cb733f7ceb33a13585 | |
parent | 17cc26cd8c7ef84a614a2218753ced2773fd787b (diff) | |
download | linux-3.10-082100dc9210449dac8ad8c7d20180cc1a0c319d.tar.gz linux-3.10-082100dc9210449dac8ad8c7d20180cc1a0c319d.tar.bz2 linux-3.10-082100dc9210449dac8ad8c7d20180cc1a0c319d.zip |
ASoC: Report error code when failing to add controls
Helps with diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 6001b7f0a13..ab01e39a0a8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1982,8 +1982,8 @@ int snd_soc_add_controls(struct snd_soc_codec *codec, const struct snd_kcontrol_new *control = &controls[i]; err = snd_ctl_add(card, snd_soc_cnew(control, codec, NULL)); if (err < 0) { - dev_err(codec->dev, "%s: Failed to add %s\n", - codec->name, control->name); + dev_err(codec->dev, "%s: Failed to add %s: %d\n", + codec->name, control->name, err); return err; } } |