Skip to content

Commit 35fbf79

Browse files
libinyangbardliao
authored andcommitted
topology: sof: add pipe-passthrough-capture_16k.m4
DMIC16k only supports 16000Hz sample rate. pipe-passthough-capture.m4 only supports 48000Hz. Add pipe-passthrough-capture_16k.m4 to support 16KHz record. Signed-off-by: Libin Yang <libin.yang@intel.com>
1 parent 0c93261 commit 35fbf79

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Capture Passthrough Pipeline and PCM for 16KHz
2+
# This is a temporary solution. After FW supports the
3+
# refinement of sample rate, this file will be removed
4+
# and the default Passthrough will support all kinds
5+
# of sample rates.
6+
#
7+
# Pipeline Endpoints for connection are :-
8+
#
9+
# host PCM_C <-- B0 <-- sink DAI0
10+
11+
# Include topology builder
12+
include(`utils.m4')
13+
include(`buffer.m4')
14+
include(`pcm.m4')
15+
include(`dai.m4')
16+
include(`pipeline.m4')
17+
18+
#
19+
# Components and Buffers
20+
#
21+
22+
# Host "Passthrough Capture" PCM
23+
# with 0 sink and 2 source periods
24+
W_PCM_CAPTURE(PCM_ID, Passthrough Capture, 0, 2)
25+
26+
# Capture Buffers
27+
W_BUFFER(0, COMP_BUFFER_SIZE(2,
28+
COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, SCHEDULE_FRAMES),
29+
PLATFORM_PASS_MEM_CAP)
30+
31+
#
32+
# Pipeline Graph
33+
#
34+
# host PCM_C <-- B0 <-- sink DAI0
35+
36+
P_GRAPH(pipe-pass-capture-PIPELINE_ID, PIPELINE_ID,
37+
LIST(` ',
38+
`dapm(N_PCMC(PCM_ID), N_BUFFER(0))'))
39+
40+
#
41+
# Pipeline Source and Sinks
42+
#
43+
indir(`define', concat(`PIPELINE_SINK_', PIPELINE_ID), N_BUFFER(0))
44+
indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Capture PCM_ID)
45+
46+
#
47+
# PCM Configuration
48+
#
49+
50+
PCM_CAPABILITIES(Passthrough Capture PCM_ID, COMP_FORMAT_NAME(PIPELINE_FORMAT), 16000, 16000, PIPELINE_CHANNELS, PIPELINE_CHANNELS, 2, 16, 192, 16384, 65536, 65536)

0 commit comments

Comments
 (0)