Page 2 of 2

Re: Using new I2S Driver

Posted: Wed Apr 09, 2014 8:22 pm
by Lemming
Yes, I'm pointing i2sPtr at the head of the i2s_rx_buf array for the half event and halfway into the array for the full event. If you'd rather, you can just change the memory compares to "memcmp(i2s_rx_buf, pattern, I2S_HALF_BUF*sizeof(int16_t))" for the half and "memcmp(&i2s_rx_buf[I2S_HALF_BUF], pattern, I2S_HALF_BUF*sizeof(int16_t))" for the full event.

Thanks, I appreciate the help.

Re: Using new I2S Driver

Posted: Thu Apr 10, 2014 9:59 am
by Giovanni
Hi,

I think I found the problem, please update from the repository and try again.

Giovanni

Re: Using new I2S Driver

Posted: Wed Apr 16, 2014 3:44 pm
by Lemming
Now I'm seeing a good sample, followed by a zero. This looks correct for stereo sound, but since I have mono input, this is probably a configuration issue on my end. Funny that the only issue was forgetting to set the word size on the peripheral end.

Thanks, Giovanni!