58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
# Capture Passthrough Pipeline and PCM
|
|
#
|
|
# Pipeline Endpoints for connection are :-
|
|
#
|
|
# host PCM_C <-- B0 <-- sink DAI0
|
|
|
|
# Include topology builder
|
|
include(`utils.m4')
|
|
include(`buffer.m4')
|
|
include(`pcm.m4')
|
|
include(`dai.m4')
|
|
include(`pipeline.m4')
|
|
|
|
#
|
|
# Components and Buffers
|
|
#
|
|
|
|
# Host "Passthrough Capture" PCM uses pipeline DMAC and channel
|
|
# with 0 sink and 2 source periods
|
|
W_PCM_CAPTURE(Passthrough Capture, PIPELINE_DMAC, PIPELINE_DMAC_CHAN, 0, 2, 2)
|
|
|
|
# Capture Buffers
|
|
W_BUFFER(0, COMP_BUFFER_SIZE(2,
|
|
COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES),
|
|
PLATFORM_PASS_MEM_CAP)
|
|
|
|
#
|
|
# DAI definitions
|
|
#
|
|
W_DAI_IN(DAI_TYPE, DAI_INDEX, DAI_FORMAT, 0, 2, 2, dai0c_plat_conf)
|
|
|
|
#
|
|
# DAI pipeline - always use 0 for DAIs
|
|
#
|
|
W_PIPELINE(N_DAI_IN, SCHEDULE_DEADLINE, SCHEDULE_PRIORITY, SCHEDULE_FRAMES, SCHEDULE_CORE, 0, pipe_dai_schedule_plat)
|
|
|
|
#
|
|
# Pipeline Graph
|
|
#
|
|
# host PCM_C <-- B0 <-- sink DAI0
|
|
|
|
P_GRAPH(pipe-pass-capture-PIPELINE_ID, PIPELINE_ID,
|
|
LIST(` ',
|
|
`dapm(Passthrough Capture PCM_ID, N_PCMC)',
|
|
`dapm(N_PCMC, N_BUFFER(0))'))
|
|
|
|
#
|
|
# Pipeline Source and Sinks
|
|
#
|
|
indir(`define', concat(`PIPELINE_SINK_', PIPELINE_ID), N_BUFFER(0))
|
|
indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Capture PCM_ID)
|
|
|
|
#
|
|
# PCM Configuration
|
|
#
|
|
|
|
PCM_CAPABILITIES(Passthrough Capture PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
|