]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5677: Reconfigure PLL1 after resume
authorBen Zhang <benzh@chromium.org>
Tue, 15 Dec 2015 21:51:25 +0000 (13:51 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 16 Dec 2015 19:20:59 +0000 (19:20 +0000)
commit358aeb1d3e58950a525ccf76c7a1dcde10b52c4b
tree3debf735ae039342cfad036c965904d5a0ffe5c4
parent5d15f63fec607acdbb8ff7f5ecad1cd8ecbb8a89
ASoC: rt5677: Reconfigure PLL1 after resume

Sometimes PLL1 stops working if the codec loses power
during suspend (when pow-ldo2 or reset gpio is used).
MX-7Bh(RT5677_PLL1_CTRL2) is cleared and won't be restored
by regcache since it's volatile. MX-7Bh has one status bit
and M code for PLL1. rt5677_set_dai_pll doesn't reconfigure
PLL1 after resume because it thinks the PLL params are not
changed.

This patch clears the cached PLL params at resume so that
rt5677_set_dai_pll can reconfigure the PLL after resume.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c