]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: clean up wm8974 and wm8978 clock divider handling
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 29 Jan 2010 14:31:06 +0000 (15:31 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Jan 2010 14:32:52 +0000 (14:32 +0000)
commit1c65b337e82d2b605e8be39072b9f1aed9f6a7f2
treea49311b0231b3887122ec23771a7b32b54f37bd7
parent919434119128fbb3f70d1c32141e00be857ae595
ASoC: clean up wm8974 and wm8978 clock divider handling

wm8974 and wm8978 codec drivers control DAC and ADC oversampling rates in their
.set_clkdiv() methods, which is wrong, because these are simple boolean
switches and not clock dividers. Move these bits to sound controls. Also remove
manual configuration of the MCLK divider in wm8978, since it is configured
automatically.

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/wm8974.c
sound/soc/codecs/wm8974.h
sound/soc/codecs/wm8978.c
sound/soc/codecs/wm8978.h
sound/soc/sh/migor.c