ASoC: pcm: Report error code when we fail to init platform
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 26 Sep 2012 13:25:17 +0000 (14:25 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 27 Nov 2012 19:35:59 +0000 (19:35 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-pcm.c

index 314102ad862dad53c5a87c805260d9780a483df2..5c3ca2a3466170cd132464760dffd9b63155ebe9 100644 (file)
@@ -2100,7 +2100,9 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num)
        if (platform->driver->pcm_new) {
                ret = platform->driver->pcm_new(rtd);
                if (ret < 0) {
-                       dev_err(platform->dev, "ASoC: pcm constructor failed\n");
+                       dev_err(platform->dev,
+                               "ASoC: pcm constructor failed: %d\n",
+                               ret);
                        return ret;
                }
        }