]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66484bd32122d56e3c15dca48af02efebfa408a2
tree87364ed5ab3ef999f409bf6b7abe89f0c2f8a0e1
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
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