I want to enable the MCBSP loopjob buffers but I don't know how to verify whether they are enabled. The main problem is that I am using mcbsp in SIO_ISSUE_RECLAIM mode with 4 tx and rx buffers. My Input/read buffers seem to work ok but after I issue all 4 tx buffers I am only able to reclaim one or two of the buffers.
I check whether any of the buffers are ready with a call to SIO_ready(McbspOutHandle) before I go ahead to do a reclaim. After the first two or so successful reclaims a call to SIO_reclaim returns -9 and thereafter all calls to SIO_ready return false. I suppose if I am able to get the loopjob buffers configured correctly that it will help. I have also realized that sometimes this seems to happen after I get XEMPTY status in the SPCR.
I am using Mcbsp in slave mode with external clk and frame sync signals. These signals are always present so I should be able to transmit data. I suppose that if the tx loop job is running correctly and I am not transmitting all zeros from my loopjob buffer, I should be able to see the data on the scope but I don't and that is why I can't tell whether my loop job buffers are working correctly. How can I tell that the loopjob buffers are configured and are being used?
To enable loop job I recompiled the mcbsp library with Mcbsp_LOOPJOB_ENABLED defined. I have tried both 1.passing my own buffer/length or 2.leaving the internal loopjob buffer field in the Mcbsp_ChanParams as NULL and the length 0 but both ways didn't help. What is all that I need to do to enable the loopjob buffers?
I am using psp driver 01_30_01.
Any help is appreciated.