]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5677: keep analog power register at SND_SOC_BIAS_OFF
authorBen Zhang <benzh@chromium.org>
Fri, 6 Sep 2019 19:46:24 +0000 (12:46 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2019 12:22:07 +0000 (13:22 +0100)
commit66111264e2aeee3c6b3c063087bea6e2f6a669d4
tree3eed100ebb2ab8b38a5733e5536dd38d6f979145
parentdc536ed04fa8c6f929d18e79c03ca16ae91d4c1e
ASoC: rt5677: keep analog power register at SND_SOC_BIAS_OFF

Instead of clearing RT5677_PWR_ANLG2 (MX-64h) to 0 at SND_SOC_BIAS_OFF,
we only clear the RT5677_PWR_CORE bit which is set at SND_SOC_BIAS_PREPARE.
MICBIAS control bits are left unchanged.

This fixed the bug where if MICBIAS1 widget is forced on, MICBIAS
control bits will be cleared at suspend and never turned back on again,
since DAPM thinks the widget is always on.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20190906194636.217881-3-cujomalainey@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c