diff options
author | Eric Millbrandt <emillbrandt@dekaresearch.com> | 2012-11-02 17:05:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 11:37:43 -0800 |
commit | b6d806539cdf76b1d0ad2411dff4cae227de4942 (patch) | |
tree | 7763d72f54e87208a96ed02b063c244b0dbeaa56 /sound | |
parent | c2628a3b472500b59def16491041e6b13bd5309e (diff) | |
download | linux-3.10-b6d806539cdf76b1d0ad2411dff4cae227de4942.tar.gz linux-3.10-b6d806539cdf76b1d0ad2411dff4cae227de4942.tar.bz2 linux-3.10-b6d806539cdf76b1d0ad2411dff4cae227de4942.zip |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8978.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c index 72d5fdcd3cc..6c37c7c2327 100644 --- a/sound/soc/codecs/wm8978.c +++ b/sound/soc/codecs/wm8978.c @@ -783,7 +783,7 @@ static int wm8978_hw_params(struct snd_pcm_substream *substream, wm8978->mclk_idx = -1; f_sel = wm8978->f_mclk; } else { - if (!wm8978->f_pllout) { + if (!wm8978->f_opclk) { /* We only enter here, if OPCLK is not used */ int ret = wm8978_configure_pll(codec); if (ret < 0) |