From fb63ca16cc2f56a71e7448c2b7987c99cb2a00da Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Sat, 28 Mar 2020 08:40:16 +0530 Subject: [PATCH] ASoC: wcd938x: Enable digital clk for tx0 if micbias enabled Mute is observed in amic record sometimes in concurrency with sva. This is because if record is over tx0 then digital clk is not enabled. Enable clk after enabling micbias to resolve mute. Change-Id: Iba3aa4fade0ac5889218eaee2c5d2c4bd4431d50 Signed-off-by: Vatsal Bucha --- asoc/codecs/wcd937x/wcd937x.c | 2 +- asoc/codecs/wcd938x/wcd938x.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/codecs/wcd937x/wcd937x.c b/asoc/codecs/wcd937x/wcd937x.c index 725fef85b4..8627c7391c 100644 --- a/asoc/codecs/wcd937x/wcd937x.c +++ b/asoc/codecs/wcd937x/wcd937x.c @@ -1456,7 +1456,7 @@ int wcd937x_micbias_control(struct snd_soc_component *component, mutex_unlock(&wcd937x->ana_tx_clk_lock); if (wcd937x->micb_ref[micb_index] == 1) { snd_soc_component_update_bits(component, - WCD937X_DIGITAL_CDC_DIG_CLK_CTL, 0xE0, 0xE0); + WCD937X_DIGITAL_CDC_DIG_CLK_CTL, 0xF0, 0xF0); snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_ANA_CLK_CTL, 0x10, 0x10); snd_soc_component_update_bits(component, diff --git a/asoc/codecs/wcd938x/wcd938x.c b/asoc/codecs/wcd938x/wcd938x.c index 9682207e97..376c35db8f 100644 --- a/asoc/codecs/wcd938x/wcd938x.c +++ b/asoc/codecs/wcd938x/wcd938x.c @@ -1902,7 +1902,7 @@ int wcd938x_micbias_control(struct snd_soc_component *component, wcd938x->micb_ref[micb_index]++; if (wcd938x->micb_ref[micb_index] == 1) { snd_soc_component_update_bits(component, - WCD938X_DIGITAL_CDC_DIG_CLK_CTL, 0xE0, 0xE0); + WCD938X_DIGITAL_CDC_DIG_CLK_CTL, 0xF0, 0xF0); snd_soc_component_update_bits(component, WCD938X_DIGITAL_CDC_ANA_CLK_CTL, 0x10, 0x10); snd_soc_component_update_bits(component,