Skip to content

Commit 07b762e

Browse files
committed
topology2: pipeline: add constraints on pipeline.priority attribute
Add constraints on valid pipeline priority values and document the semantics so that 0 is considered the highest priority and such pipeline should be run first. The range matches definitions in include/ipc4/pipeline.h and SOF_IPC4_MAX_PIPELINE_PRIORITY. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 929b194 commit 07b762e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@ Class.Widget."pipeline" {
5757
}
5858
}
5959

60-
# pipeline priority
60+
# pipeline priority (0 = highest priority, 7 = lowest)
6161
DefineAttribute."priority" {
6262
# Token reference and type
6363
token_ref "scheduler.word"
64+
constraints {
65+
min 0
66+
max 7
67+
}
6468
}
6569

6670
# core that the pipeline should be scheduled on

0 commit comments

Comments
 (0)