]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm512x: Fix clocking calculations when not using the PLL
authorDimitris Papavasiliou <dpapavas@gmail.com>
Sat, 26 Jan 2019 13:23:45 +0000 (15:23 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 12:34:14 +0000 (12:34 +0000)
commit4c34ade7a32b856469c8656029dca136122b736f
tree6a2a8b724c77dc449e7dc7f40c3e2c0d7fc7fa37
parent4a7fd73ca663765351af67f776a3adac369f735c
ASoC: pcm512x: Fix clocking calculations when not using the PLL

The rationale behind the current calculation is somewhat obscure [1]
and can yield slightly wrong dividers in certain cases, which the
machine drivers for some boards (like the HiFiBerry DAC+ Pro)
seemingly try to circumvent, by updating the rate fraction so as to
suit this calculation.

The updated calculation should correctly yield the smallest bit clock
rate that would fit the frame.

[1] http://mailman.alsa-project.org/pipermail/alsa-devel/2019-January/144219.html

Signed-off-by: Dimitris Papavasiliou <dpapavas@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm512x.c