[alsa-devel] [PATCH] ASoC: rt5514: Fix up calculation for bclk_ms
8 Feb
2016
8 Feb
'16
4:04 p.m.
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
3201
Age (days ago)
3201
Last active (days ago)
1 comments
1 participants
participants (1)
-
Axel Lin