Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd89f17f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 0df65e3b 77749417
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;