From 40f02da69c3305a8de209a840c26ee184eb1f09a Mon Sep 17 00:00:00 2001 From: Sudheer Papothi Date: Fri, 27 Mar 2020 07:12:58 +0530 Subject: [PATCH] ASoC: wsa883x: Update initial register sequence Update initial regsiter sequence for wsa883x speaker amplifier as per hardware requirements. Change-Id: I3cd0458980bdc5140ff81b3b8ba6bab42e72fd49 Signed-off-by: Sudheer Papothi --- asoc/codecs/wsa883x/wsa883x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/asoc/codecs/wsa883x/wsa883x.c b/asoc/codecs/wsa883x/wsa883x.c index 94b3e34715..7313125c8b 100644 --- a/asoc/codecs/wsa883x/wsa883x.c +++ b/asoc/codecs/wsa883x/wsa883x.c @@ -68,6 +68,8 @@ struct wsa_reg_mask_val { static const struct wsa_reg_mask_val reg_init[] = { {WSA883X_PA_FSM_BYP, 0x01, 0x00}, + {WSA883X_ISENSE2, 0xE0, 0x40}, + {WSA883X_ADC_6, 0x02, 0x02}, {WSA883X_CDC_SPK_DSM_A2_0, 0xFF, 0x0A}, {WSA883X_CDC_SPK_DSM_A2_1, 0x0F, 0x08}, {WSA883X_CDC_SPK_DSM_A3_0, 0xFF, 0xF3}, @@ -106,8 +108,12 @@ static const struct wsa_reg_mask_val reg_init[] = { {WSA883X_OTP_REG_3, 0xFF, 0xC9}, {WSA883X_OTP_REG_4, 0xC0, 0x40}, {WSA883X_TAGC_CTL, 0x01, 0x01}, + {WSA883X_ADC_2, 0x40, 0x00}, + {WSA883X_ADC_7, 0x04, 0x04}, + {WSA883X_ADC_7, 0x02, 0x02}, {WSA883X_CKWD_CTL_0, 0x60, 0x00}, {WSA883X_CKWD_CTL_1, 0x1F, 0x1B}, + {WSA883X_GMAMP_SUP1, 0x60, 0x60}, }; static int wsa883x_get_temperature(struct snd_soc_component *component,