diff mbox

ASoC: rt5677: Print more information if setting DAI clock failed

Message ID 1413406532-7286-1-git-send-email-anatol.pomozov@gmail.com (mailing list archive)
State Accepted
Commit 8a4bd60af4cbdfbdaab6dec6ab86471733197a4f
Headers show

Commit Message

Anatol Pomozov Oct. 15, 2014, 8:55 p.m. UTC
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
---
 sound/soc/codecs/rt5677.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Mark Brown Oct. 16, 2014, 7:47 a.m. UTC | #1
On Wed, Oct 15, 2014 at 01:55:32PM -0700, Anatol Pomozov wrote:
> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 2f0d19f..a8d9eab 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -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);