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

This commit is contained in:
qctecmdr 2020-04-26 23:42:49 -07:00 • committed by Gerrit - the friendly Code Review server
commit 427dd0d8ed

View file

@ -694,6 +694,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;
}