2017-09-11 23:38:14 +08:00
|
|
|
# Low Latency Passthrough with volume Pipeline and PCM
|
|
|
|
#
|
|
|
|
# Pipeline Endpoints for connection are :-
|
|
|
|
#
|
|
|
|
# host PCM_P --> SRC --> sink DAI0
|
|
|
|
|
|
|
|
# Include topology builder
|
2018-03-06 06:17:12 +08:00
|
|
|
include(`utils.m4')
|
|
|
|
include(`src.m4')
|
|
|
|
include(`buffer.m4')
|
|
|
|
include(`pcm.m4')
|
|
|
|
include(`dai.m4')
|
|
|
|
include(`pipeline.m4')
|
2017-09-11 23:38:14 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Components and Buffers
|
|
|
|
#
|
|
|
|
|
2018-06-13 04:01:56 +08:00
|
|
|
# Host "Passthrough Playback" PCM
|
2018-08-21 18:18:50 +08:00
|
|
|
# with 3 sink and 0 source periods
|
|
|
|
W_PCM_PLAYBACK(PCM_ID, Passthrough Playback, 3, 0, 2)
|
2017-09-11 23:38:14 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# SRC Configuration
|
|
|
|
#
|
|
|
|
|
2018-03-06 05:58:32 +08:00
|
|
|
W_VENDORTUPLES(media_src_tokens, sof_src_tokens, LIST(` ', `SOF_TKN_SRC_RATE_OUT "48000"'))
|
2017-09-11 23:38:14 +08:00
|
|
|
|
2018-03-06 05:58:33 +08:00
|
|
|
W_DATA(media_src_conf, media_src_tokens)
|
2017-09-11 23:38:14 +08:00
|
|
|
|
2018-08-21 18:18:50 +08:00
|
|
|
# "SRC" has 3 source and 3 sink periods
|
|
|
|
W_SRC(0, PIPELINE_FORMAT, 3, 3, media_src_conf, 2)
|
2017-09-11 23:38:14 +08:00
|
|
|
|
|
|
|
# Playback Buffers
|
2018-08-21 18:18:50 +08:00
|
|
|
W_BUFFER(0, COMP_BUFFER_SIZE(3,
|
2018-03-05 21:38:12 +08:00
|
|
|
COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES),
|
|
|
|
PLATFORM_HOST_MEM_CAP)
|
2018-08-21 18:18:50 +08:00
|
|
|
W_BUFFER(1, COMP_BUFFER_SIZE(3,
|
2018-03-05 21:38:12 +08:00
|
|
|
COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES),
|
|
|
|
PLATFORM_DAI_MEM_CAP)
|
2017-09-11 23:38:14 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Pipeline Graph
|
|
|
|
#
|
|
|
|
# host PCM_P --> B0 --> SRC 0 --> B1 --> sink DAI0
|
|
|
|
|
2018-03-06 05:58:30 +08:00
|
|
|
P_GRAPH(pipe-pass-src-playback-PIPELINE_ID, PIPELINE_ID,
|
|
|
|
LIST(` ',
|
2018-03-17 01:17:33 +08:00
|
|
|
`dapm(N_PCMP(PCM_ID), Passthrough Playback PCM_ID)',
|
|
|
|
`dapm(N_BUFFER(0), N_PCMP(PCM_ID))',
|
2018-03-06 05:58:30 +08:00
|
|
|
`dapm(N_SRC(0), N_BUFFER(0))',
|
|
|
|
`dapm(N_BUFFER(1), N_SRC(0))'))
|
2017-09-11 23:38:14 +08:00
|
|
|
|
2017-12-13 23:50:41 +08:00
|
|
|
#
|
|
|
|
# Pipeline Source and Sinks
|
|
|
|
#
|
|
|
|
indir(`define', concat(`PIPELINE_SOURCE_', PIPELINE_ID), N_BUFFER(1))
|
|
|
|
indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Playback PCM_ID)
|
2017-09-11 23:38:14 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# PCM Configuration
|
|
|
|
#
|
|
|
|
|
2018-09-22 04:19:45 +08:00
|
|
|
PCM_CAPABILITIES(Passthrough Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 8000, 192000, 2, PIPELINE_CHANNELS, 2, 16, 192, 16384, 65536, 65536)
|
2017-09-11 23:38:14 +08:00
|
|
|
|