瀏覽代碼

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 年之前
父節點
當前提交
f27ffc6243
共有 1 個文件被更改,包括 3 次插入1 次删除
  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)