Commit b1bc7b3c9c46d9966f22f05c7cdd9b3e67b13d55
1 parent
f110bfc7ac
Exists in
master
and in
20 other branches
ASoC: pcm: Report error code when we fail to init platform
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
sound/soc/soc-pcm.c
... | ... | @@ -2100,7 +2100,9 @@ |
2100 | 2100 | if (platform->driver->pcm_new) { |
2101 | 2101 | ret = platform->driver->pcm_new(rtd); |
2102 | 2102 | if (ret < 0) { |
2103 | - dev_err(platform->dev, "ASoC: pcm constructor failed\n"); | |
2103 | + dev_err(platform->dev, | |
2104 | + "ASoC: pcm constructor failed: %d\n", | |
2105 | + ret); | |
2104 | 2106 | return ret; |
2105 | 2107 | } |
2106 | 2108 | } |