From 35955cb60ff0a63b9946ec9f08f80f454afa7faa Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Fri, 20 Sep 2019 13:58:34 -0700 Subject: [PATCH] asoc: codecs: bolero: do not perform soft reset In event handler for soft reset, do not perform soft resetting of the compander as this is not the recommended sequence. Compander config needs to be done only in interpolator enable function. Change-Id: I9bb1d493860adc924252827594219618f16309b0 Signed-off-by: Karthikeyan Mani --- asoc/codecs/bolero/rx-macro.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/asoc/codecs/bolero/rx-macro.c b/asoc/codecs/bolero/rx-macro.c index ec71d4a777..ffcd734091 100644 --- a/asoc/codecs/bolero/rx-macro.c +++ b/asoc/codecs/bolero/rx-macro.c @@ -1350,10 +1350,8 @@ static int rx_macro_event_handler(struct snd_soc_component *component, goto done; reg = BOLERO_CDC_RX_COMPANDER0_CTL0 + (rx_idx * RX_MACRO_COMP_OFFSET); - snd_soc_component_update_bits(component, reg, - 0x20, 0x20); - snd_soc_component_update_bits(component, reg, - 0x20, 0x00); + snd_soc_component_write(component, reg, + snd_soc_component_read32(component, reg)); break; case BOLERO_MACRO_EVT_IMPED_TRUE: rx_macro_wcd_clsh_imped_config(component, data, true);