1<searchdir:include>
2<searchdir:include/common>
3<searchdir:include/components>
4<searchdir:include/dais>
5<searchdir:include/pipelines/cavs>
6<searchdir:platform>
7<searchdir:platform/intel>
8
9<vendor-token.conf>
10<pdm_config.conf>
11<tokens.conf>
12<virtual.conf>
13<host-copier-gain-mixin-playback.conf>
14<mixout-gain-dai-copier-playback.conf>
15<dai-copier-eqiir-module-copier-capture.conf>
16<gain-capture.conf>
17<gain-copier-capture.conf>
18<deepbuffer-playback.conf>
19<host-gateway-playback.conf>
20<host-gateway-capture.conf>
21<io-gateway.conf>
22<io-gateway-capture.conf>
23<highpass-capture-be.conf>
24<data.conf>
25<pcm.conf>
26<pcm_caps.conf>
27<fe_dai.conf>
28<alh.conf>
29<hda.conf>
30<dmic.conf>
31<hw_config_simple.conf>
32<manifest.conf>
33<route.conf>
34<intel/common_definitions.conf>
35<copier.conf>
36<module-copier.conf>
37<pipeline.conf>
38<dai.conf>
39<host.conf>
40<dmic-default.conf>
41<hdmi-default.conf>
42
43Define {
44	PLATFORM 		"none"
45	DMIC_IO_CLK 38400000
46	NUM_DMICS 0
47	# override DMIC default definitions
48	PDM1_MIC_A_ENABLE 1
49	PDM1_MIC_B_ENABLE 1
50	DMIC0_HOST_PIPELINE_ID 100
51	DMIC0_DAI_PIPELINE_ID 101
52	DMIC0_HOST_PIPELINE_SINK 'gain.100.1'
53	DMIC0_DAI_PIPELINE_SRC 'module-copier.101.2'
54	DMIC0_DAI_COPIER 'copier.DMIC.101.1'
55	DMIC0_DAI_GAIN 'eqiir.101.1'
56	DMIC0_NAME 'dmic01'
57	DMIC0_ID 4
58	DMIC1_ID 5
59	DMIC0_PCM_CAPS 'Gain Capture 13'
60	USE_CHAIN_DMA	"false"
61	DEEP_BUFFER_PIPELINE_ID         15
62	DEEP_BUFFER_PCM_ID              31
63	DEEP_BUFFER_PIPELINE_SRC        'mixin.15.1'
64	DEEP_BUFFER_PIPELINE_SINK       'mixout.1.1'
65	DEEP_BUFFER_PCM_NAME		'Deepbuffer Jack Out'
66	SDW_JACK_OUT_STREAM	'SDW0-Playback'
67	SDW_JACK_IN_STREAM	'SDW0-Capture'
68	SDW_JACK_OUT_BE_ID	0
69	SDW_JACK_IN_BE_ID	1
70	NUM_SDW_AMPS 0
71	SDW_DMIC 0
72}
73
74# override defaults with platform-specific config
75IncludeByKey.PLATFORM {
76	"mtl"	"platform/intel/mtl.conf"
77}
78
79# include DMIC config if needed.
80IncludeByKey.NUM_DMICS {
81"[1-4]" "platform/intel/dmic-generic.conf"
82}
83
84Define {
85	NUM_HDMIS 3
86}
87
88# include HDMI config if needed.
89IncludeByKey.NUM_HDMIS {
90"[3-4]" "platform/intel/hdmi-generic.conf"
91}
92
93# include deep buffer config if buffer size is in 1 - 1000 ms.
94IncludeByKey.DEEPBUFFER_FW_DMA_MS{
95        "[1-1000]" "platform/intel/deep-buffer.conf"
96}
97
98IncludeByKey.NUM_SDW_AMPS {
99"[1-2]" "platform/intel/sdw-amp-generic.conf"
100}
101
102IncludeByKey.SDW_DMIC {
103"1" "platform/intel/sdw-dmic-generic.conf"
104}
105
106#
107# List of all DAIs
108#
109#ALH Index: 0, Direction: duplex
110Object.Dai.ALH [
111	{
112		dai_index 0
113		id 		$SDW_JACK_OUT_BE_ID
114		direction	"playback"
115		name		$SDW_JACK_OUT_STREAM
116		default_hw_conf_id	0
117		rate			48000
118		channels		2
119
120		Object.Base.hw_config.1 {
121			id	0
122			name	"ALH2"
123		}
124	}
125	{
126		dai_index 10
127		id 		$SDW_JACK_IN_BE_ID
128		direction	"capture"
129		name		$SDW_JACK_IN_STREAM
130		default_hw_conf_id	1
131		rate			48000
132		channels		2
133
134		Object.Base.hw_config.1 {
135			id	1
136			name	"ALH3"
137		}
138	}
139]
140
141#
142# Pipeline definitions
143#
144
145# Pipeline ID:1 PCM ID: 0
146Object.Pipeline {
147	host-copier-gain-mixin-playback [
148		{
149			index 0
150
151		Object.Widget.copier.1 {
152			stream_name "volume playback 0"
153		}
154		Object.Widget.gain.1 {
155			Object.Control.mixer.1 {
156				name '1 Playback Volume 0'
157				}
158			}
159		}
160	]
161
162	mixout-gain-dai-copier-playback [
163		{
164			index 1
165
166			Object.Widget.copier.1 {
167				stream_name $SDW_JACK_OUT_STREAM
168				dai_type "ALH"
169				copier_type "ALH"
170				node_type $ALH_LINK_OUTPUT_CLASS
171			}
172			Object.Widget.gain.1 {
173				Object.Control.mixer.1 {
174					name '2 Main Playback Volume'
175				}
176			}
177		}
178	]
179
180	host-gateway-capture [
181		{
182			index 10
183
184			Object.Widget.copier.1.stream_name	"Passthrough Capture 0"
185			Object.Widget.copier.1.Object.Base.audio_format.1 {
186				# 32/32 -> 16/16 bits conversion is done here
187				in_bit_depth	32
188				in_valid_bit_depth	32
189			}
190		}
191	]
192
193	highpass-capture-be [
194		{
195			direction	"capture"
196			index 11
197			copier_type "ALH"
198
199			Object.Widget.copier.1 {
200				stream_name	$SDW_JACK_IN_STREAM
201				dai_type	"ALH"
202				copier_type	"ALH"
203				type		"dai_out"
204				node_type $ALH_LINK_INPUT_CLASS
205			}
206			Object.Widget.eqiir.1 {
207				Object.Control.bytes."1" {
208					name '4 Main capture Iir Eq'
209				}
210			}
211		}
212	]
213}
214
215Object.PCM.pcm [
216	{
217		name	"Jack out"
218		id 0
219		direction	"playback"
220		Object.Base.fe_dai.1 {
221			name	"Jack out"
222		}
223
224		Object.PCM.pcm_caps.1 {
225			name "volume playback 0"
226			formats 'S16_LE,S32_LE'
227		}
228	}
229	{
230		name	"Jack in"
231		id 1
232		direction	"capture"
233		Object.Base.fe_dai.1 {
234			name	"Jack in"
235		}
236
237		Object.PCM.pcm_caps.1 {
238			name "Passthrough Capture 0"
239			formats 'S16_LE,S32_LE'
240		}
241	}
242]
243
244Object.Base.route [
245	{
246		source	"gain.1.1"
247		sink	"copier.ALH.1.1"
248	}
249	{
250		source "mixin.0.1"
251		sink "mixout.1.1"
252	}
253	{
254		source	"copier.ALH.11.1"
255		sink	"eqiir.11.1"
256	}
257	{
258		source	"eqiir.11.1"
259		sink	"copier.host.10.1"
260	}
261]
262