SAI1 - SAI5 different behavior on iMX8M Mini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SAI1 - SAI5 different behavior on iMX8M Mini

494 Views
volker_floeder
Contributor I

I am currently working on a project using the iMX8M Mini to receive audio data from an ADC using ALSA and SAI in slave mode. However, everything works fine when I use SAI1, but I have problems when I use SAI5 with the very same settings. I am loosing a lot of frames and I observe gaps of several seconds.

My sampling frequency is 23438 Hz, using a small test app with SAI1, I get

ALSA read test V0.1
access type = SND_PCM_ACCESS_RW_INTERLEAVED
Requested periodsize of 128 frames, got 128
Needed buffersize is 1024 frames
Start capturing...
000004738432^CCtrl-C: In 202.195 seconds 4740608 frames received (23446Hz) with 0 errors

the same with SAI5, I get

ALSA read test V0.1
access type = SND_PCM_ACCESS_RW_INTERLEAVED
Requested periodsize of 128 frames, got 128
Needed buffersize is 1024 frames
Start capturing...
000000017792 Found 3989ms inter-period delay after 4805ms runtime
000000432512 Found 3910ms inter-period delay after 26502ms runtime
000000744832 Found 3751ms inter-period delay after 43659ms runtime
000001249152 Found 3870ms inter-period delay after 69252ms runtime
000001528192 Found 4031ms inter-period delay after 85229ms runtime
000001753472^CCtrl-C: In 96.197 seconds 1754752 frames received (18241Hz) with 0 errors

Do you have any idea of what might go wrong here?

I am using Yocto Sumo - imx_4.14.98_2.0.0_ga

 

Regards,
Volker

0 Kudos
Reply
0 Replies