You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/05/09 04:46:49 UTC

[GitHub] [mynewt-core] stuffmatic commented on issue #2585: nrf52 i2s examples?

stuffmatic commented on issue #2585:
URL: https://github.com/apache/mynewt-core/issues/2585#issuecomment-835678729


   To answer my own question, I got I2S output working by enqueueing the two buffers immediately after calling `i2s_open`, which causes `sample_buffer_ready_cb` to be called as expected.
   
   ```
   struct i2s_sample_buffer *buffer1 = &buffer_pool.buffers[0];
   buffer1->sample_count = buffer1->capacity;
   i2s_buffer_put(&i2s, buffer1);
   struct i2s_sample_buffer *buffer2 = &buffer_pool.buffers[1];
   buffer2->sample_count = buffer2->capacity;
   i2s_buffer_put(&i2s, buffer2);
   ```


-- 
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:
users@infra.apache.org