From: Frank Livingston Date: Tue, 27 Feb 2018 22:21:01 +0000 (-0600) Subject: PASDK-538:Remove unused code X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Fperformance-audio-sr.git;a=commitdiff_plain;h=8f7d0c09504c3e34c9dc8bc77bf8786135c046a3 PASDK-538:Remove unused code --- diff --git a/pasdk/test_dsp/framework/audioStreamInpDec.c b/pasdk/test_dsp/framework/audioStreamInpDec.c index fe2bb19b..e3fc0751 100644 --- a/pasdk/test_dsp/framework/audioStreamInpDec.c +++ b/pasdk/test_dsp/framework/audioStreamInpDec.c @@ -83,11 +83,6 @@ static Int decDecodeFinalTest(const PAF_ASIT_Params *pP, const PAF_ASIT_Patchs * PAF_ASIT_Config *pAsitCfg); Int decCheckMajorAu(PAF_AST_Config *pAstCfg); -#if 0 -Int AspMsgSnd(UInt32 sndCmd, char *sndMsgBuf); -Int AspMsgAck(UInt32 ackCmd, char *ackMsgBuf); -#endif - extern UInt32 gCbWrtAfErrCnt; @@ -1062,108 +1057,6 @@ static Int decDecodeAck(const PAF_ASIT_Params *pP, const PAF_ASIT_Patchs *pQ, } /* decDecodeAck */ -#if 0 -/************************************************************************************ - * ASP message sending function. Refer to aspMsg_master.h for detailed description. -************************************************************************************/ -Int AspMsgSnd(UInt32 sndCmd, char *sndMsgBuf) -{ - ASP_Msg* pAspMsg; /* Messaging */ - Int status; - - // allocate message - pAspMsg = (ASP_Msg *)MessageQ_alloc(hAspMsgMaster->heapId, hAspMsgMaster->msgSize); - if (pAspMsg == NULL) { - TRACE_TERSE0("MessageQ_alloc() failure."); - return (ASP_MSG_ERR_QUEUE_ALLOC); - } - - // set the return address in the message header and fill in message payload - MessageQ_setReplyQueue(hAspMsgMaster->masterQue, (MessageQ_Msg)pAspMsg); - pAspMsg->cmd = sndCmd; - pAspMsg->procId = hAspMsgMaster->masterProcId; - pAspMsg->messageId = hAspMsgMaster->messageId & ~(1<<31); - pAspMsg->expectResp = TRUE; - - // copy the message provided by caller - if(sndMsgBuf != NULL) { - memcpy(pAspMsg->buf, sndMsgBuf, ASP_MSG_BUF_LEN*sizeof(char)); - } - - // send the message - TRACE_TERSE3("ASP message: procId=%d, cmd=%d, messageId=0x%04x", pAspMsg->procId, pAspMsg->cmd, pAspMsg->messageId); - status = MessageQ_put(hAspMsgMaster->slaveQue, (MessageQ_Msg)pAspMsg); - if (status != MessageQ_S_SUCCESS) { - TRACE_TERSE0("MessageQ_put() failure."); - MessageQ_free((MessageQ_Msg)pAspMsg); - return (ASP_MSG_ERR_QUEUE_PUT); - } - - status = MessageQ_free((MessageQ_Msg)pAspMsg); - if (status != MessageQ_S_SUCCESS) { - TRACE_TERSE0("MessageQ_free() failure."); - return (ASP_MSG_ERR_QUEUE_FREE); - } - - // No error in messaging operation, even though there - // may be error in returned (acknowledgement) message. - return (ASP_MSG_NO_ERR); -} /* AspMsgSnd */ - -/************************************************************************************ - * ASP message sending function. Refer to aspMsg_master.h for detailed description. -************************************************************************************/ -Int AspMsgAck(UInt32 ackCmd, char *ackMsgBuf) -{ - ASP_Msg* pAspMsg; /* Messaging */ - Int status; - - // allocate message - pAspMsg = (ASP_Msg *)MessageQ_alloc(hAspMsgMaster->heapId, hAspMsgMaster->msgSize); - if (pAspMsg == NULL) { - TRACE_TERSE0("MessageQ_alloc() failure."); - return (ASP_MSG_ERR_QUEUE_ALLOC); - } - - // wait for complete message from slave - status = MessageQ_get(hAspMsgMaster->masterQue, (MessageQ_Msg *)&pAspMsg, MessageQ_FOREVER); - if (status != MessageQ_S_SUCCESS) { - TRACE_TERSE0("MessageQ_get() failure."); - MessageQ_free((MessageQ_Msg)pAspMsg); - return (ASP_MSG_ERR_QUEUE_GET); - } - - // check if returned message is valid - if ((pAspMsg->procId != hAspMsgMaster->slaveProcId) || - (pAspMsg->cmd != ackCmd) || - (pAspMsg->messageId != (hAspMsgMaster->messageId | ((UInt32)1<<31)))) { - TRACE_TERSE3("ERROR: ASP message: procId=%d, cmd=%d, messageId=0x%04x", pAspMsg->procId, pAspMsg->cmd, pAspMsg->messageId); - MessageQ_free((MessageQ_Msg)pAspMsg); - return(ASP_MSG_ERR_ACKNOWLEDGE); - } - - hAspMsgMaster->messageId = (hAspMsgMaster->messageId + 1) & ~(1<<31); - TRACE_TERSE3("ASP message: procId=%d, cmd=%d, messageId=0x%04x", pAspMsg->procId, pAspMsg->cmd, pAspMsg->messageId); - - // get the returned message - if(ackMsgBuf != NULL) { - memcpy(ackMsgBuf, pAspMsg->buf, ASP_MSG_BUF_LEN*sizeof(char)); - } - - // free the message - status = MessageQ_free((MessageQ_Msg)pAspMsg); - if (status != MessageQ_S_SUCCESS) { - TRACE_TERSE0("MessageQ_free() failure."); - return (ASP_MSG_ERR_QUEUE_FREE); - } - - // No error in messaging operation, even though there - // may be error in returned (acknowledgement) message. - return (ASP_MSG_NO_ERR); -} /* AspMsgAck */ -#endif - - #if 0 Int asipDecodeProcessing( const PAF_ASIT_Params *pP,