masayuki2009 opened a new pull request #1222: URL: https://github.com/apache/incubator-nuttx/pull/1222
## Summary - This PR consists for 3 commits for spresense audio. - The first commit handles the final audio buffer to send stop message. In previous implementation, the final audio buffer was not handled. Thus, audio driver always stopped after detecting dma underrun. With this commit, audio driver stops correctly at the end of audio file. - The second commit add audio buffering feature to audio/cxd56. In this implementation, CXD56_DEV_STATE_BUFFERING is newly added to distinguish from pause state for buffering. And if pending queue is empty in cxd56_start_dma(), it sends AUDIO_MSG_USER to the worker thread to start buffering. In the worker thread, it sets CXD56_DEV_STATE_BUFFERING when received AUDIO_MSG_USER. Then if AUDIO_MSG_ENQUEUE received, it checks conditions such as pendingq exceeds the threshold or pendingq contains the final buffer and if it matches the condition then start dma again by calling cxd56_resume(). - The third commit adjusts audio buffer (4KB x 32 -> 2KB x 32) and prealloc mq size (4 -> 32) for audio streaming with wifi. ## Impact - This PR affects spresense audio driver and wifi configuration. ## Testing - I tested this PR with nxplayer for both local file playback and http audio streaming. ---------------------------------------------------------------- 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]
