ASoC: tas2552: Correct the PLL configuration
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 8 Jun 2015 12:19:48 +0000 (15:19 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jun 2015 17:53:18 +0000 (18:53 +0100)
commit1014f7eff9a1d4f3f796c83e933adf2462c79005
tree59ca30454a1d0dfe14c675e40ad15e8dbd5d0f91
parenta571cb17acb6156e6ea8d5fe2ff824e713416bae
ASoC: tas2552: Correct the PLL configuration

Do not restrict the sampling rate to 44.1/48KHz. The pll_clk clock should
be (sampling rate * 512) in all cases.
Correct the J.D calculation (the D part was incorrectly calculated).
Restore PLL enable status after we are done with the configuration.
Implement hardware constraint handling towards the pll_clkin:
if D != 0 (in J.D) then 1.1MHz <= pll_clkin <= 9.2MHz needs to be checked.
If the PLL setup does not met with this constraint, fall back to BCLK as
reference clock, if BCLK fails, use the internal 1.8MHz clock.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2552.c
sound/soc/codecs/tas2552.h