You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "simonatoaca (via GitHub)" <gi...@apache.org> on 2024/02/20 09:06:11 UTC

[PR] esp32-sparrow-kit: Add I2S support for the board's microphone [nuttx]

simonatoaca opened a new pull request, #11725:
URL: https://github.com/apache/nuttx/pull/11725

   ## Summary
   I added I2S support to a custom board (esp32-sparrow-kit) which uses 24-bit I2S for the microphone. I also fixed a segmentation fault that occured in esp32_i2s.c, because the audio sample buffer of 8192 bytes is not a multiple of 3 (number of bytes per sample in 24-bit i2s) and sooner or later a bad memory access happened.  Surely, one could make the buffer size a multiple of 3, but I thought it was important for the code to work for any buffer size.
   I am also reporting the number of audio channels in audio_i2s.c, because otherwise nxrecorder would throw an error.
   
   ## Testing
   Used nxrecorder to record audio onto an SD card.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] esp32-sparrow-kit: Add I2S support for the board's microphone [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #11725:
URL: https://github.com/apache/nuttx/pull/11725


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org