Skip to contentSkip to conversation

ASoC: arizona: Use actual rather than desired BCLK when calculating LRCLK

PATCH New Mark Brown 1 participant 1 message Jan 17, 2013

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: arizona: Use actual rather than desired BCLK when calculating LRCLK

Otherwise we'll get the wrong LRCLK if we need to pick a higher BCLK than is required.

---
 sound/soc/codecs/arizona.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/arizona.c +1 -1
index c3592db..ef62c43 100644
@@ -685,7 +685,7 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
 	}
 	sr_val = i;
 
-	lrclk = snd_soc_params_to_bclk(params) / params_rate(params);
+	lrclk = rates[bclk] / params_rate(params);
 
 	arizona_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
 			rates[bclk], rates[bclk] / lrclk);
Signature · 1 line
1.7.10.4