ASoC: improve MCLKDIV calculation in wm8978, when OPCLK is not used
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 29 Jan 2010 13:51:26 +0000 (14:51 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Feb 2010 14:35:08 +0000 (14:35 +0000)
commitb0580913797034a1001e867b8b492c75226bf77e
treef20bacd8b37a19d270528fa6a90578a8b006e2e2
parentb2c3e923110f6ca60ccb30cf4a6bda5211454c4f
ASoC: improve MCLKDIV calculation in wm8978, when OPCLK is not used

In case, if OPCLK is not used, and PLL is used for driving the codec, the
choice of PLL output frequency could result in a needlessly imprecise
system clock frequency. Use an iterative process to select a precise
configuration.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8978.c