I'm trying to get audio working on a custom AM180x board. When I record audio and then play it back on a PC, the audio will skip back in time several times during a 10 second recording. However, if I put in delays (in the form of debugging spits to the console) in the function davinci_pcm_pointer, then audio recording starts working. So, it appears to be some sort of timing issue. Where is the timing of data transfer between the McASP and the audio codec set?
Thanks,
David