All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: rt5514: Fix up calculation for bclk_ms
@ 2016-02-08 14:04 Axel Lin
  2016-02-08 15:15 ` Axel Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2016-02-08 14:04 UTC (permalink / raw)
  To: Mark Brown; +Cc: Oder Chiou, Bard Liao, alsa-devel, Liam Girdwood

The equation to calculate bclk_ms is wrong, fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/rt5514.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index 879bf60..5bfe720 100644
--- a/sound/soc/codecs/rt5514.c
+++ b/sound/soc/codecs/rt5514.c
@@ -574,7 +574,7 @@ static int rt5514_hw_params(struct snd_pcm_substream *substream,
 		return -EINVAL;
 	}
 
-	bclk_ms = frame_size > 32;
+	bclk_ms = frame_size >> 32;
 	rt5514->bclk = rt5514->lrck * (32 << bclk_ms);
 
 	dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: rt5514: Fix up calculation for bclk_ms
  2016-02-08 14:04 [PATCH] ASoC: rt5514: Fix up calculation for bclk_ms Axel Lin
@ 2016-02-08 15:15 ` Axel Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Axel Lin @ 2016-02-08 15:15 UTC (permalink / raw)
  To: Mark Brown; +Cc: Oder Chiou, Bard Liao, alsa-devel, Liam Girdwood

於 一,2016-02-08 於 22:04 +0800,Axel Lin 提到:
> The equation to calculate bclk_ms is wrong, fix it.

Oops, I mis-understand the code.
Please ignore this patch, sorry.

Axel


_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-08 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-08 14:04 [PATCH] ASoC: rt5514: Fix up calculation for bclk_ms Axel Lin
2016-02-08 15:15 ` Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.