ASRC driver would read the sample number of ASRC output FIFO to fetch
the data from ASRC output FIFO. However, SDMA's fetching operation may
not finished before ASRC's reading. In this case, ASRC driver may read a
error data from the register.
In this patch, add delay before reading ASRC FIFO status to prevent
noise.
Signed-off-by: Chen Liangjun <b36089@freescale.com>
u16 *index = params->output_last_period.dma_vaddr;
t_size = 0;
+ udelay(100);
size = asrc_get_output_FIFO_size(params->index);
while (size) {
for (i = 0; i < size; i++) {
u32 *index = params->output_last_period.dma_vaddr;
t_size = 0;
+ udelay(100);
size = asrc_get_output_FIFO_size(params->index);
while (size) {
for (i = 0; i < size; i++) {