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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Feb 2013 18:29:04 +0000 (18:29 +0000)
commit01f58153aefc158fd690b337d29ad140e963959d
treea640a4794725f6c8e090e200d9f12f3217294300
parentf63d944b71e8c4df9daaf44c7a9756549735140c
ASoC: arizona: Fixed a bug in FLL fractional calculation

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>
Cc: stable@vger.kernel.org
sound/soc/codecs/arizona.c