Skip to content

Commit 15e6e3d

Browse files
committed
topology2: add second capture stream for DMIC0 for MTL topology
This patch adds second capture stream by means of copier module Signed-off-by: jairaj-arava <jairaj.arava@intel.com>
1 parent 9453183 commit 15e6e3d

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

tools/topology/topology2/cavs-rt5682.conf

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,67 @@ Object.Pipeline {
275275
}
276276
}
277277
]
278+
279+
gain-capture [
280+
{
281+
format $FORMAT
282+
index 16
283+
284+
Object.Widget.pipeline.1 {
285+
stream_name "DMIC Raw"
286+
}
287+
Object.Widget.copier.1 {
288+
stream_name "DMIC Raw"
289+
num_audio_formats 2
290+
Object.Base.audio_format.1 {
291+
in_bit_depth 32
292+
in_valid_bit_depth 32
293+
out_bit_depth 32
294+
out_valid_bit_depth 32
295+
dma_buffer_size "$[$ibs * 2]"
296+
}
297+
Object.Base.audio_format.2 {
298+
in_channels 4
299+
in_bit_depth 32
300+
in_valid_bit_depth 32
301+
out_channels 4
302+
out_bit_depth 32
303+
out_valid_bit_depth 32
304+
dma_buffer_size "$[$ibs * 2]"
305+
in_ch_cfg $CHANNEL_CONFIG_QUATRO
306+
in_ch_map $CHANNEL_MAP_3_POINT_1
307+
out_ch_cfg $CHANNEL_CONFIG_QUATRO
308+
out_ch_map $CHANNEL_MAP_3_POINT_1
309+
}
310+
}
311+
Object.Widget.gain.1 {
312+
num_audio_formats 2
313+
Object.Base.audio_format.1 {
314+
in_bit_depth 32
315+
in_valid_bit_depth 32
316+
out_bit_depth 32
317+
out_valid_bit_depth 32
318+
dma_buffer_size "$[$ibs * 2]"
319+
}
320+
Object.Base.audio_format.2 {
321+
in_channels 4
322+
in_bit_depth 32
323+
in_valid_bit_depth 32
324+
out_channels 4
325+
out_bit_depth 32
326+
out_valid_bit_depth 32
327+
dma_buffer_size "$[$ibs * 2]"
328+
in_ch_cfg $CHANNEL_CONFIG_QUATRO
329+
in_ch_map $CHANNEL_MAP_3_POINT_1
330+
out_ch_cfg $CHANNEL_CONFIG_QUATRO
331+
out_ch_map $CHANNEL_MAP_3_POINT_1
332+
}
333+
Object.Control.mixer.1 {
334+
name 'Capture Raw Volume 1'
335+
}
336+
}
337+
}
338+
]
278339
}
279340

280341
Object.PCM.pcm [
@@ -311,6 +372,20 @@ Object.PCM.pcm [
311372
formats 'S16_LE,S24_LE,S32_LE'
312373
}
313374
}
375+
{
376+
name "DMIC Raw"
377+
id 18
378+
direction "capture"
379+
Object.Base.fe_dai."DMIC Raw" {}
380+
381+
Object.PCM.pcm_caps."capture" {
382+
name "DMIC Raw"
383+
# only 32-bit capture supported now
384+
formats 'S32_LE'
385+
channels_min $NUM_DMICS
386+
channels_max $NUM_DMICS
387+
}
388+
}
314389
]
315390

316391
Object.Base.route [
@@ -334,4 +409,8 @@ Object.Base.route [
334409
source "copier.SSP.6.1"
335410
sink "copier.host.5.1"
336411
}
412+
{
413+
source "copier.module.14.2"
414+
sink "gain.16.1"
415+
}
337416
]

0 commit comments

Comments
 (0)