Jelajahi Sumber

asoc: lpass-cdc-rx-macro: DRE return for SWR PCM and PDM data transport cases

DRE is not disabled properly on targets where kcontrols are not exposed.
Add separate check for both SWR PCM and PDM data transport cases to
avoid having dependency on kcontrol.

Change-Id: Ifbd9aaa8213540c9cc19690ef70b30336580116a
Signed-off-by: Ravulapati Vishnu Vardhan Rao <[email protected]>
Ravulapati Vishnu Vardhan Rao 1 tahun lalu
induk
melakukan
f27ffc6243
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c

+ 3 - 1
asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c

@@ -1890,7 +1890,9 @@ static int lpass_cdc_rx_macro_config_compander(struct snd_soc_component *compone
 		return 0;
 
 	comp = interp_n;
-	if (!rx_priv->comp_enabled[comp] && rx_priv->is_pcm_enabled)
+	if (!rx_priv->comp_enabled[comp])
+		return 0;
+	if (rx_priv->is_pcm_enabled)
 		return 0;
 
 	if (rx_priv->is_ear_mode_on && interp_n == INTERP_HPHL)