Skip to content

Commit

Permalink
ASoC: rt5677: Print more information if setting DAI clock failed
Browse files Browse the repository at this point in the history
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Anatol Pomozov authored and Mark Brown committed Oct 20, 2014
1 parent af48f1d commit 8a4bd60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/codecs/rt5677.c
Original file line number Diff line number Diff line change
Expand Up @@ -3104,7 +3104,8 @@ static int rt5677_hw_params(struct snd_pcm_substream *substream,
rt5677->lrck[dai->id] = params_rate(params);
pre_div = rl6231_get_clk_info(rt5677->sysclk, rt5677->lrck[dai->id]);
if (pre_div < 0) {
dev_err(codec->dev, "Unsupported clock setting\n");
dev_err(codec->dev, "Unsupported clock setting: sysclk=%dHz lrck=%dHz\n",
rt5677->sysclk, rt5677->lrck[dai->id]);
return -EINVAL;
}
frame_size = snd_soc_params_to_frame_size(params);
Expand Down

0 comments on commit 8a4bd60

Please sign in to comment.