ASoC: rt5682: Fix regulator enable/disable sequence
authorZhang Shurong <zhang_shurong@foxmail.com>
Sat, 30 Sep 2023 09:55:50 +0000 (17:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 2 Oct 2023 13:06:15 +0000 (14:06 +0100)
commit892fbdb203945d887ad2a109a3700b091a8e3b97
tree7cff827287cd2845f8f7179055557a9f286e2607
parentb84b53149476b22cc3b8677b771fb4cf06d1d455
ASoC: rt5682: Fix regulator enable/disable sequence

This will attempt to disable the regulators if the initial enable fails
which is a bug.

Fix this bug by modifying the code to the correct sequence.

Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_4F37C9B5315B7960041E8E0ADDA869128F08@qq.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682-i2c.c