]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: fsl_asrc_m2m: only handle pairs for m2m in the suspend
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 20 Jan 2025 08:19:37 +0000 (16:19 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jan 2025 13:50:30 +0000 (13:50 +0000)
commitd12ca6d4c31bf974ecc80e36761488f41d05d18b
treed3673388aa1c6cf94e8fb67bded66b54009708fa
parentfee89ddd76e45841a2b01d87b481bc02483f4572
ASoC: fsl_asrc_m2m: only handle pairs for m2m in the suspend

ASRC memory to memory cases and memory to peripheral cases are
sharing the same pair pools, the pairs got for m2m suspend
function may be used for memory to peripheral, which is handled
memory to peripheral driver and can't be handled in
memory to memory suspend function.

Use the "pair->dma_buffer" as a flag for memory to memory case,
when it is allocated, handle the suspend operation for the related
pairs.

Fixes: 24a01710f627 ("ASoC: fsl_asrc_m2m: Add memory to memory function")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20250120081938.2501554-2-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc_m2m.c