updating mcbsp driver to take tx data delay into account
[keystone-rtos/mcbsp-lld.git] / src / mcbsp_drv.c
index b9de43e92525c06f179c5eb580e1fdcc1f387623..f9f114e7eb49b9d96986511161f199d49d53abb4 100644 (file)
@@ -2086,7 +2086,8 @@ int32_t Mcbsp_localConfigureSrgr(Mcbsp_Object_Unpadded *instHandle,
         else
         {
             noOfBits  = (chanHandle->chanConfig.wrdLen1
-                            * chanHandle->chanConfig.frmLen1);
+                            * chanHandle->chanConfig.frmLen1)
+                                                       + chanHandle->chanConfig.dataDelay;
         }
 
         clkgDiv = ((instHandle->srgrConfig.srgrInputFreq/