Skip to content

Commit

Permalink
ASoC: arizona: Use actual rather than desired BCLK when calculating L…
Browse files Browse the repository at this point in the history
…RCLK

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

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Mark Brown committed Jan 17, 2013
1 parent 7d5cb4f commit b59e0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b59e0f8

Please sign in to comment.