ASoC: wcd934x: Change the default value of moisture detection register
The moisture detection is enabled by default. Change the default value
of the register to disable moisture detection during codec out of rest.
The moisture detection can be enabled during MBHC initialization by
setting flag "moisture_en" to "true" in machine driver to update this
register.
Change-Id: Ib6d378b5b00572016f8ee1c0885073fd0673c625
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
diff --git a/sound/soc/codecs/wcd934x/wcd934x.c b/sound/soc/codecs/wcd934x/wcd934x.c
index 4b6fcb0b..c0a32f3 100644
--- a/sound/soc/codecs/wcd934x/wcd934x.c
+++ b/sound/soc/codecs/wcd934x/wcd934x.c
@@ -8516,6 +8516,7 @@
{WCD934X_HPH_L_TEST, 0x01, 0x01},
{WCD934X_HPH_R_TEST, 0x01, 0x01},
{WCD934X_CPE_FLL_CONFIG_CTL_2, 0xFF, 0x20},
+ {WCD934X_MBHC_NEW_CTL_2, 0x0C, 0x00},
};
static const struct tavil_reg_mask_val tavil_codec_reg_init_1_1_val[] = {