From eefcf012a3c53a8f58e6749de5ffdbed4d0f4e51 Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Fri, 30 Oct 2020 09:45:20 -0700 Subject: [PATCH] ASoC: wsa883x: disable speaker brown out protection Disable brown out protection (bop) attenuation levels 1,2 and 3 which causes fast and coarse transitions in gain during voltage drop. This creates "pop" noise during the drop. Since battery current limiting (bcl) feature is enabled with CPS, bop is redundant and can be disabled. Change-Id: I51617333203ba14784e2338d91a96082c55e1331 Signed-off-by: Vignesh Kulothungan --- asoc/codecs/wsa883x/wsa883x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/codecs/wsa883x/wsa883x.c b/asoc/codecs/wsa883x/wsa883x.c index 6f81fbaf45a8..7852a1568266 100644 --- a/asoc/codecs/wsa883x/wsa883x.c +++ b/asoc/codecs/wsa883x/wsa883x.c @@ -104,8 +104,8 @@ static const struct wsa_reg_mask_val reg_init[] = { {WSA883X_CURRENT_LIMIT, 0x78, 0x40}, {WSA883X_DRE_CTL_0, 0x07, 0x02}, {WSA883X_VAGC_TIME, 0x0F, 0x0F}, - {WSA883X_VAGC_ATTN_LVL_1_2, 0x70, 0x10}, - {WSA883X_VAGC_ATTN_LVL_3, 0x07, 0x02}, + {WSA883X_VAGC_ATTN_LVL_1_2, 0xFF, 0x00}, + {WSA883X_VAGC_ATTN_LVL_3, 0xFF, 0x00}, {WSA883X_VAGC_CTL, 0x01, 0x01}, {WSA883X_TAGC_CTL, 0x0E, 0x0A}, {WSA883X_TAGC_TIME, 0x0C, 0x0C},