From 5f2bfaae5b866f8f00ca0d9c5755440f6026b75c Mon Sep 17 00:00:00 2001 From: Soumya Managoli Date: Mon, 30 Oct 2023 16:40:06 +0530 Subject: [PATCH] ASoC: bolero: Add check for CMPDR switch Do not disable CMPDR for EAR if ear mode is on as it can lead to mute issues on ear. Change-Id: Ibf54fe6f14c5f08c2004fae36204398109ad53c1 Signed-off-by: Soumya Managoli --- asoc/codecs/bolero/rx-macro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asoc/codecs/bolero/rx-macro.c b/asoc/codecs/bolero/rx-macro.c index 509a139144ec..50fb7dc9341d 100644 --- a/asoc/codecs/bolero/rx-macro.c +++ b/asoc/codecs/bolero/rx-macro.c @@ -2691,7 +2691,8 @@ static void rx_macro_hphdelay_lutbypass(struct snd_soc_component *component, } if (hph_lut_bypass_reg && SND_SOC_DAPM_EVENT_OFF(event)) { - snd_soc_component_update_bits(component, + if (!rx_priv->is_ear_mode_on) + snd_soc_component_update_bits(component, BOLERO_CDC_RX_RX0_RX_PATH_CFG1, 0x02, 0x00); snd_soc_component_update_bits(component, hph_lut_bypass_reg,