Skip to content

Commit 3ad30d5

Browse files
jsarhalgirdwood
authored andcommitted
topology2: pipeline: Add "kcps" attribute
Adds kcps attribute to pipeline class with 0 default value. The default can be overrided with KCPS_PIPELINE_DEFAULT define. Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
1 parent 4369623 commit 3ad30d5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tools/topology/topology2/include/common/tokens.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Object.Base.VendorToken {
8080
# ABI 4.0 onwards
8181
lp_mode 207
8282
use_chain_dma 209
83+
kcps 210
8384
}
8485

8586
"9" {

tools/topology/topology2/include/components/pipeline.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
#
1414
# Where N is the unique instance number for pipeline widget in the same alsaconf node.
1515

16+
Define {
17+
# If KCPS value for the pipeline is 0 then the driver does not send any
18+
# KCPS adjustment message to the firmware. This is the default.
19+
KCPS_PIPELINE_DEFAULT 0
20+
}
21+
1622
Class.Widget."pipeline" {
1723
# pipeline_id for the pipeline widget
1824
DefineAttribute."index" {}
@@ -104,6 +110,12 @@ Class.Widget."pipeline" {
104110
}
105111
}
106112

113+
# kcps requirements for the pipeline, default value defined bellow
114+
DefineAttribute."kcps" {
115+
# Token reference and type
116+
token_ref "sof_tkn_scheduler.word"
117+
}
118+
107119
attributes {
108120
# pipeline widget name will be constructed as pipeline.1, pipeline.2 etc
109121
!constructor [
@@ -127,4 +139,5 @@ Class.Widget."pipeline" {
127139
# Default attributes for pipeline
128140
type "scheduler"
129141
no_pm "true"
142+
kcps $KCPS_PIPELINE_DEFAULT
130143
}

0 commit comments

Comments
 (0)