ASoC: wcd9304: check right micbias setting during MBHC initilization
It was found that handset mic recording is not working after
headset detection change is introduced. CODEC driver changes
cfilt mode for MBHC purpose though handset mic is not
using the micbias that is assigned for MBHC detection.
Update logic to check for right MBHC micbias setting.
CRs-fixed: 360923
Change-Id: Iacd13b4bb6d483dae755d6df4372d6917ba4ca14
Signed-off-by: Patrick Lai <plai@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9304.c b/sound/soc/codecs/wcd9304.c
index 4b6d83b..9041bd7 100644
--- a/sound/soc/codecs/wcd9304.c
+++ b/sound/soc/codecs/wcd9304.c
@@ -1498,7 +1498,7 @@
struct sitar_priv *sitar = snd_soc_codec_get_drvdata(codec);
unsigned int cfilt;
- switch (sitar->micbias) {
+ switch (sitar->mbhc_cfg.micbias) {
case SITAR_MICBIAS1:
cfilt = sitar->pdata->micbias.bias1_cfilt_sel;
micbias_regs->mbhc_reg = SITAR_A_MICB_1_MBHC;