aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-06 16:59:32 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-07 18:51:22 +0100
commit6553e192d48af88184029066c30c9464516ea0b7 (patch)
tree0bdd4db46f91b51f029dfb0f6b62154c524f9eb0 /sound/soc/soc-dapm.c
parent09318c47b6121c8d18cee50ca7e270a8b7dfd274 (diff)
downloadkernel_samsung_aries-6553e192d48af88184029066c30c9464516ea0b7.zip
kernel_samsung_aries-6553e192d48af88184029066c30c9464516ea0b7.tar.gz
kernel_samsung_aries-6553e192d48af88184029066c30c9464516ea0b7.tar.bz2
ASoC: Display return code when failing to add a DAPM kcontrol
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 735903a..46485de 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -357,8 +357,9 @@ static int dapm_new_mixer(struct snd_soc_codec *codec,
path->long_name);
ret = snd_ctl_add(codec->card, path->kcontrol);
if (ret < 0) {
- printk(KERN_ERR "asoc: failed to add dapm kcontrol %s\n",
- path->long_name);
+ printk(KERN_ERR "asoc: failed to add dapm kcontrol %s: %d\n",
+ path->long_name,
+ ret);
kfree(path->long_name);
path->long_name = NULL;
return ret;