Finally have audio capture working on beaglebone. The code requires a lot of cleaning up and optimization. Audio capture happens in realtime by programming one of the two PRUs (microcontrollers on the processor SoC).
Helpful links for getting this working:
2. TI PRU Code Generation Tools
And some sample capture data.
Graph plotted using gnuplot.