Skip to content

Commit 73803ad

Browse files
Jaska Uimonenlgirdwood
authored andcommitted
topology2: add dmic to nocodec topology
Add dmic definition to nocodec topology. Suggested-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
1 parent c4880ff commit 73803ad

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

tools/topology/topology2/cavs-nocodec.conf

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<include/components/pipeline.conf>
1111
<include/components/copier.conf>
1212
<include/dais/ssp.conf>
13+
<include/dais/dmic.conf>
14+
<include/dais/pdm_config.conf>
15+
<include/common/data.conf>
1316
<include/dais/hw_config.conf>
1417
<include/pipelines/cavs/passthrough-playback.conf>
1518
<include/pipelines/cavs/passthrough-capture.conf>
@@ -61,6 +64,54 @@ Object.Dai {
6164
format s16le
6265
}
6366
}
67+
DMIC."0" {
68+
name NoCodec-6
69+
id 6
70+
index 0
71+
driver_version 1
72+
clk_min 500000
73+
clk_max 4800000
74+
duty_min 40
75+
duty_max 60
76+
sample_rate 48000
77+
fifo_word_length 16
78+
unmute_ramp_time_ms 200
79+
num_pdm_active 1
80+
81+
# these fir design parameters are for future use
82+
# and they are currently ignored
83+
fir_type "kaiser-linear-phase"
84+
fir_length 127
85+
cic_decimate 25
86+
fir_decimate 2
87+
fir_passband_end 20000
88+
fir_stopband_start 24000
89+
fir_passpand_ripple 10
90+
fir_stopband_ripple -95000
91+
92+
Object.Base.hw_config."DMIC0" {
93+
id 0
94+
}
95+
96+
Object.Widget.copier."1" {
97+
index 3
98+
dai_index 3
99+
type "dai_out"
100+
dai_type "DMIC"
101+
copier_type "DMIC"
102+
type dai_out
103+
direction "capture"
104+
stream_name "NoCodec-6"
105+
period_sink_count 2
106+
period_source_count 0
107+
format s16le
108+
}
109+
110+
# PDM controller config
111+
Object.Base.pdm_config."0" {
112+
ctrl_id 0
113+
}
114+
}
64115
}
65116

66117
#

0 commit comments

Comments
 (0)