ASoC: Display return code when failing to add a DAPM kcontrol
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Apr 2009 15:59:32 +0000 (16:59 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Apr 2009 17:51:22 +0000 (18:51 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c

index 735903a7467500f4d93d750e527a693d67eabaa2..46485de9e6f8dbf759311e96e402534ada04b6e1 100644 (file)
@@ -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;