ASoC: arizona: fref must be limited in pseudo-fractional mode
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 10 Feb 2016 11:56:13 +0000 (11:56 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Feb 2016 19:21:41 +0000 (19:21 +0000)
commit01582a841493f28caf1688b2af4dafbcbee8135e
tree87364ed5ab3ef999f409bf6b7abe89f0c2f8a0e1
parent92e963f50fc74041b5e9e744c330dca48e04f08d
ASoC: arizona: fref must be limited in pseudo-fractional mode

When the FLL is in pseudo-fractional mode there is an additional
limit on fref based on the fratio, to prevent aliasing around the
Nyquist frequency. If fref exceeds this limit the refclk divider
must be increased and the calculation tried again until a suitable
combination of fref and fratio is found or we have to fall back to
integer mode.

This patch also adds some debug log prints around this code.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c