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:34:34 +0000 (11:34 -0800)
commitdd5df62c48044800a9a1e0d783b024f3c6654548
treeef1dd00a75d0bcb180820072dd2f223c27b6bba6
parent174aad546c3a40d117360a5bfce9c0a15e212a77
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