Merge "ASoC: wsa883x: enable vbat adc filter"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
be8dfac3bf
@@ -1051,6 +1051,12 @@ static int wsa883x_spkr_event(struct snd_soc_dapm_widget *w,
|
|||||||
/* Force remove group */
|
/* Force remove group */
|
||||||
swr_remove_from_group(wsa883x->swr_slave,
|
swr_remove_from_group(wsa883x->swr_slave,
|
||||||
wsa883x->swr_slave->dev_num);
|
wsa883x->swr_slave->dev_num);
|
||||||
|
snd_soc_component_update_bits(component,
|
||||||
|
WSA883X_VBAT_ADC_FLT_CTL,
|
||||||
|
0x0E, 0x06);
|
||||||
|
snd_soc_component_update_bits(component,
|
||||||
|
WSA883X_VBAT_ADC_FLT_CTL,
|
||||||
|
0x01, 0x01);
|
||||||
if (test_bit(SPKR_ADIE_LB, &wsa883x->status_mask))
|
if (test_bit(SPKR_ADIE_LB, &wsa883x->status_mask))
|
||||||
snd_soc_component_update_bits(component,
|
snd_soc_component_update_bits(component,
|
||||||
WSA883X_PA_FSM_CTL, 0x01, 0x01);
|
WSA883X_PA_FSM_CTL, 0x01, 0x01);
|
||||||
@@ -1059,6 +1065,12 @@ static int wsa883x_spkr_event(struct snd_soc_dapm_widget *w,
|
|||||||
if (!test_bit(SPKR_ADIE_LB, &wsa883x->status_mask))
|
if (!test_bit(SPKR_ADIE_LB, &wsa883x->status_mask))
|
||||||
wcd_disable_irq(&wsa883x->irq_info,
|
wcd_disable_irq(&wsa883x->irq_info,
|
||||||
WSA883X_IRQ_INT_PDM_WD);
|
WSA883X_IRQ_INT_PDM_WD);
|
||||||
|
snd_soc_component_update_bits(component,
|
||||||
|
WSA883X_VBAT_ADC_FLT_CTL,
|
||||||
|
0x01, 0x00);
|
||||||
|
snd_soc_component_update_bits(component,
|
||||||
|
WSA883X_VBAT_ADC_FLT_CTL,
|
||||||
|
0x0E, 0x00);
|
||||||
snd_soc_component_update_bits(component, WSA883X_PA_FSM_CTL,
|
snd_soc_component_update_bits(component, WSA883X_PA_FSM_CTL,
|
||||||
0x01, 0x00);
|
0x01, 0x00);
|
||||||
snd_soc_component_update_bits(component, WSA883X_PDM_WD_CTL,
|
snd_soc_component_update_bits(component, WSA883X_PDM_WD_CTL,
|
||||||
|
Reference in New Issue
Block a user