mirror of https://github.com/thesofproject/sof.git
Tools: Test: Topology: Set DAI buffer periods to 3 for SRC tests
Test pipelines with SRC due internal block processing constraints need this to avoid fail due to insufficient buffer. Other pipelines continue to use 2 buffer periods. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
1df8cf856a
commit
0feff0b3e4
|
@ -60,18 +60,21 @@ PIPELINE_PCM_ADD(sof/pipe-TEST_PIPE_NAME-capture.m4,
|
|||
# SSP port TEST_DAI_PORT is our only pipeline DAI
|
||||
#
|
||||
|
||||
# playback DAI is SSP TEST_DAI_PORT using 2 periods
|
||||
# Use 3 periods for SRC DAI buffer, otherwise 2 periods
|
||||
ifelse(TEST_PIPE_NAME, `src', `define(TEST_DAI_PERIODS, `3')', `define(TEST_DAI_PERIODS, `2')')
|
||||
|
||||
# playback DAI is SSP TEST_DAI_PORT using TEST_DAI_PERIODS periods
|
||||
# schedule 1000us on core 0 with priority 0
|
||||
DAI_ADD(sof/pipe-dai-playback.m4,
|
||||
1, TEST_DAI_TYPE, TEST_DAI_PORT, TEST_DAI_LINK_NAME,
|
||||
PIPELINE_SOURCE_1, 2, TEST_DAI_FORMAT,
|
||||
PIPELINE_SOURCE_1, TEST_DAI_PERIODS, TEST_DAI_FORMAT,
|
||||
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
|
||||
|
||||
# capture DAI is SSP TEST_DAI_PORT using 2 periods
|
||||
# capture DAI is SSP TEST_DAI_PORT using TEST_DAI_PERIODS periods
|
||||
# schedule 1000us on core 0 with priority 0
|
||||
DAI_ADD(sof/pipe-dai-capture.m4,
|
||||
2, TEST_DAI_TYPE, TEST_DAI_PORT, TEST_DAI_LINK_NAME,
|
||||
PIPELINE_SINK_2, 2, TEST_DAI_FORMAT,
|
||||
PIPELINE_SINK_2, TEST_DAI_PERIODS, TEST_DAI_FORMAT,
|
||||
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
|
||||
|
||||
# PCM Passthrough
|
||||
|
|
|
@ -55,12 +55,15 @@ PIPELINE_PCM_ADD(sof/pipe-TEST_PIPE_NAME-capture.m4,
|
|||
# DAI configuration
|
||||
#
|
||||
# SSP port TEST_DAI_PORT is our only pipeline DAI
|
||||
#
|
||||
# capture DAI is SSP TEST_DAI_PORT using 2 periods
|
||||
|
||||
# Use 3 periods for SRC DAI buffer, otherwise 2 periods
|
||||
ifelse(TEST_PIPE_NAME, `src', `define(TEST_DAI_PERIODS, `3')', `define(TEST_DAI_PERIODS, `2')')
|
||||
|
||||
# capture DAI is SSP TEST_DAI_PORT using TEST_DAI_PERIODS periods
|
||||
# schedule 1000us on core 0 with priority 0
|
||||
DAI_ADD(sof/pipe-dai-capture.m4,
|
||||
2, TEST_DAI_TYPE, TEST_DAI_PORT, TEST_DAI_LINK_NAME,
|
||||
PIPELINE_SINK_2, 2, TEST_DAI_FORMAT,
|
||||
PIPELINE_SINK_2, TEST_DAI_PERIODS, TEST_DAI_FORMAT,
|
||||
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
|
||||
|
||||
# PCM Passthrough
|
||||
|
|
|
@ -152,11 +152,14 @@ SectionGraph."pipe-sof-fourth-pipe" {
|
|||
|
||||
# DAI configuration
|
||||
|
||||
# playback DAI is SSP TEST_DAI_PORT using 2 periods
|
||||
# Use 3 periods for SRC DAI buffer, otherwise 2 periods
|
||||
ifelse(TEST_PIPE_NAME, `src', `define(TEST_DAI_PERIODS, `3')', `define(TEST_DAI_PERIODS, `2')')
|
||||
|
||||
# playback DAI is SSP TEST_DAI_PORT using TEST_DAI_PERIODS periods
|
||||
# Buffers use s24le format, with 48 frame per 1000us on core 0 with priority 0
|
||||
DAI_ADD(sof/pipe-dai-playback.m4,
|
||||
1, TEST_DAI_TYPE, TEST_DAI_PORT, TEST_DAI_LINK_NAME,
|
||||
PIPELINE_SOURCE_1, 2, TEST_DAI_FORMAT,
|
||||
PIPELINE_SOURCE_1, TEST_DAI_PERIODS, TEST_DAI_FORMAT,
|
||||
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
|
||||
|
||||
ifdef(`TEST_HAS_PIPE2',
|
||||
|
|
Loading…
Reference in New Issue