Skip to content

Commit

Permalink
topology2: cavs: fix num_audio_formats to match the actual number
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kv2019i committed Jan 26, 2023
1 parent 6b9c3ca commit 48afcef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Class.Pipeline."dai-copier-gain-mixin-capture" {
period_sink_count 2
period_source_count 0
node_type $HDA_LINK_INPUT_CLASS
num_audio_formats 2
num_audio_formats 1
# copier only supports one format based on mixin/mixout requirements: 32-bit 48KHz 2ch
Object.Base.audio_format.1 {
in_bit_depth 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Class.Pipeline."dai-copier-gain-module-copier-capture" {
type dai_out
period_sink_count 2
period_source_count 0
num_audio_formats 2
num_audio_formats 1
# copier only supports one format based on mixin/mixout requirements: 32-bit 48KHz 2ch
Object.Base.audio_format.1 {
in_bit_depth 32
Expand All @@ -65,7 +65,7 @@ Class.Pipeline."dai-copier-gain-module-copier-capture" {
copier_type "module"
period_sink_count 2
period_source_count 0
num_audio_formats 2
num_audio_formats 1
Object.Base.audio_format.1 {
in_bit_depth 32
in_valid_bit_depth 32
Expand Down

0 comments on commit 48afcef

Please sign in to comment.