]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: nau8825: FLL parameters finetune
authorJohn Hsu <KCHSU0@nuvoton.com>
Fri, 11 Nov 2016 04:16:29 +0000 (12:16 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 11 Nov 2016 15:35:40 +0000 (15:35 +0000)
commitaee02c75a5fb3b3583780bb7b298cb0d0d6647e2
tree63637d9709a9a5d9f8ed4d415765fa093d781fd9
parentd6d197458b5fc801b2274f5287a4df6ce74b230f
ASoC: nau8825: FLL parameters finetune

The driver fine-tune some parameters to improve FLL performance.
Those items have description as follow.
(1)ICTRL_LATCH: FLL DSP speed capability control
When FLL running at high frequency with long decimal number, DSP needs
to operate at high speed. FLL DSP can optimize between performance and
power consumption by ICTRL_LATCH.(111 has highest power consumption.)
The default setting can be used to reduce power.
(2)CUTOFF500: loop filter cutoff frequency at 500Khz
It will give the best FLL performance but highest power consumption
to enable the cutoff frequency. FLL Loop Filter enable to reduce FLL
output noise, especially,(DCO frequency)/(FLL input reference frequency)
is not a integer.
(3)GAIN_ERR: FLL gain error correction threshold setting
The threshold is comparison between DCO and target frequency.
The value 1111 has the most sensitive threshold, that is, 1111 can have
the most accurate DCO to target frequency. However, the gain error setting
conditionally and inversely depends on FLL input reference clock rate.
Higher FLL reference input frequency can only set lower gain error, such
as 0000 for input reference from MCLK=12.288Mhz. On the other side, if FLL
reference input is from Frame Sync, 48KHz, higher error gain can apply
such as 1111.

Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8825.c
sound/soc/codecs/nau8825.h