asoc: codecs: Add WSA init reg writes

Update to latest sequence from WSA hardware systems team.
Add writes for VADC, BG, Boost

Change-Id: Ic61e1c36154ff673fce05546332e89fe683a3075
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
This commit is contained in:
Matthew Rice
2022-03-10 10:00:38 -08:00
کامیت شده توسط Gerrit - the friendly Code Review server
والد f5d8dd3262
کامیت 5403d47a9a
3فایلهای تغییر یافته به همراه42 افزوده شده و 1 حذف شده

مشاهده پرونده

@@ -125,6 +125,9 @@ static const struct wsa_reg_mask_val reg_init[] = {
{REG_FIELD_VALUE(CKWD_CTL_1, CKWD_VCOMP_VREF_SEL, 0x13)},
{REG_FIELD_VALUE(BOP2_PROG, BOP2_VTH, 0x06)},
{REG_FIELD_VALUE(BOP2_PROG, BOP2_HYST, 0x06)},
{REG_FIELD_VALUE(VBAT_CAL_CTL, RESERVE, 0x02)},
{REG_FIELD_VALUE(REF_CTRL, BG_RDY_SEL, 0x01)},
{REG_FIELD_VALUE(ZX_CTRL1, ZX_DET_SW_SEL, 0x03)},
};
static int wsa884x_handle_post_irq(void *data);
@@ -620,7 +623,7 @@ static int wsa884x_set_gain_parameters(struct snd_soc_component *component)
snd_soc_component_update_bits(component,
REG_FIELD_VALUE(DRE_CTL_1, CSR_GAIN_EN, 0x00));
} else {
wsa884x->pa_aux_gain = pa_aux_no_comp[wsa884x->system_gain];
wsa884x->pa_aux_gain = pa_aux_no_comp[wsa884x->pa_gain];
snd_soc_component_update_bits(component,
REG_FIELD_VALUE(DRE_CTL_1, CSR_GAIN_EN, 0x01));
snd_soc_component_update_bits(component,