diff options
author | Christi Martin <chrmartn@google.com> | 2023-04-27 14:37:52 -0400 |
---|---|---|
committer | Christi Martin <chrmartn@google.com> | 2023-04-27 19:28:16 +0000 |
commit | 572d99158efe322079a2def6daad87de76c85ea8 (patch) | |
tree | 8f5c05e8d47db9e8d3fe167bf7c070cbfd261e72 /asoc | |
parent | 4e0405ac68850d8569b8d710b4c99cf29ce56963 (diff) | |
download | msm-extra-572d99158efe322079a2def6daad87de76c85ea8.tar.gz |
Revert 54038ca (besbev: SWR_CDC_RST on mic bias enable)
Replace with reduced BESBEV_TAGC_TIME hold time setting from 300ms to
10ms
Register description and patch provided by Qualcomm:
BESBEV_TAGC_TIME bitmask defines attack, decay, and hold times
Bits 5:4 represent hold time setting {0x0: 3ms, 0x1: 10ms, 0x2: 100ms, 0x3: 300ms}
Bug: 249932887
Bug: 270956368
Test: manual audio playback
Change-Id: I13646c69daeaaf286a8117ee3b53f224cde2d447
Signed-off-by: Christi Martin <chrmartn@google.com>
Diffstat (limited to 'asoc')
-rw-r--r-- | asoc/codecs/besbev/besbev.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/asoc/codecs/besbev/besbev.c b/asoc/codecs/besbev/besbev.c index 179c6610..92abd388 100644 --- a/asoc/codecs/besbev/besbev.c +++ b/asoc/codecs/besbev/besbev.c @@ -198,7 +198,7 @@ static int besbev_init_reg(struct snd_soc_component *component, snd_soc_component_update_bits(component, BESBEV_TAGC_CTL, 0x0E, 0x0A); snd_soc_component_update_bits(component, BESBEV_TAGC_TIME, - 0x30, 0x30); + 0x30, 0x10); snd_soc_component_update_bits(component, BESBEV_TAGC_E2E_GAIN, 0x1F, 0x04); snd_soc_component_update_bits(component, BESBEV_TAGC_CTL, @@ -435,13 +435,6 @@ int besbev_global_mbias_enable(struct snd_soc_component *component) BESBEV_ANA_MBIAS_TSADC_EN, 0x20, 0x20); snd_soc_component_update_bits(component, BESBEV_ANA_MBIAS_TSADC_EN, 0x10, 0x10); -#ifdef CONFIG_GOOGLE_SW5100_AUDIO - snd_soc_component_update_bits(component, - BESBEV_DIG_SWR_CDC_RST, 0x1, 0x1); - usleep_range(1000,2000); - snd_soc_component_update_bits(component, - BESBEV_DIG_SWR_CDC_RST, 0x1, 0x0); -#endif } besbev->mbias_cnt++; mutex_unlock(&besbev->main_bias_lock); |