Skip to content

Commit 48afcef

Browse files
committed
topology2: cavs: fix num_audio_formats to match the actual number
Multiple pipelines had incorrect num_audio_formats leading to invalid format structures ending up to topology. Example FW trace: [ 1601.624195] sof-audio-pci-intel-tgl 0000:00:1f.3: Get input audio formats for copier.module.8.2 [ 1601.624197] sof-audio-pci-intel-tgl 0000:00:1f.3:  #0: 48000KHz, 32bit (ch_map 0xffffff10 ch_cfg 1 interleaving_style 0 fmt_cfg 0x2002) [ 1601.624201] sof-audio-pci-intel-tgl 0000:00:1f.3:  #1: 0KHz, 0bit (ch_map 0x0 ch_cfg 0 interleaving_style 0 fmt_cfg 0x0) Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 6b9c3ca commit 48afcef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/topology/topology2/include/pipelines/cavs/dai-copier-gain-mixin-capture.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Class.Pipeline."dai-copier-gain-mixin-capture" {
5050
period_sink_count 2
5151
period_source_count 0
5252
node_type $HDA_LINK_INPUT_CLASS
53-
num_audio_formats 2
53+
num_audio_formats 1
5454
# copier only supports one format based on mixin/mixout requirements: 32-bit 48KHz 2ch
5555
Object.Base.audio_format.1 {
5656
in_bit_depth 32

tools/topology/topology2/include/pipelines/cavs/dai-copier-gain-module-copier-capture.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Class.Pipeline."dai-copier-gain-module-copier-capture" {
4949
type dai_out
5050
period_sink_count 2
5151
period_source_count 0
52-
num_audio_formats 2
52+
num_audio_formats 1
5353
# copier only supports one format based on mixin/mixout requirements: 32-bit 48KHz 2ch
5454
Object.Base.audio_format.1 {
5555
in_bit_depth 32
@@ -65,7 +65,7 @@ Class.Pipeline."dai-copier-gain-module-copier-capture" {
6565
copier_type "module"
6666
period_sink_count 2
6767
period_source_count 0
68-
num_audio_formats 2
68+
num_audio_formats 1
6969
Object.Base.audio_format.1 {
7070
in_bit_depth 32
7171
in_valid_bit_depth 32

0 commit comments

Comments
 (0)