mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 17:21:49 +00:00
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. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
7d5cb4f710
commit
b59e0f82aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user