Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40f02da6 authored by Sudheer Papothi's avatar Sudheer Papothi
Browse files

ASoC: wsa883x: Update initial register sequence



Update initial regsiter sequence for wsa883x speaker
amplifier as per hardware requirements.

Change-Id: I3cd0458980bdc5140ff81b3b8ba6bab42e72fd49
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent 68c0eb8d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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,