Skip to contentSkip to conversation

ASoC: rt5514: Fix up calculation for bclk_ms

PATCH In review Axel Lin 1 participant 2 messages Feb 8, 2016

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: rt5514: Fix up calculation for bclk_ms

The equation to calculate bclk_ms is wrong, fix it.

---
 sound/soc/codecs/rt5514.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5514.c +1 -1
index 879bf60..5bfe720 100644
@@ -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",
Signature · 1 line
2.1.4