]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/commitdiff
PASDK 564: Removed one dependency of hard coded number from the input task initializa...
authorJianzhong Xu <a0869574@ti.com>
Wed, 4 Apr 2018 21:18:17 +0000 (17:18 -0400)
committerJianzhong Xu <a0869574@ti.com>
Wed, 4 Apr 2018 21:18:17 +0000 (17:18 -0400)
pasdk/test_dsp/application/itopo/evmk2g/atboot.c
pasdk/test_dsp/framework/audioStreamInpProcNewIO.c

index 9c5ae4029212f1e4cb693fafb630736c936282d6..b20d170c3cccef8db5b2d9b88b604d3b72ce46b5 100644 (file)
@@ -86,7 +86,7 @@ All rights reserved.
     writeSYSRecreationModeDirect, \
     writeSYSChannelConfigurationRequestSurround4_1, \
     execPAIOutAnalog, \
-    execPAIInHDMIStereo
+    execPAIInHDMI
 #else
 // Performing PCM high-sampling rate + SRC + CAR benchmarking
 // 4XI2S HDMI input for multi-ch PCM
index 68c90266de84d3ff29e6a806602b1995a539c5ff..1660ecdf4f8d8af59e3a236a7f8d7d60bef3c66c 100644 (file)
@@ -900,8 +900,8 @@ int asitIoCompsInit(PAF_AST_InpBuf * pInpBuf, PAF_AST_IoInp * pInpIo)
     ioDataCfg.ioBuffHandle         = pInpIo->hIoBuff;
     ioDataCfg.unknownSourceTimeOut = pInpBuf->inpBufConfig.pBufStatus->unknownTimeout;
     ioDataCfg.frameLengthsIEC      = (uint_least16_t *)&iecFrameLength[0];
-    ioDataCfg.frameLengthPCM       = INPUT_FRAME_SIZE_PCM / WORD_SIZE_PCM;
-    ioDataCfg.frameLengthDef       = INPUT_FRAME_SIZE_DEF / WORD_SIZE_BITSTREAM;
+    ioDataCfg.frameLengthPCM       = pInpIo->stride * NUM_CYCLE_PER_FRAME_DEF;
+    ioDataCfg.frameLengthDef       = pInpIo->stride * NUM_CYCLE_PER_FRAME_DEF;
     ioDataCfg.ibMode               = pInpBuf->inpBufConfig.pBufStatus->mode;
     ioDataCfg.zeroRunRestart       = pInpBuf->inpBufConfig.pBufStatus->zeroRunRestart;
     ioDataCfg.zeroRunTrigger       = pInpBuf->inpBufConfig.pBufStatus->zeroRunTrigger;