Merge "dsp: Add support for setting/getting mad type for proxy capture"

This commit is contained in:
qctecmdr 2021-05-19 06:19:18 -07:00 • committed by Gerrit - the friendly Code Review server
commit bd89f17f82

View file

@ -4022,7 +4022,8 @@ int afe_port_set_mad_type(u16 port_id, enum afe_mad_type mad_type)
if (port_id == AFE_PORT_ID_TERTIARY_MI2S_TX ||
port_id == AFE_PORT_ID_INT3_MI2S_TX ||
port_id == AFE_PORT_ID_TX_CODEC_DMA_TX_3 ||
port_id == AFE_PORT_ID_TERTIARY_TDM_TX) {
port_id == AFE_PORT_ID_TERTIARY_TDM_TX ||
port_id == RT_PROXY_PORT_001_TX) {
mad_type = MAD_SW_AUDIO;
return 0;
}
@ -4052,7 +4053,8 @@ enum afe_mad_type afe_port_get_mad_type(u16 port_id)
if (port_id == AFE_PORT_ID_TERTIARY_MI2S_TX ||
port_id == AFE_PORT_ID_INT3_MI2S_TX ||
port_id == AFE_PORT_ID_TX_CODEC_DMA_TX_3 ||
port_id == AFE_PORT_ID_TERTIARY_TDM_TX)
port_id == AFE_PORT_ID_TERTIARY_TDM_TX ||
port_id == RT_PROXY_PORT_001_TX)
return MAD_SW_AUDIO;
i = port_id - SLIMBUS_0_RX;