From ca44520dbf4b494db4f3b38d498a179165dd431d Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 8 Sep 2020 17:24:18 +0800 Subject: MLK-24753-2: ASoC: fsl_esai_mix: get pointer from dma driver directly Previously update pointer in mix function according to dma callback, which is not accurate for the callback maybe triggerred very late, that cause the read pointer and write pointer point to same period, then there is noise in output. So get pointer directly from dma driver to avoid such issue. Signed-off-by: Shengjiu Wang Reviewed-by: Peng Zhang --- sound/soc/fsl/fsl_esai_mix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/soc/fsl/fsl_esai_mix.h') diff --git a/sound/soc/fsl/fsl_esai_mix.h b/sound/soc/fsl/fsl_esai_mix.h index ee69d2daf70c..c7d2c74d0bcd 100644 --- a/sound/soc/fsl/fsl_esai_mix.h +++ b/sound/soc/fsl/fsl_esai_mix.h @@ -31,6 +31,7 @@ struct fsl_esai_mix { struct workqueue_struct *mix_wq; struct work_struct work; struct snd_pcm_substream *substream; + dma_cookie_t cookie; u32 buffer_read_offset; u32 buffer_write_offset; u32 buffer_bytes; -- cgit v1.2.3