From: Mark Brown Date: Wed, 26 Sep 2012 13:25:17 +0000 (+0100) Subject: ASoC: pcm: Report error code when we fail to init platform X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1bc7b3c9c46d9966f22f05c7cdd9b3e67b13d55;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: pcm: Report error code when we fail to init platform Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 314102ad862d..5c3ca2a34661 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -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; } }