From f257b9047c89676421ffc87e27f5db18f93c470f Mon Sep 17 00:00:00 2001 From: Bard Liao Date: Thu, 30 Jun 2022 11:26:41 +0800 Subject: [PATCH] topology2: add num_audio_formats for gain We should set num_audio_formats in pipelines when we remove the default value from gain.conf. Otherwise, we will see below error with cavs-mixin-mixout-hda-2ch-tgl.tplg tplg: ready widget id 2 pipe 1 type 6 name : gain.1.1 stream none Fixes: 773a05a3 ('topology2: add S24LE support') Signed-off-by: Bard Liao --- .../include/pipelines/cavs/dai-copier-gain-mixin-capture.conf | 2 ++ .../include/pipelines/cavs/host-copier-gain-mixin-playback.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/topology/topology2/include/pipelines/cavs/dai-copier-gain-mixin-capture.conf b/tools/topology/topology2/include/pipelines/cavs/dai-copier-gain-mixin-capture.conf index cb08228fbd94..341fbceb0d1b 100644 --- a/tools/topology/topology2/include/pipelines/cavs/dai-copier-gain-mixin-capture.conf +++ b/tools/topology/topology2/include/pipelines/cavs/dai-copier-gain-mixin-capture.conf @@ -68,6 +68,8 @@ Class.Pipeline."dai-copier-gain-mixin-capture" { mixin."1" {} gain."1" { + num_audio_formats 1 + # 32-bit 48KHz 2ch Object.Base.audio_format.1 { in_bit_depth 32 diff --git a/tools/topology/topology2/include/pipelines/cavs/host-copier-gain-mixin-playback.conf b/tools/topology/topology2/include/pipelines/cavs/host-copier-gain-mixin-playback.conf index c794bf570012..18d070b09f71 100644 --- a/tools/topology/topology2/include/pipelines/cavs/host-copier-gain-mixin-playback.conf +++ b/tools/topology/topology2/include/pipelines/cavs/host-copier-gain-mixin-playback.conf @@ -80,6 +80,8 @@ Class.Pipeline."host-copier-gain-mixin-playback" { } gain."1" { + num_audio_formats 1 + # 32-bit 48KHz 2ch Object.Base.audio_format.1 { in_bit_depth 32