summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-11-19 23:22:17 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2020-11-19 23:22:17 -0800
commitd6366f2b485013bd623e544ddc887b2446d6bc79 (patch)
tree199ead0432945aa48e6eef1c9625c2e144cc170f
parent9503ada7a46d9bfb3dace9b147a05282935652f2 (diff)
parent4a089bc4aed683e85738bae1ba6df517e60b80e2 (diff)
downloadmsm-extra-d6366f2b485013bd623e544ddc887b2446d6bc79.tar.gz
Merge "ASoC: wsa883x: enable vbat adc filter"
-rw-r--r--asoc/codecs/wsa883x/wsa883x.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/asoc/codecs/wsa883x/wsa883x.c b/asoc/codecs/wsa883x/wsa883x.c
index 8a5e99e4..dc121374 100644
--- a/asoc/codecs/wsa883x/wsa883x.c
+++ b/asoc/codecs/wsa883x/wsa883x.c
@@ -996,6 +996,12 @@ static int wsa883x_spkr_event(struct snd_soc_dapm_widget *w,
/* Force remove group */
swr_remove_from_group(wsa883x->swr_slave,
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))
snd_soc_component_update_bits(component,
WSA883X_PA_FSM_CTL, 0x01, 0x01);
@@ -1004,6 +1010,12 @@ static int wsa883x_spkr_event(struct snd_soc_dapm_widget *w,
if (!test_bit(SPKR_ADIE_LB, &wsa883x->status_mask))
wcd_disable_irq(&wsa883x->irq_info,
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,
0x01, 0x00);
snd_soc_component_update_bits(wsa883x->component,