From fbdcab9e8db7ccd9c6dd75b0d7c6c3d2427cc47f Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Wed, 13 Feb 2019 17:15:15 -0800 Subject: [PATCH] asoc: codecs: wcd938x: enable micbias for capture Micbias needs tx bias clock bit to be enabled. Change-Id: I6a73d05eb9363c3dce267f6730c44b0442387365 Signed-off-by: Karthikeyan Mani --- asoc/codecs/wcd938x/wcd938x.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asoc/codecs/wcd938x/wcd938x.c b/asoc/codecs/wcd938x/wcd938x.c index 10a085b4298f..c0f0d05f457f 100644 --- a/asoc/codecs/wcd938x/wcd938x.c +++ b/asoc/codecs/wcd938x/wcd938x.c @@ -1397,12 +1397,16 @@ int wcd938x_micbias_control(struct snd_soc_component *component, WCD938X_DIGITAL_CDC_DIG_CLK_CTL, 0xE0, 0xE0); snd_soc_component_update_bits(component, WCD938X_DIGITAL_CDC_ANA_CLK_CTL, 0x10, 0x10); + snd_soc_component_update_bits(component, + WCD938X_DIGITAL_CDC_ANA_TX_CLK_CTL, 0x01, 0x01); snd_soc_component_update_bits(component, WCD938X_MICB1_TEST_CTL_2, 0x01, 0x01); snd_soc_component_update_bits(component, WCD938X_MICB2_TEST_CTL_2, 0x01, 0x01); snd_soc_component_update_bits(component, WCD938X_MICB3_TEST_CTL_2, 0x01, 0x01); + snd_soc_component_update_bits(component, + WCD938X_MICB4_TEST_CTL_2, 0x01, 0x01); snd_soc_component_update_bits(component, micb_reg, 0xC0, 0x40); if (post_on_event)