Part Number:PROCESSOR-SDK-OMAPL138
I use PROCESSOR-SDK-RTOS-OMAPL138 05_02_00_10 on OMAPL138-LCDK
When I changed example to sine generating I ran into a wrong sampling rate problem.
1) In McASP master mode (MCASP_MASTER definition) real sampling rate is about 46 KHz. It doesn't matter in loopback but if we change example to signal generating it becomes important.
2) In McASP slave mode real sampling rate is about 68 KHz.
Setting of sampling rate by driver is incorrect.
I resolved second problem in McASP slave mode by fixing AIC31SampleRateConfig() in aic3106_if.c for 48KHz sampling rate:
pllPval = 2;
pllRval = 1;
pllJval = 8;
pllDval = 0;
That values calculated according to "TLV320AIC3106 (SLAS509F) 11.3.3.1 Audio Clock Generation"
P.S.: I don't need help for mentioned above because I already solve problems important for me, just reported a bugs.
Thanks. Petr.