W-Mai opened a new pull request, #2830:
URL: https://github.com/apache/nuttx-apps/pull/2830

   ## Summary
   
   - Ensure `AUDIO_STOP` via `ioctrl` is followed by `mq_send STOP` without 
race conditions.
   - Modify loop condition to correctly handle `running = false` upon receiving 
STOP signal.
   - Resolve potential issue where `AUDIO_MSG_DEQUEUE` could still accept 
buffers after STOP signal due to timing.
   
   Before:
   - `nxaudio_stop` would call `ioctrl AUDIO_STOP` followed by `mq_send STOP`, 
which might lead to `AUDIO_MSG_DEQUEUE` accepting buffers after STOP.
   
   After:
   - Synchronized the sequence of `ioctrl AUDIO_STOP` and `mq_send STOP` to 
prevent buffer addition after STOP.
   - Enhanced loop condition to accurately reflect the STOP state.
   
   ## Impact
   N/A
   
   ## Testing
   N/A
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to