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

Commit 77749417 authored by Tahir Dawson's avatar Tahir Dawson Committed by Gerrit - the friendly Code Review server
Browse files

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



Add support for setting and getting afe port mad type
for RT Proxy Tx port

Change-Id: I7fc550552883b9eee229af4165d4d564578a889a
Signed-off-by: default avatarTahir Dawson <dawson@codeaurora.org>
parent a64a703e
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;