From 24b73c6fb5b048b8c054fa3b8031d8a8cf64c4c5 Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Wed, 21 Apr 2021 17:07:31 +0530 Subject: [PATCH] lpass-cdc: rx-macro: AUX path has no compander support Return from config compander during aux path powerup as aux path compander is not present. Change-Id: I5ed1557dddfb64c8712d92c75fd58aa98b96355d Signed-off-by: Laxminath Kasam --- asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c b/asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c index 06e6d427c7..2d7fa3657d 100644 --- a/asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c +++ b/asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c @@ -1845,6 +1845,10 @@ static int lpass_cdc_rx_macro_config_compander(struct snd_soc_component *compone u16 comp_coeff_lsb_reg = 0, comp_coeff_msb_reg = 0; u16 mode = rx_priv->hph_pwr_mode; + /* AUX does not have compander */ + if (interp_n == INTERP_AUX) + return 0; + comp = interp_n; if (!rx_priv->comp_enabled[comp]) return 0;