projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d0513
)
ASoC: rt5640: Provide more useful hw_params error reasons.
author
Liam Girdwood
<liam.r.girdwood@linux.intel.com>
Fri, 13 Sep 2013 16:57:35 +0000
(17:57 +0100)
committer
Mark Brown
<broonie@linaro.org>
Mon, 16 Sep 2013 23:40:55 +0000
(
00:40
+0100)
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5640.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5640.c
b/sound/soc/codecs/rt5640.c
index 2f6bb161e64cd48a42cf1bb0e861792ebca2f06b..de40bd9f6ac20a2491cdb70cf8c2026fff71c3e7 100644
(file)
--- a/
sound/soc/codecs/rt5640.c
+++ b/
sound/soc/codecs/rt5640.c
@@
-1609,7
+1609,8
@@
static int rt5640_hw_params(struct snd_pcm_substream *substream,
rt5640->lrck[dai->id] = params_rate(params);
pre_div = get_clk_info(rt5640->sysclk, rt5640->lrck[dai->id]);
if (pre_div < 0) {
- dev_err(codec->dev, "Unsupported clock setting\n");
+ dev_err(codec->dev, "Unsupported clock setting %d for DAI %d\n",
+ rt5640->lrck[dai->id], dai->id);
return -EINVAL;
}
frame_size = snd_soc_params_to_frame_size(params);