ASoC: Automatically calculate clock ratio for WM8580
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 13 Aug 2010 18:05:04 +0000 (19:05 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 15 Aug 2010 13:52:12 +0000 (14:52 +0100)
commitc5607d8e7a4c30d2ff62b8eefe3f977d5c71d2fe
tree4bcb668243cacfabcb9d58076911093391dbd94b
parent8ef339df25ed424e7430fd411a52840c6af368c6
ASoC: Automatically calculate clock ratio for WM8580

Implement set_sysclk() and then rather than assuming 256fs use the
supplied value to calculate and configure the clock ratio for the
currently used sample rate. As a side effect we also end up
implementing clock selection for the ADC path.

In order to avoid confusion remove the existing set_clkdiv() based
configuration of the clock source for the DAC and update the SMDK64xx
driver (which is the only in-tree user of the CODEC).

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8580.c
sound/soc/codecs/wm8580.h
sound/soc/s3c24xx/smdk64xx_wm8580.c