[alsa-devel] [PATCH] ASoC: pcm: Report error code when we fail to init platform
26 Sep
2012
26 Sep
'12
3:26 p.m.
Signed-off-by: Mark Brown broonie@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
4470
Age (days ago)
4470
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Brown