ASoC: rl6231: add pll preset table
authorBard Liao <bardliao@realtek.com>
Wed, 22 Jul 2015 05:09:15 +0000 (13:09 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2015 16:39:41 +0000 (17:39 +0100)
commit213213d9d68e5fcb81a513a7d07ed6ee01294dea
tree2a16ff15e3008062a0eae6951b3233b46ea8b9bb
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
ASoC: rl6231: add pll preset table

Currently, rl6231_pll_calc provide a working PLL parameters for
given freq_in and freq_out. However, in some cases it is not the
perfect parameter. For example if freq_in = 19200000 and freq_out
 = 24576000, the calculated parameter will gengrate 24.5647 MHz
which is not exactly the same as what we need. But the PLL can
output 24.576 MHz as exactly what we expect if we set the best
PLL parameter.
To improve it, we put the best match parameters in a preset table.
We can search the preset table first, if there is no preset parameter
for the given freq_in and freq_out, we can still calculate a working
PLL parameter.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rl6231.c
This page took 0.025008 seconds and 5 git commands to generate.