summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_esai_mix.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-09-08 17:24:18 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-09-10 13:47:52 +0800
commitca44520dbf4b494db4f3b38d498a179165dd431d (patch)
tree6817d1775a5263a875fe6b3c267403c0261e191d /sound/soc/fsl/fsl_esai_mix.h
parenta38e0a4eddab3196317501081ccc29276c6c3906 (diff)
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 <shengjiu.wang@nxp.com> Reviewed-by: Peng Zhang <peng.zhang_8@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_esai_mix.h')
-rw-r--r--sound/soc/fsl/fsl_esai_mix.h1
1 files changed, 1 insertions, 0 deletions
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;