]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Dec 2012 11:20:03 +0000 (11:20 +0000)
commit3e1fab33b18e2b10581e2e163ee74ec3d040a09a
tree82644500629cbc1aea899def0bdc5b742bf4c7b4
parent3686bdea72e26803d29be3e67cd11f18a97b246a
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: Ben Hutchings <ben@decadent.org.uk>
sound/soc/codecs/wm8978.c