提交 b1bc7b3c 编写于 作者: M Mark Brown

ASoC: pcm: Report error code when we fail to init platform

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 f110bfc7
...@@ -2100,7 +2100,9 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) ...@@ -2100,7 +2100,9 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num)
if (platform->driver->pcm_new) { if (platform->driver->pcm_new) {
ret = platform->driver->pcm_new(rtd); ret = platform->driver->pcm_new(rtd);
if (ret < 0) { 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; return ret;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册