]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: tlv320aic3x: Fix codec pll configure bug
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Tue, 26 Jun 2012 13:55:11 +0000 (19:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:39 +0000 (08:47 -0700)
commitc45f606a03193a95a55ef1802646e5a67fff642b
tree8a06a1e0fbc1023881f0541f8b38b648d9153e77
parent5fe4d12cfbf9ca994640a487439a2ef2f633336c
ASoC: tlv320aic3x: Fix codec pll configure bug

commit c9fe573a6584034670c1a55ee8162d623519cbbf upstream.

In sound/soc/codecs/tlv320aic3x.c

        data = snd_soc_read(codec, AIC3X_PLL_PROGA_REG);
        snd_soc_write(codec, AIC3X_PLL_PROGA_REG,
                      data | (pll_p << PLLP_SHIFT));

In the above code, pll-p value is OR'ed with previous value without
clearing it. Bug is not seen if pll-p value doesn't change across
Sampling frequency.

However on some platforms (like AM335x EVM-SK), pll-p may have different
values across different sampling frequencies. In such case, above code
configures the pll with a wrong value.
Because of this bug, when a audio stream is played with pll value
different from previous stream, audio is heard as differently(like its
stretched).

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tlv320aic3x.h