From 7fa6ad15f4404dac2ea26d2503bf49f666c443a9 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 12 Aug 2025 19:22:14 +0300 Subject: [PATCH] Tools: Topology: SRC: Increase 48 kHz capture source buffer size This patch fixes the issue in nocodec topologies with 48 kHz to 11.025 kHz capture. The root cause for the glitches is overrun of the capture DAI sink buffer. The currently used fractions in SRC in the particular conversion consume data in blocks of 80 frames. Depending on copy() run the consumption is 80 frames or zero frames. the normal 96 frames (2 * 48) buffer cannot fit all data from DAI when the previous SRC copy has not consumed enough data. The increase of ibs from default value of 384 to 512 results to DAI buffer of 128 frames for S32_LE stereo data at 48 kHz. It seems to be sufficiently large for the input buffer irregularity to produce clean captured audio. Signed-off-by: Seppo Ingalsuo --- .../include/components/src_format_s32_convert_from_48k.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf b/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf index 5cd13dae1492..7982d2d171ec 100644 --- a/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf +++ b/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf @@ -39,5 +39,6 @@ in_rate 48000 in_bit_depth 32 in_valid_bit_depth 32 + ibs 512 } ]