mirror of https://github.com/thesofproject/sof.git
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>
This commit is contained in:
parent
43696239d3
commit
3ad30d576c
|
@ -80,6 +80,7 @@ Object.Base.VendorToken {
|
||||||
# ABI 4.0 onwards
|
# ABI 4.0 onwards
|
||||||
lp_mode 207
|
lp_mode 207
|
||||||
use_chain_dma 209
|
use_chain_dma 209
|
||||||
|
kcps 210
|
||||||
}
|
}
|
||||||
|
|
||||||
"9" {
|
"9" {
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
#
|
#
|
||||||
# Where N is the unique instance number for pipeline widget in the same alsaconf node.
|
# Where N is the unique instance number for pipeline widget in the same alsaconf node.
|
||||||
|
|
||||||
|
Define {
|
||||||
|
# If KCPS value for the pipeline is 0 then the driver does not send any
|
||||||
|
# KCPS adjustment message to the firmware. This is the default.
|
||||||
|
KCPS_PIPELINE_DEFAULT 0
|
||||||
|
}
|
||||||
|
|
||||||
Class.Widget."pipeline" {
|
Class.Widget."pipeline" {
|
||||||
# pipeline_id for the pipeline widget
|
# pipeline_id for the pipeline widget
|
||||||
DefineAttribute."index" {}
|
DefineAttribute."index" {}
|
||||||
|
@ -104,6 +110,12 @@ Class.Widget."pipeline" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# kcps requirements for the pipeline, default value defined bellow
|
||||||
|
DefineAttribute."kcps" {
|
||||||
|
# Token reference and type
|
||||||
|
token_ref "sof_tkn_scheduler.word"
|
||||||
|
}
|
||||||
|
|
||||||
attributes {
|
attributes {
|
||||||
# pipeline widget name will be constructed as pipeline.1, pipeline.2 etc
|
# pipeline widget name will be constructed as pipeline.1, pipeline.2 etc
|
||||||
!constructor [
|
!constructor [
|
||||||
|
@ -127,4 +139,5 @@ Class.Widget."pipeline" {
|
||||||
# Default attributes for pipeline
|
# Default attributes for pipeline
|
||||||
type "scheduler"
|
type "scheduler"
|
||||||
no_pm "true"
|
no_pm "true"
|
||||||
|
kcps $KCPS_PIPELINE_DEFAULT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue