Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

Commit dc0d9e0

Browse files
committed
SOFT: Increase SRC playback topology buffer size
This patch increases the SRC source buffer to contain 5 periods of data (measured for 1 ms @ 48 kHz ). It fixes the issue in 176.4 kHz to 48 kHz playback conversion that the pipeline freezes with insufficient available data in source buffer for SRC to convert and too little free in buffer for host to fill another 48 frames. 176.4 kHz playback is currently the largest buffer size consumer due to non-steady in/out rate. The higher rate conversion 192 kHz to 48 kHz can operate with smaller size buffer due to steady in/out rate. Note: This has been only simulated in the host test bench since SRC playback does not run currently in real devices due to another issue. However since buffers simulation is accurate this should be a real issue. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 934a330 commit dc0d9e0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

topology/sof/pipe-src-playback.m4

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ include(`pipeline.m4')
1717
#
1818

1919
# Host "Passthrough Playback" PCM
20-
# with 4 sink and 0 source periods
21-
W_PCM_PLAYBACK(PCM_ID, Passthrough Playback, 4, 0, 2)
20+
# with 5 sink and 0 source periods
21+
W_PCM_PLAYBACK(PCM_ID, Passthrough Playback, 5, 0, 2)
2222

2323
#
2424
# SRC Configuration
@@ -28,11 +28,11 @@ W_VENDORTUPLES(media_src_tokens, sof_src_tokens, LIST(` ', `SOF_TKN_SRC_RATE_OU
2828

2929
W_DATA(media_src_conf, media_src_tokens)
3030

31-
# "SRC" has 4 source and 4 sink periods
32-
W_SRC(0, PIPELINE_FORMAT, 4, 4, media_src_conf, 2)
31+
# "SRC" has 5 source and 4 sink periods
32+
W_SRC(0, PIPELINE_FORMAT, 5, 4, media_src_conf, 2)
3333

3434
# Playback Buffers
35-
W_BUFFER(0, COMP_BUFFER_SIZE(4,
35+
W_BUFFER(0, COMP_BUFFER_SIZE(5,
3636
COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES),
3737
PLATFORM_HOST_MEM_CAP)
3838
W_BUFFER(1, COMP_BUFFER_SIZE(4,

0 commit comments

Comments
 (0)