From 71239c6f0e78edfa8bebbc951ab6258a2ace5ca3 Mon Sep 17 00:00:00 2001 From: "Vangala, Amarnath" Date: Tue, 14 Dec 2021 22:55:11 +0530 Subject: [PATCH] asoc: wcd937x: update mic bias registers for new fab Update micbias register fields for new fab id of tanggu. Change-Id: I4974acebcb08de6b78f6ff5a90ed401e276c59f7 Signed-off-by: Vangala, Amarnath --- asoc/codecs/wcd937x/wcd937x.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/asoc/codecs/wcd937x/wcd937x.c b/asoc/codecs/wcd937x/wcd937x.c index 7dbc9e9d93b2..fcb0dd15c6a8 100644 --- a/asoc/codecs/wcd937x/wcd937x.c +++ b/asoc/codecs/wcd937x/wcd937x.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -188,6 +189,12 @@ static int wcd937x_init_reg(struct snd_soc_component *component) 0xFF, 0xFA); snd_soc_component_update_bits(component, WCD937X_MICB3_TEST_CTL_1, 0xFF, 0xFA); + snd_soc_component_update_bits(component, WCD937X_MICB1_TEST_CTL_2, + 0x38, 0x00); + snd_soc_component_update_bits(component, WCD937X_MICB2_TEST_CTL_2, + 0x38, 0x00); + snd_soc_component_update_bits(component, WCD937X_MICB3_TEST_CTL_2, + 0x38, 0x00); /* Set Bandgap Fine Adjustment to +5mV for Tanggu SMIC part */ if (snd_soc_component_read32(component, WCD937X_DIGITAL_EFUSE_REG_16) == 0x01) {