Dimitris Papavasiliou 51b033c260
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>
2019-01-28 12:34:14 +00:00
..
2018-02-12 09:37:29 +00:00
2015-10-05 17:42:49 +01:00
2019-01-07 16:46:37 +00:00
2018-02-27 10:41:34 +00:00
2018-10-19 17:06:07 +01:00
2015-07-07 13:35:13 +01:00
2018-09-25 10:18:38 -07:00
2019-01-07 16:51:32 +00:00
2019-01-04 15:09:48 +00:00
2018-10-25 09:00:15 -07:00
2018-12-18 14:59:56 +01:00
2019-01-28 12:32:52 +00:00
2016-08-08 11:55:20 +01:00
2018-02-20 12:05:58 +00:00
2018-12-07 12:20:42 +00:00
2018-04-26 12:44:15 +01:00
2018-05-18 17:46:03 +01:00
2017-07-18 14:46:20 +01:00
2019-01-07 16:52:00 +00:00
2019-01-07 16:54:34 +00:00
2015-12-19 12:02:18 +00:00
2019-01-07 16:52:14 +00:00
2018-02-12 11:48:26 +00:00
2018-10-25 09:00:15 -07:00
2014-07-02 20:49:25 +01:00
2018-05-18 11:20:11 +01:00
2018-06-27 12:26:41 +01:00
2018-06-27 12:26:41 +01:00
2019-01-18 19:14:36 +00:00
2016-06-26 12:28:13 +01:00
2019-01-07 16:53:10 +00:00
2018-06-01 12:05:30 +01:00
2018-08-28 20:11:37 +01:00
2015-04-08 19:25:40 +01:00
2019-01-03 16:34:06 +00:00
2018-09-18 10:28:29 -07:00