From 777494173029810e1a70f4cadab422c6f3def833 Mon Sep 17 00:00:00 2001 From: Tahir Dawson Date: Tue, 4 May 2021 16:32:44 -0400 Subject: [PATCH] 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: Tahir Dawson --- dsp/q6afe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dsp/q6afe.c b/dsp/q6afe.c index ac6bc11733b5..ed86344fa8dd 100755 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -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;