Skip to content
Commit d9f2a202 authored by Arnaud Mouiche's avatar Arnaud Mouiche Committed by Mark Brown
Browse files

ASoC: fsl_ssi: Fix samples being dropped at Playback startup



If the capture is already running while playback is started, it is highly
probable (>80% in a 8 channels scenario) that samples are lost between
the DMA and TX fifo.

The reason is that SIER.TDMAE is set before STCR.TFEN0, leaving a time
window where the FIFO doesn't receive the samples written by the DMA.

This particular case happened only if capture is already enabled as
SCR.SSIEN is already set at the playback startup instant.

Signed-off-by: default avatarArnaud Mouiche <arnaud.mouiche@invoxia.com>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Tested-by: default avatarCaleb Crome <caleb@crome.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0096b693
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment