ASoC: mxs: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag
Subsystems (3)
PATCH 1/1 ASoC: mxs: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag
Since commit 7b11304 ("dma: mxs-dma: Report correct residue for cyclic DMA") the mxs dmaengine driver has support for residue reporting. So there is no need to specify the SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag anymore. This allows a finer grained resolution for the PCM pointer as well as avoids the race condition that can occur with the period counting that is used when the dmaengine driver does not support residue reporting.
---
I don't have the hardware, so only compiled tested. But I assume that residue reporting was added to the driver for exactly this.
--- sound/soc/mxs/mxs-pcm.c | 1 - 1 file changed, 1 deletion(-)
sound/soc/mxs/mxs-pcm.c +0 -1
@@ -57,7 +57,6 @@ static const struct snd_dmaengine_pcm_config mxs_dmaengine_pcm_config = {int mxs_pcm_platform_register (struct device *dev) {return devm_snd_dmaengine_pcm_register (dev, &mxs_dmaengine_pcm_config, -SND_DMAENGINE_PCM_FLAG_NO_RESIDUE |SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX ); }EXPORT_SYMBOL_GPL (mxs_pcm_platform_register);
Signature · 1 line
1.8.0
Quoted 7 lines · Lars-Peter Clausen
Since commit 7b11304 ("dma: mxs-dma: Report correct residue for cyclic DMA") the mxs dmaengine driver has support for residue reporting. So there is no need to specify the
SND_DMAENGINE_PCM_FLAG_NO_RESIDUEflag anymore. This allows a finer grained resolution for the PCM pointer as well as avoids the race condition that can occur with the period counting that is used when the dmaengine driver does not support residue reporting.
Quoted 5 lines
Signed-off-by Lars-Peter Clausen <[email protected]>---
I don't have the hardware, so only compiled tested. But I assume that residue reporting was added to the driver for exactly this.
---
Quoted 2 lines · Lars-Peter Clausen
Since commit 7b11304 ("dma: mxs-dma: Report correct residue for cyclic DMA") the mxs dmaengine driver has support for residue reporting. So there is no need
Applied, thanks.