AnsweredAssumed Answered

I2S/SAI FIFO Transmitting

Question asked by Eddie Chang on Jul 31, 2014
Latest reply on Sep 5, 2014 by pbanta

Hi! guys,


I test sai_dma_demo example in MQX4.1, the platform are K60F120M and SGTL5000.


When I played 48kHz/24bit wav file from SD card, I found there is a for loop "for(i = 0; i < requests; i ++)" in "sh_audio.c", the variable "i" will stop on 3 and task stop on


    /*Waiting for there are empty blocks*/
    ioctl(device_ptr, IO_IOCTL_I2S_WAIT_TX_EVENT,NULL);


So I think it's because of data still in FIFO and isn't be transmitted.


Anybody know how to solve it?


Best regards,


Eddie Chang