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 <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2021-04-21 17:07:31 +05:30
parent e334b71c41
commit 24b73c6fb5

View File

@@ -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;