diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2013-09-13 18:57:35 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-17 01:40:55 +0200 |
commit | 9e9cb9b99615180b94d743f1d6ca0f82539c8754 (patch) | |
tree | f52faf106b6592d20e24327907bfc1edd08ae664 /sound/soc/codecs/rt5640.c | |
parent | ASoC: rt5640: Staticize hp_amp_power_on (diff) | |
download | linux-9e9cb9b99615180b94d743f1d6ca0f82539c8754.tar.xz linux-9e9cb9b99615180b94d743f1d6ca0f82539c8754.zip |
ASoC: rt5640: Provide more useful hw_params error reasons.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r-- | sound/soc/codecs/rt5640.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 2f6bb161e64c..de40bd9f6ac2 100644 --- 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); |