I2S: dma_buf_count and dma_buf_len values for receive?
Posted: Mon May 29, 2017 2:31 am
I'm trying to understand how to determine the values for dma_buf_count and dma_buf_len when receiving (or transmitting...) I2S data.
I've read through the i2s_example_main.c, and understand how to calculate the values if I'm synthesizing a waveform, but I don't understand how to determine the values for data from something like an I2S microphone.
The sample rate is 32,000 Hz, using a 32-bit word, with both left and right channels. What sort of values would be reasonable in this case? Is there a formula for this?
Thanks in advance.
I've read through the i2s_example_main.c, and understand how to calculate the values if I'm synthesizing a waveform, but I don't understand how to determine the values for data from something like an I2S microphone.
The sample rate is 32,000 Hz, using a 32-bit word, with both left and right channels. What sort of values would be reasonable in this case? Is there a formula for this?
Thanks in advance.