[alsa-devel] [PATCH] ASoC: pcm: Report error code when we fail to init platform

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Sep 26 15:26:20 CEST 2012


Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 sound/soc/soc-pcm.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index a67b239..40c4edb 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2097,7 +2097,8 @@ 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, "pcm constructor failed\n");
+			dev_err(platform->dev, "pcm constructor failed: %d\n",
+				ret);
 			return ret;
 		}
 	}
-- 
1.7.10.4



More information about the Alsa-devel mailing list