From 070b8d25a13c1a621c9302a7ae700420905f80bc Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Wed, 1 Jul 2020 17:01:55 +0530 Subject: [PATCH] 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 --- asoc/codecs/wsa881x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asoc/codecs/wsa881x.c b/asoc/codecs/wsa881x.c index adb4d91baf6b..a591429ed344 100644 --- a/asoc/codecs/wsa881x.c +++ b/asoc/codecs/wsa881x.c @@ -1083,6 +1083,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); }