Skip to content

Commit ca0c11c

Browse files
committed
Tools: Topology: Set virtual widget connected alh-copier channels count
This patch sets the other speaker alh-copier to same channels count as the first is set. TBD, how should the NUM_SDW_AMP_LINKS=3 be handled? Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 221707a commit ca0c11c

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

tools/topology/topology2/platform/intel/sdw-amp-generic.conf

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,36 @@ IncludeByKey.NUM_SDW_AMP_LINKS {
420420
num_input_pins 1
421421
Object.Base.input_audio_format [
422422
{
423-
in_bit_depth 32
424-
in_valid_bit_depth 32
423+
IncludeByKey.SDW_AMP_NUM_CHANNELS {
424+
"2" {
425+
in_ch_cfg $CHANNEL_CONFIG_STEREO
426+
in_ch_map $CHANNEL_MAP_STEREO
427+
}
428+
"4" {
429+
in_ch_cfg $CHANNEL_CONFIG_3_POINT_1
430+
in_ch_map $CHANNEL_MAP_3_POINT_1
431+
}
432+
}
433+
in_channels $SDW_AMP_NUM_CHANNELS
434+
in_bit_depth 32
435+
in_valid_bit_depth 32
425436
}
426437
]
427438
Object.Base.output_audio_format [
428439
{
429-
out_bit_depth 32
430-
out_valid_bit_depth $SDW_LINK_VALID_BITS
440+
IncludeByKey.SDW_AMP_NUM_CHANNELS {
441+
"2" {
442+
out_ch_cfg $CHANNEL_CONFIG_STEREO
443+
out_ch_map $CHANNEL_MAP_STEREO
444+
}
445+
"4" {
446+
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
447+
out_ch_map $CHANNEL_MAP_3_POINT_1
448+
}
449+
}
450+
out_channels $SDW_AMP_NUM_CHANNELS
451+
out_bit_depth 32
452+
out_valid_bit_depth $SDW_LINK_VALID_BITS
431453
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
432454
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
433455
}

0 commit comments

Comments
 (0)