From 93f005b878e22b84834900c74673781ac1926d4f Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Tue, 4 Feb 2020 12:14:45 +0530 Subject: [PATCH] ASoC: wcd938x: Enable surge protection at bootup Enable surge protection at bootup for traverso. Change-Id: I443c576e6fdfc640b8e67c2d3f9622e8c3366d45 Signed-off-by: Vatsal Bucha --- asoc/codecs/wcd938x/wcd938x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asoc/codecs/wcd938x/wcd938x.c b/asoc/codecs/wcd938x/wcd938x.c index a515c3a15a56..9682207e97c6 100644 --- a/asoc/codecs/wcd938x/wcd938x.c +++ b/asoc/codecs/wcd938x/wcd938x.c @@ -283,6 +283,8 @@ static int wcd938x_init_reg(struct snd_soc_component *component) snd_soc_component_update_bits(component, WCD938X_SLEEP_CTL, 0x0E, ((snd_soc_component_read32(component, WCD938X_DIGITAL_EFUSE_REG_30) & 0x07) << 1)); + snd_soc_component_update_bits(component, + WCD938X_HPH_SURGE_HPHLR_SURGE_EN, 0xC0, 0xC0); return 0; }