summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17800f5)
raw | patch | inline | side by side (parent: 17800f5)
author | Frank Livingston <frank-livingston@ti.com> | |
Tue, 5 Jun 2018 19:06:09 +0000 (14:06 -0500) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Tue, 5 Jun 2018 19:06:09 +0000 (14:06 -0500) |
pasdk/test_dsp/framework/audioStreamOutIo.c | patch | blob | history |
diff --git a/pasdk/test_dsp/framework/audioStreamOutIo.c b/pasdk/test_dsp/framework/audioStreamOutIo.c
index 9562fed315c93cb63067ceb924c3a1dca2053584..ccf3fd84f0fc93d67619094f1a090169c09251e3 100644 (file)
mcaspLLDconfig *pReqLldCfg;
Ptr mcaspChanHandle;
Aud_STATUS status;
+ UInt postedEvents;
if ((pOut->hIoBuff == NULL) || (pOut->hIoPhy == NULL) || (!d10Initialized))
{
// Deactivate currently active Output device
if (pOut->hMcaspChan != NULL)
{
-
// check McASP LLD control API
mcaspControlChan(pOut->hMcaspChan, MCASP_CHAN_RESET, NULL);
// Delete McASP LLD channel
return ASOP_IO_ERR_MCASP_CFG;
}
+ // Clear (drop) already posted Output data events
+ postedEvents = Event_getPostedEvents(gAsotEvtHandle);
+ while ((postedEvents & Evt_Id_AsotTxMcaspEdma) != 0)
+ {
+ Event_pend(gAsotEvtHandle, Event_Id_NONE, Evt_Id_AsotTxMcaspEdma, 0);
+ postedEvents = Event_getPostedEvents(gAsotEvtHandle);
+ }
+
pOut->hMcaspChan = NULL; // reset active McASP LLD handle
pOut->pLldCfg->hMcaspChan = NULL; // reset McASP LLD handle for active McASP LLD configuration
pOut->pLldCfg = NULL; // reset pointer to active McASP LLD configuration