From ec8b554e4d47ffd29824bf860e64eedd84afaad6 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Tue, 21 Apr 2020 14:16:51 +0530 Subject: [PATCH] bolero: rx-macro: Resolve noise on ear path during hph ear concurrency There is noise on ear path during hph and ear concurrency. Set proper HPH_V_PA voltage when both hph PA is in class-H mode to resolve noise. Change-Id: Ifbbfb5691687dcb2202358c1e387252954d58db2 Signed-off-by: Vatsal Bucha --- asoc/codecs/bolero/rx-macro.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/asoc/codecs/bolero/rx-macro.c b/asoc/codecs/bolero/rx-macro.c index 62da031f269c..cb4534af310b 100644 --- a/asoc/codecs/bolero/rx-macro.c +++ b/asoc/codecs/bolero/rx-macro.c @@ -1930,7 +1930,12 @@ static int rx_macro_config_classh(struct snd_soc_component *component, 0x40, 0x40); break; case INTERP_HPHR: - snd_soc_component_update_bits(component, + if (rx_priv->is_ear_mode_on) + snd_soc_component_update_bits(component, + BOLERO_CDC_RX_CLSH_HPH_V_PA, + 0x3F, 0x39); + else + snd_soc_component_update_bits(component, BOLERO_CDC_RX_CLSH_HPH_V_PA, 0x3F, 0x1C); snd_soc_component_update_bits(component,