aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-04 14:07:09 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-04 14:15:46 -0400
commit5001765f992423fdfb82f42f548d3a51b9590186 (patch)
tree9c375d3bd457cc3b8fc2d461aae8d7f4c02187c5
parent5b2eec3f98e08a8442ada41c4a63658b95a355f2 (diff)
ASoC: arizona: Be more forgiving in BCLK selection
Allow any BCLK which can be divided down to generate LRCLK, not just the lowest possible BCLK to clock out the samples. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/arizona.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 8e5246ca5550..8e066ebf1227 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -518,7 +518,8 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
518 rates = &arizona_48k_bclk_rates[0]; 518 rates = &arizona_48k_bclk_rates[0];
519 519
520 for (i = 0; i < ARRAY_SIZE(arizona_44k1_bclk_rates); i++) { 520 for (i = 0; i < ARRAY_SIZE(arizona_44k1_bclk_rates); i++) {
521 if (rates[i] == snd_soc_params_to_bclk(params)) { 521 if (rates[i] >= snd_soc_params_to_bclk(params) &&
522 rates[i] % params_rate(params) == 0) {
522 bclk = i; 523 bclk = i;
523 break; 524 break;
524 } 525 }