]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: fsl: fsl_qmc_audio: Introduce qmc_audio_pcm_{read,write}_submit()
authorHerve Codina <herve.codina@bootlin.com>
Mon, 1 Jul 2024 11:30:32 +0000 (13:30 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2024 11:24:56 +0000 (12:24 +0100)
commit33a6969fbc653f25d5204b17fb67d5a21e6295e6
tree5675ab11f1cec233d13e6f6f7409530ecd5d8f5b
parent5e51a1f9dfd90de6e44cfb5340d48263f9e8f8d8
ASoC: fsl: fsl_qmc_audio: Introduce qmc_audio_pcm_{read,write}_submit()

Submitting data to QMC channels is done in several places: transfer
completions and DAI start. The operation done is simple and consist in
one function call.

With the future introduction of support for non-interleaved mode,
submitting data will be more complex.

To avoid copy/paste of code in several places, introduce
qmc_audio_pcm_{read,write}_submit() whose goal is to handle this
data submission.

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