2017-08-09 21:54:03 +08:00
|
|
|
# Low Latency Passthrough Pipeline and PCM
|
|
|
|
#
|
|
|
|
# Pipeline Endpoints for connection are :-
|
|
|
|
#
|
|
|
|
# host PCM_P --> B0 --> sink DAI0
|
|
|
|
|
|
|
|
# Include topology builder
|
|
|
|
include(`local.m4')
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Components and Buffers
|
|
|
|
#
|
|
|
|
|
|
|
|
# Host "Passthrough Playback" PCM uses pipeline DMAC and channel
|
|
|
|
# with 2 sink and 0 source periods
|
|
|
|
W_PCM_PLAYBACK(Passthrough Playback, PIPELINE_DMAC, PIPELINE_DMAC_CHAN, 2, 0, 2)
|
|
|
|
|
2017-08-22 03:26:05 +08:00
|
|
|
# Playback Buffers
|
2017-08-09 21:54:03 +08:00
|
|
|
W_BUFFER(0, COMP_BUFFER_SIZE(2,
|
2018-03-05 21:38:12 +08:00
|
|
|
COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES),
|
|
|
|
PLATFORM_PASS_MEM_CAP)
|
2017-08-09 21:54:03 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# DAI definitions
|
|
|
|
#
|
2017-12-07 09:41:05 +08:00
|
|
|
W_DAI_OUT(DAI_TYPE, DAI_INDEX, DAI_FORMAT, 0, 2, 2, dai0p_plat_conf)
|
2017-08-09 21:54:03 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# DAI pipeline - always use 0 for DAIs
|
|
|
|
#
|
2017-09-11 23:03:57 +08:00
|
|
|
W_PIPELINE(N_DAI_OUT, SCHEDULE_DEADLINE, SCHEDULE_PRIORITY, SCHEDULE_FRAMES, SCHEDULE_CORE, 0, pipe_dai_schedule_plat)
|
2017-08-09 21:54:03 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Pipeline Graph
|
|
|
|
#
|
2017-08-22 03:26:05 +08:00
|
|
|
# host PCM_P --> B0 --> sink DAI0
|
2017-08-09 21:54:03 +08:00
|
|
|
|
|
|
|
SectionGraph."pipe-pass-playback-PIPELINE_ID" {
|
|
|
|
index STR(PIPELINE_ID)
|
|
|
|
|
|
|
|
lines [
|
2017-10-02 22:28:24 +08:00
|
|
|
dapm(N_PCMP, Passthrough Playback PCM_ID)
|
|
|
|
dapm(N_BUFFER(0), N_PCMP)
|
2017-08-09 21:54:03 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-12-12 06:00:51 +08:00
|
|
|
#
|
|
|
|
# Pipeline Source and Sinks
|
|
|
|
#
|
|
|
|
indir(`define', concat(`PIPELINE_SOURCE_', PIPELINE_ID), N_BUFFER(0))
|
|
|
|
indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Playback PCM_ID)
|
2017-08-09 21:54:03 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# PCM Configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
SectionPCMCapabilities.STR(Passthrough Playback PCM_ID) {
|
|
|
|
|
2017-09-08 19:51:25 +08:00
|
|
|
formats "S32_LE,S24_LE,S16_LE"
|
2017-08-09 21:54:03 +08:00
|
|
|
rate_min "48000"
|
|
|
|
rate_max "48000"
|
|
|
|
channels_min "2"
|
|
|
|
channels_max "4"
|
|
|
|
periods_min "2"
|
2017-08-17 03:34:01 +08:00
|
|
|
periods_max "16"
|
2017-08-09 21:54:03 +08:00
|
|
|
period_size_min "192"
|
|
|
|
period_size_max "16384"
|
2017-08-17 03:34:01 +08:00
|
|
|
buffer_size_min "65536"
|
2017-08-09 21:54:03 +08:00
|
|
|
buffer_size_max "65536"
|
|
|
|
}
|