Skip to content

Commit b6d34fb

Browse files
ranj063kv2019i
authored andcommitted
topology2: Replace audio_format objects
Replace audio_format objects with input_audio_format/output_audio_format objects in preparation for deprecating the audio_format class. Signed-off-by: Ranjani Sridharan <[email protected]>
1 parent 7c735fe commit b6d34fb

25 files changed

Lines changed: 899 additions & 613 deletions

‎tools/topology/topology2/cavs-nocodec-multicore.conf‎

Lines changed: 156 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -315,46 +315,62 @@ IncludeByKey.PASSTHROUGH {
315315
stream_name 'Gain Capture 19'
316316
num_input_audio_formats 2
317317
num_output_audio_formats 2
318-
Object.Base.audio_format.1 {
319-
in_bit_depth 32
320-
in_valid_bit_depth 32
321-
out_bit_depth 32
322-
out_valid_bit_depth 32
323-
}
324-
Object.Base.audio_format.2 {
325-
in_channels 4
326-
in_bit_depth 32
327-
in_valid_bit_depth 32
328-
out_channels 4
329-
out_bit_depth 32
330-
out_valid_bit_depth 32
331-
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
332-
in_ch_map $CHANNEL_MAP_3_POINT_1
333-
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
334-
out_ch_map $CHANNEL_MAP_3_POINT_1
335-
}
318+
Object.Base.input_audio_format [
319+
{
320+
in_bit_depth 32
321+
in_valid_bit_depth 32
322+
}
323+
{
324+
in_channels 4
325+
in_bit_depth 32
326+
in_valid_bit_depth 32
327+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
328+
in_ch_map $CHANNEL_MAP_3_POINT_1
329+
}
330+
]
331+
Object.Base.output_audio_format [
332+
{
333+
out_bit_depth 32
334+
out_valid_bit_depth 32
335+
}
336+
{
337+
out_channels 4
338+
out_bit_depth 32
339+
out_valid_bit_depth 32
340+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
341+
out_ch_map $CHANNEL_MAP_3_POINT_1
342+
}
343+
]
336344
}
337345
Object.Widget.gain.1 {
338346
num_input_audio_formats 2
339347
num_output_audio_formats 2
340-
Object.Base.audio_format.1 {
341-
in_bit_depth 32
342-
in_valid_bit_depth 32
343-
out_bit_depth 32
344-
out_valid_bit_depth 32
345-
}
346-
Object.Base.audio_format.2 {
347-
in_channels 4
348-
in_bit_depth 32
349-
in_valid_bit_depth 32
350-
out_channels 4
351-
out_bit_depth 32
352-
out_valid_bit_depth 32
353-
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
354-
in_ch_map $CHANNEL_MAP_3_POINT_1
355-
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
356-
out_ch_map $CHANNEL_MAP_3_POINT_1
357-
}
348+
Object.Base.input_audio_format [
349+
{
350+
in_bit_depth 32
351+
in_valid_bit_depth 32
352+
}
353+
{
354+
in_channels 4
355+
in_bit_depth 32
356+
in_valid_bit_depth 32
357+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
358+
in_ch_map $CHANNEL_MAP_3_POINT_1
359+
}
360+
]
361+
Object.Base.output_audio_format [
362+
{
363+
out_bit_depth 32
364+
out_valid_bit_depth 32
365+
}
366+
{
367+
out_channels 4
368+
out_bit_depth 32
369+
out_valid_bit_depth 32
370+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
371+
out_ch_map $CHANNEL_MAP_3_POINT_1
372+
}
373+
]
358374
Object.Control.mixer.1 {
359375
name 'Pre Demux $DMIC0_PCM_0_NAME Capture Volume'
360376
}
@@ -376,46 +392,62 @@ IncludeByKey.PASSTHROUGH {
376392
pcm_id $DMIC0_PCM_0_PCM_ID
377393
num_input_audio_formats 2
378394
num_output_audio_formats 2
379-
Object.Base.audio_format.1 {
380-
in_bit_depth 32
381-
in_valid_bit_depth 32
382-
out_bit_depth 32
383-
out_valid_bit_depth 32
384-
}
385-
Object.Base.audio_format.2 {
386-
in_channels 4
387-
in_bit_depth 32
388-
in_valid_bit_depth 32
389-
out_channels 4
390-
out_bit_depth 32
391-
out_valid_bit_depth 32
392-
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
393-
in_ch_map $CHANNEL_MAP_3_POINT_1
394-
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
395-
out_ch_map $CHANNEL_MAP_3_POINT_1
396-
}
395+
Object.Base.input_audio_format [
396+
{
397+
in_bit_depth 32
398+
in_valid_bit_depth 32
399+
}
400+
{
401+
in_channels 4
402+
in_bit_depth 32
403+
in_valid_bit_depth 32
404+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
405+
in_ch_map $CHANNEL_MAP_3_POINT_1
406+
}
407+
]
408+
Object.Base.output_audio_format [
409+
{
410+
out_bit_depth 32
411+
out_valid_bit_depth 32
412+
}
413+
{
414+
out_channels 4
415+
out_bit_depth 32
416+
out_valid_bit_depth 32
417+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
418+
out_ch_map $CHANNEL_MAP_3_POINT_1
419+
}
420+
]
397421
}
398422
Object.Widget.gain.1 {
399423
num_input_audio_formats 2
400424
num_output_audio_formats 2
401-
Object.Base.audio_format.1 {
402-
in_bit_depth 32
403-
in_valid_bit_depth 32
404-
out_bit_depth 32
405-
out_valid_bit_depth 32
406-
}
407-
Object.Base.audio_format.2 {
408-
in_channels 4
409-
in_bit_depth 32
410-
in_valid_bit_depth 32
411-
out_channels 4
412-
out_bit_depth 32
413-
out_valid_bit_depth 32
414-
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
415-
in_ch_map $CHANNEL_MAP_3_POINT_1
416-
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
417-
out_ch_map $CHANNEL_MAP_3_POINT_1
418-
}
425+
Object.Base.input_audio_format [
426+
{
427+
in_bit_depth 32
428+
in_valid_bit_depth 32
429+
}
430+
{
431+
in_channels 4
432+
in_bit_depth 32
433+
in_valid_bit_depth 32
434+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
435+
in_ch_map $CHANNEL_MAP_3_POINT_1
436+
}
437+
]
438+
Object.Base.output_audio_format [
439+
{
440+
out_bit_depth 32
441+
out_valid_bit_depth 32
442+
}
443+
{
444+
out_channels 4
445+
out_bit_depth 32
446+
out_valid_bit_depth 32
447+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
448+
out_ch_map $CHANNEL_MAP_3_POINT_1
449+
}
450+
]
419451
Object.Control.mixer.1 {
420452
name 'Post Demux $DMIC0_PCM_0_NAME Capture Volume'
421453
}
@@ -434,46 +466,62 @@ IncludeByKey.PASSTHROUGH {
434466
pcm_id $DMIC0_PCM_1_PCM_ID
435467
num_input_audio_formats 2
436468
num_output_audio_formats 2
437-
Object.Base.audio_format.1 {
438-
in_bit_depth 32
439-
in_valid_bit_depth 32
440-
out_bit_depth 32
441-
out_valid_bit_depth 32
442-
}
443-
Object.Base.audio_format.2 {
444-
in_channels 4
445-
in_bit_depth 32
446-
in_valid_bit_depth 32
447-
out_channels 4
448-
out_bit_depth 32
449-
out_valid_bit_depth 32
450-
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
451-
in_ch_map $CHANNEL_MAP_3_POINT_1
452-
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
453-
out_ch_map $CHANNEL_MAP_3_POINT_1
454-
}
469+
Object.Base.input_audio_format [
470+
{
471+
in_bit_depth 32
472+
in_valid_bit_depth 32
473+
}
474+
{
475+
in_channels 4
476+
in_bit_depth 32
477+
in_valid_bit_depth 32
478+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
479+
in_ch_map $CHANNEL_MAP_3_POINT_1
480+
}
481+
]
482+
Object.Base.output_audio_format [
483+
{
484+
out_bit_depth 32
485+
out_valid_bit_depth 32
486+
}
487+
{
488+
out_channels 4
489+
out_bit_depth 32
490+
out_valid_bit_depth 32
491+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
492+
out_ch_map $CHANNEL_MAP_3_POINT_1
493+
}
494+
]
455495
}
456496
Object.Widget.gain.1 {
457497
num_input_audio_formats 2
458498
num_output_audio_formats 2
459-
Object.Base.audio_format.1 {
460-
in_bit_depth 32
461-
in_valid_bit_depth 32
462-
out_bit_depth 32
463-
out_valid_bit_depth 32
464-
}
465-
Object.Base.audio_format.2 {
466-
in_channels 4
467-
in_bit_depth 32
468-
in_valid_bit_depth 32
469-
out_channels 4
470-
out_bit_depth 32
471-
out_valid_bit_depth 32
472-
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
473-
in_ch_map $CHANNEL_MAP_3_POINT_1
474-
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
475-
out_ch_map $CHANNEL_MAP_3_POINT_1
476-
}
499+
Object.Base.input_audio_format [
500+
{
501+
in_bit_depth 32
502+
in_valid_bit_depth 32
503+
}
504+
{
505+
in_channels 4
506+
in_bit_depth 32
507+
in_valid_bit_depth 32
508+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
509+
in_ch_map $CHANNEL_MAP_3_POINT_1
510+
}
511+
]
512+
Object.Base.output_audio_format [
513+
{
514+
out_bit_depth 32
515+
out_valid_bit_depth 32
516+
}
517+
{
518+
out_channels 4
519+
out_bit_depth 32
520+
out_valid_bit_depth 32
521+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
522+
out_ch_map $CHANNEL_MAP_3_POINT_1
523+
}
524+
]
477525
Object.Control.mixer.1 {
478526
name 'Post Demux $DMIC0_PCM_1_NAME Capture Volume'
479527
}

‎tools/topology/topology2/development/cavs-nocodec-crossover.conf‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,6 @@ Object.Pipeline.io-gateway-capture [
315315
copier_type "SSP"
316316
stream_name "NoCodec-2"
317317
node_type $I2S_LINK_INPUT_CLASS
318-
Object.Base.audio_format.1 {
319-
in_bit_depth 32
320-
in_valid_bit_depth 32
321-
out_bit_depth 32
322-
out_valid_bit_depth 32
323-
}
324318
}
325319
}
326320
]

‎tools/topology/topology2/include/bench/one_input_output_format_s16.conf‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
num_input_audio_formats 1
22
num_output_audio_formats 1
33

4-
# 32-bit 48KHz 2ch
5-
Object.Base.audio_format [
4+
# 16-bit 48KHz 2ch
5+
Object.Base.input_audio_format [
66
{
77
in_bit_depth 16
88
in_valid_bit_depth 16
9+
}
10+
]
11+
Object.Base.output_audio_format [
12+
{
913
out_bit_depth 16
1014
out_valid_bit_depth 16
1115
}

‎tools/topology/topology2/include/bench/one_input_output_format_s24.conf‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
num_input_audio_formats 1
22
num_output_audio_formats 1
33

4-
# 32-bit 48KHz 2ch
5-
Object.Base.audio_format [
4+
# 24-bit 48KHz 2ch
5+
Object.Base.input_audio_format [
66
{
77
in_bit_depth 32
88
in_valid_bit_depth 24
9+
}
10+
]
11+
Object.Base.output_audio_format [
12+
{
913
out_bit_depth 32
1014
out_valid_bit_depth 24
1115
}

‎tools/topology/topology2/include/bench/one_input_output_format_s32.conf‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
num_output_audio_formats 1
33

44
# 32-bit 48KHz 2ch
5-
Object.Base.audio_format [
5+
Object.Base.input_audio_format [
66
{
77
in_bit_depth 32
88
in_valid_bit_depth 32
9+
}
10+
]
11+
Object.Base.output_audio_format [
12+
{
913
out_bit_depth 32
1014
out_valid_bit_depth 32
1115
}

0 commit comments

Comments
 (0)