aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/sgtl5000.h
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.com>2020-04-14 20:11:40 +0200
committerMark Brown <broonie@kernel.org>2020-04-15 13:00:27 +0100
commitaa7812737f2877e192d57626cbe8825cc7cf6de9 (patch)
treee0d45d390d92bbda42c01be603518c422fd989bf /sound/soc/codecs/sgtl5000.h
parentASoC: rockchip-i2s: add power-domains property (diff)
downloadwireguard-linux-aa7812737f2877e192d57626cbe8825cc7cf6de9.tar.xz
wireguard-linux-aa7812737f2877e192d57626cbe8825cc7cf6de9.zip
ASoC: sgtl5000: Fix VAG power-on handling
As mentioned slightly out of patch context in the code, there is no reset routine for the chip. On boards where the chip is supplied by a fixed regulator, it might not even be resetted during (e.g. watchdog) reboot and can be in any state. If the device is probed with VAG enabled, the driver's probe routine will generate a loud pop sound when ANA_POWER is being programmed. Avoid this by properly disabling just the VAG bit and waiting the required power down time. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Reviewed-by: Fabio Estevam <festivem@gmail.com> Link: https://lore.kernel.org/r/20200414181140.145825-1-sebastian.reichel@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/sgtl5000.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.h b/sound/soc/codecs/sgtl5000.h
index a4bf4bca95bf..56ec5863f250 100644
--- a/sound/soc/codecs/sgtl5000.h
+++ b/sound/soc/codecs/sgtl5000.h
@@ -233,6 +233,7 @@
/*
* SGTL5000_CHIP_ANA_CTRL
*/
+#define SGTL5000_CHIP_ANA_CTRL_DEFAULT 0x0133
#define SGTL5000_LINE_OUT_MUTE 0x0100
#define SGTL5000_HP_SEL_MASK 0x0040
#define SGTL5000_HP_SEL_SHIFT 6