masayuki2009 opened a new pull request #1253:
URL: https://github.com/apache/incubator-nuttx/pull/1253


   ## Summary
   
   - In the previous implementation, cxd56_stop() checked the internal
   state before sending AUDIO_MSG_STOP to the message queue. However,
   if the worker thread took time to turn on AMP, cxd560_stop() was
   not able to send the message and caused a deadlock.
   
   - This commit fixes this issue by always sending AUDIO_MSG_STOP
   regardless of the internal state.
   
   ## Impact
   
   - This PR affects cxd56.c audio driver.
   
   ## Testing
   
   - I tested this PR with nxrecorder and nxplayer with spresense.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to