]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: fsl: fsl_qmc_audio: Split channel buffer and PCM pointer handling
authorHerve Codina <herve.codina@bootlin.com>
Mon, 1 Jul 2024 11:30:30 +0000 (13:30 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2024 11:24:54 +0000 (12:24 +0100)
commit42212b2ce8b1182d536452eee2880d2de7cce059
tree8c3b21f1ea245af323fe4212369d089aa155cc5c
parent86dd725b57a88869acfe15b0405937450d0aef30
ASoC: fsl: fsl_qmc_audio: Split channel buffer and PCM pointer handling

The driver mixes some internal values for channel DMA buffer handling
and PCM pointer handling. In the currently supported interleaved mode,
this mix does not lead to any issues but in order to prepare the
support for the non-interleaved mode, having them clearly separated will
ease the support and avoid additional computation to convert values used
in channel DMA buffer management in values usable for PCM pointer.

Use a specific set of variable for PCM pointer handling and an other set
for channel DMA buffer.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20240701113038.55144-4-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_qmc_audio.c