PASDK-577:Add error in case Output re-select w/ McASP LLD driver handle non-NULL
authorFrank Livingston <frank-livingston@ti.com>
Wed, 6 Jun 2018 19:03:22 +0000 (14:03 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Wed, 6 Jun 2018 19:03:22 +0000 (14:03 -0500)
pasdk/test_dsp/framework/audioStreamOutIo.c
pasdk/test_dsp/framework/audioStreamOutIo.h

index ccf3fd84f0fc93d67619094f1a090169c09251e3..fbc05c0d78720a5b21f68ec10578d708b3c3b1ab 100644 (file)
@@ -132,6 +132,10 @@ Int asopSelectDevices(
             pOut->stride = pReqLldCfg->mcaspChanParams->noOfSerRequested * 
                 pReqLldCfg->mcaspChanParams->noOfChannels;
         }
+        else
+        {
+            return ASOP_IO_ERR_INV_STATE;
+        }
     }
     else
     {
@@ -299,7 +303,7 @@ Int asopSetCheckRateX(
             }
 #endif // FL, New IO
             // FL: ugly little experiment
-            //*(volatile UInt32 *)0x23400B0 |= 7;
+            //*(volatile UInt32 *)0x23400B0 |= 7; // set CLKXDIV to 7
         }
     }
 
index cfd00dfe72874a508a7f476b617c2c0adf399edc..60978b7c04f269d7ec0e7528b53b9f3755d822f8 100644 (file)
@@ -48,10 +48,11 @@ All rights reserved.
 #define ASOP_IO_SOK                 (  0 )  // ok
 #define ASOP_IO_ERR_INV_PARAMS      ( -1 )  // error, invalid parameters
 #define ASOP_IO_ERR_IO_UNINIT       ( -2 )  // error, IO uninitialized
-#define ASOP_IO_ERR_MCASP_CFG       ( -3 )  // error, McASP configuration
-#define ASOP_IO_ERR_IOBUFF_INIT     ( -4 )  // error, IO Buff initialization
-#define ASOP_IO_ERR_IOPHY_INIT      ( -5 )  // error, IO Phy initialization
-#define ASOP_IO_ERR_OUTBUF_OVERFLOW ( -6 )  // error, Output buffer overflow
+#define ASOP_IO_ERR_INV_STATE       ( -3 )  // error, IO invalid state
+#define ASOP_IO_ERR_MCASP_CFG       ( -4 )  // error, McASP configuration
+#define ASOP_IO_ERR_IOBUFF_INIT     ( -5 )  // error, IO Buff initialization
+#define ASOP_IO_ERR_IOPHY_INIT      ( -6 )  // error, IO Phy initialization
+#define ASOP_IO_ERR_OUTBUF_OVERFLOW ( -7 )  // error, Output buffer overflow
 
 
 // Select Output devices