]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: arizona: Fixed a bug in FLL fractional calculation
authorRyo Tsutsui <ryo.tsutsui@wolfsonmicro.com>
Sun, 3 Feb 2013 08:18:00 +0000 (17:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:37 +0000 (05:38 -0800)
commite32ae42530f86a574007fbf57fbc08c2a445e939
tree36c962d91bc3fb0b734cf15e28676b18a2010ee3
parente4822a5f9cccf33f8e371f5cd58ecae51b2c3e74
ASoC: arizona: Fixed a bug in FLL fractional calculation

commit 01f58153aefc158fd690b337d29ad140e963959d upstream.

Previously arizona_calc_fll() was checking if the target frequency is
exactly divisible by reference frequency, but should have been product
of the ratio and the reference frequency.

Also scale down the Lamba and Theta coefficients be under 16-bits in
order to match the registers.

Signed-off-by: Ryo Tsutsui <ryo.tsutsui@wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/arizona.c