]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: wm8978: pll incorrectly configured when codec is master
authorEric Millbrandt <emillbrandt@dekaresearch.com>
Fri, 2 Nov 2012 21:05:44 +0000 (17:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:37:43 +0000 (11:37 -0800)
commitb6d806539cdf76b1d0ad2411dff4cae227de4942
tree7763d72f54e87208a96ed02b063c244b0dbeaa56
parentc2628a3b472500b59def16491041e6b13bd5309e
ASoC: wm8978: pll incorrectly configured when codec is master

commit 55c6f4cb6ef49afbb86222c6a3ff85329199c729 upstream.

When MCLK is supplied externally and BCLK and LRC are configured as outputs
(codec is master), the PLL values are only calculated correctly on the first
transmission.  On subsequent transmissions, at differenct sample rates, the
wrong PLL values are used.  Test for f_opclk instead of f_pllout to determine
if the PLL values are needed.

Signed-off-by: Eric Millbrandt <emillbrandt@dekaresearch.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm8978.c