From bde6f50f4bdd32d91709f2929a27612a87f98852 Mon Sep 17 00:00:00 2001 From: Govind Jeyaram Date: Thu, 20 Jul 2017 13:39:56 -0700 Subject: [PATCH] PASDK-218: Fixed a bug involving insufficient num of spare EDMA params used by the IB. This lends stability to ASIT state-machine, when it transitions from source=unknown (auto-detection) to a known source (decode processing). --- pasdk/test_dsp/sap/sap.c | 4 +++- pasdk/test_dsp/sap/sap.h | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pasdk/test_dsp/sap/sap.c b/pasdk/test_dsp/sap/sap.c index 08f09681..862494d5 100644 --- a/pasdk/test_dsp/sap/sap.c +++ b/pasdk/test_dsp/sap/sap.c @@ -66,6 +66,7 @@ All rights reserved. #include #define EDMA_HINV NULL +#define EDMA_NUM_PARAMS 6 #include "sap_mcasp.h" #include @@ -973,7 +974,8 @@ Int SAP_open (DEV2_Handle device, String name) pDevExt->firstTCC = 0; pDevExt->optLevel = 0; pDevExt->numParamSetup = 0; - pDevExt->numEdmaParams = 4; + pDevExt->numEdmaParams = EDMA_NUM_PARAMS; // We need more than 4 spare params to handle the immediate transition from Unknown + // to a Known program. Cheap resource to spend. // use dev match to fetch function table pointer for SAP DEV2_match(SAP_NAME, &entry); diff --git a/pasdk/test_dsp/sap/sap.h b/pasdk/test_dsp/sap/sap.h index 8f14f423..65c51e66 100644 --- a/pasdk/test_dsp/sap/sap.h +++ b/pasdk/test_dsp/sap/sap.h @@ -235,13 +235,13 @@ typedef struct SAP_DeviceExtension Uint16 numSers; Uint16 numSlots; - Void *pPortExt; // unused for now - Void *pDmaExt; + Void *pPortExt; //unused - remove me + Void *pDmaExt; //unused - remove me SAP_EDMA_Param edmaParams[MAX_EDMA_PARAM_ENTRIES]; - Int optLevel; - Int numParamSetup; + Int optLevel; //unused - remove me + Int numParamSetup; //unused - remove me } SAP_DeviceExtension; -- 2.39.2