diff options
author | Laxminath Kasam <lkasam@codeaurora.org> | 2020-07-01 17:01:55 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-07-10 06:05:01 -0700 |
commit | f813d50dc4db8936dcde05ac1fe2d564e590be9d (patch) | |
tree | 64138bd25bc8e3450c3c984504ee655469be11b0 /asoc | |
parent | 6f900e6d5ab5bb1b6a7dd859692711888eae8822 (diff) | |
download | msm-extra-f813d50dc4db8936dcde05ac1fe2d564e590be9d.tar.gz |
asoc: wsa881x: Disable WSA ADC register when teardown
To ensure mono/stereo speaker usecases with speaker
protection enabled switch properly and apply register
during powerup, update disable sequence of ADC register.
CRs-Fixed: 2705914
Change-Id: If9ceb4436ed6ce236a4e529d65b0acc8f9f6cd0e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Diffstat (limited to 'asoc')
-rw-r--r-- | asoc/codecs/wsa881x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/asoc/codecs/wsa881x.c b/asoc/codecs/wsa881x.c index 8850ea60..b23bc01f 100644 --- a/asoc/codecs/wsa881x.c +++ b/asoc/codecs/wsa881x.c @@ -1077,6 +1077,9 @@ static int wsa881x_spkr_pa_event(struct snd_soc_dapm_widget *w, 0x80, 0x00); if (wsa881x->visense_enable) { wsa881x_visense_adc_ctrl(component, DISABLE); + snd_soc_component_update_bits(component, + WSA881X_ADC_EN_SEL_IBAIS, + 0x07, 0x00); wsa881x_visense_txfe_ctrl(component, DISABLE, 0x00, 0x01, 0x01); } |