From 40aea19e577c227aebc3536a912c34a4399b68a6 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Mon, 27 May 2019 16:10:32 +0300 Subject: [PATCH] topology: add more buffering to media pipe after src Currently we have 1.5 times buffering after SRC in media pipeline. This will not work for S24 or S32 playback as SRC will use the bigger buffers with non-integer sample rate conversions as 44.1kHz to 48kHz. So add as big buffer after SRC as before it. Signed-off-by: Jaska Uimonen --- tools/topology/sof/pipe-pcm-media.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/topology/sof/pipe-pcm-media.m4 b/tools/topology/sof/pipe-pcm-media.m4 index 0979c430367c..75a434b4a8ac 100644 --- a/tools/topology/sof/pipe-pcm-media.m4 +++ b/tools/topology/sof/pipe-pcm-media.m4 @@ -68,8 +68,8 @@ W_BUFFER(1,COMP_BUFFER_SIZE(4, COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES), PLATFORM_COMP_MEM_CAP) -# Buffer B2 is on fixed rate sink side of SRC. Set it 1.5 * rate. -W_BUFFER(2, COMP_BUFFER_SIZE(3, +# Buffer B2 is on fixed rate sink side of SRC. +W_BUFFER(2, COMP_BUFFER_SIZE(4, COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES), PLATFORM_COMP_MEM_CAP)