]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl_rpmsg: Allocate a smaller buffer size for capture stream
authorChancel Liu <chancel.liu@nxp.com>
Mon, 21 Apr 2025 10:57:01 +0000 (19:57 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 1 May 2025 20:38:54 +0000 (05:38 +0900)
commit2056d7a7df5d9a08144671afccb6970ccd595b89
tree7637168e0059faf11c95b73fe3328ee4f6b27f9a
parent17fa55fe77d8234131ce0728a735da6dea19acd5
ASoC: fsl_rpmsg: Allocate a smaller buffer size for capture stream

If both playback and capture streams have large buffer size in low power
audio case, the total size will exceed the maximum buffer size for this
sound card.

Capture stream doesn't need so large buffer size in fact. So calculate
a reasonable smaller buffer size and allocate it for capture stream.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20250421105701.2273588-2-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_rpmsg.c
sound/soc/fsl/fsl_rpmsg.h
sound/soc/fsl/imx-pcm-rpmsg.c