summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 270ec63)
raw | patch | inline | side by side (parent: 270ec63)
author | Frank Livingston <frank-livingston@ti.com> | |
Wed, 6 Jun 2018 19:03:22 +0000 (14:03 -0500) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Wed, 6 Jun 2018 19:03:22 +0000 (14:03 -0500) |
pasdk/test_dsp/framework/audioStreamOutIo.c | patch | blob | history | |
pasdk/test_dsp/framework/audioStreamOutIo.h | patch | blob | history |
diff --git a/pasdk/test_dsp/framework/audioStreamOutIo.c b/pasdk/test_dsp/framework/audioStreamOutIo.c
index ccf3fd84f0fc93d67619094f1a090169c09251e3..fbc05c0d78720a5b21f68ec10578d708b3c3b1ab 100644 (file)
pOut->stride = pReqLldCfg->mcaspChanParams->noOfSerRequested *
pReqLldCfg->mcaspChanParams->noOfChannels;
}
+ else
+ {
+ return ASOP_IO_ERR_INV_STATE;
+ }
}
else
{
}
#endif // FL, New IO
// FL: ugly little experiment
- //*(volatile UInt32 *)0x23400B0 |= 7;
+ //*(volatile UInt32 *)0x23400B0 |= 7; // set CLKXDIV to 7
}
}
diff --git a/pasdk/test_dsp/framework/audioStreamOutIo.h b/pasdk/test_dsp/framework/audioStreamOutIo.h
index cfd00dfe72874a508a7f476b617c2c0adf399edc..60978b7c04f269d7ec0e7528b53b9f3755d822f8 100644 (file)
#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