summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8360a0)
raw | patch | inline | side by side (parent: e8360a0)
author | Jianzhong Xu <a0869574@ti.com> | |
Thu, 15 Mar 2018 13:30:57 +0000 (09:30 -0400) | ||
committer | Jianzhong Xu <a0869574@ti.com> | |
Thu, 15 Mar 2018 13:30:57 +0000 (09:30 -0400) |
pasdk/test_dsp/framework/audioStreamInpProcNewIO.c | patch | blob | history |
diff --git a/pasdk/test_dsp/framework/audioStreamInpProcNewIO.c b/pasdk/test_dsp/framework/audioStreamInpProcNewIO.c
index 1ad72dd65d4a0ca9ed0612347ef7ad730d0ea2bd..67f902fa010c19879a58f6687ad8a2e1817855d9 100644 (file)
@@ -1129,6 +1129,13 @@ Int asitSelectDevices(const PAF_ASIT_Patchs *pQ, PAF_AST_Config *pAstCfg, PAF_AS
lldCfg->hMcaspChan = mcaspChanHandle;
}
+ else {
+ /* Configure McASP to receive 16/32-bit data according to default configuration */
+ status = mcaspRecfgWordWidth(pInp->hMcaspChan, lldCfg->mcaspChanParams->wordWidth);
+ if(status != Audk2g_EOK) {
+ return ASIT_ERR_MCASP_CFG;
+ }
+ }
pInp->pRxParams = pQ->devinp->x[interface];
pInp->hMcaspChan = lldCfg->hMcaspChan;
@@ -1138,12 +1145,6 @@ Int asitSelectDevices(const PAF_ASIT_Patchs *pQ, PAF_AST_Config *pAstCfg, PAF_AS
if( (lldCfg->mcaspChanParams->wordWidth == Mcasp_WordLength_16)
&&(lldCfg->mcaspChanParams->noOfSerRequested == 4)
) {
- Int mcaspErr;
- mcaspErr = mcaspRecfgWordWidth(pInp->hMcaspChan, Mcasp_WordLength_16);
- if(mcaspErr != Audk2g_EOK) {
- return ASIT_ERR_MCASP_CFG;
- }
-
pInp->swapData = TRUE;
}
else {