Prechádzať zdrojové kódy

soc: swr: enable PCM IN/OUT when using pcm interface

Enable PCM IN/OUT when using pcm interface.

Change-Id: Iff7b234a6d188802619cff112fa9bb54804ac77d
Signed-off-by: Meng Wang <[email protected]>
Meng Wang 5 rokov pred
rodič
commit
b72b79a6b0
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      soc/swr-mstr-ctrl.c

+ 4 - 0
soc/swr-mstr-ctrl.c

@@ -690,6 +690,10 @@ static int swrm_pcm_port_config(struct swr_mstr_ctrl *swrm, u8 port_num,
 				SWRM_DOUT_DP_PCM_PORT_CTRL(port_num));
 	swr_master_write(swrm, reg_addr, enable);
 
+	if (enable)
+		swr_master_write(swrm, SWRM_COMP_FEATURE_CFG, 0x1E);
+	else
+		swr_master_write(swrm, SWRM_COMP_FEATURE_CFG, 0x6);
 	return 0;
 }