]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: fsl_asrc: define functions for memory to memory usage
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 12 Dec 2024 07:45:05 +0000 (15:45 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 13 Dec 2024 08:57:07 +0000 (08:57 +0000)
commit8ea7d04a4e9e30876c9d8184b4b8e4cab33e0372
treee3f4d55df49fae3db432b9657ab2238867445475
parentf4425e3ab2f796d442a44f31262eade9b6427ff7
ASoC: fsl_asrc: define functions for memory to memory usage

ASRC can be used on memory to memory case, define several
functions for m2m usage.

m2m_prepare: prepare for the start step
m2m_start: the start step
m2m_unprepare: unprepare for stop step, optional
m2m_stop: stop step
m2m_check_format: check format is supported or not
m2m_calc_out_len: calculate output length according to input length
m2m_get_maxburst: burst size for dma
m2m_pair_suspend: suspend function of pair, optional.
m2m_pair_resume: resume function of pair
get_output_fifo_size: get remaining data size in FIFO

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Link: https://patch.msgid.link/20241212074509.3445859-3-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c
sound/soc/fsl/fsl_asrc.h
sound/soc/fsl/fsl_asrc_common.h