Skip to content

Commit f4bbd3a

Browse files
committed
topology2: components: pipeline: Add direction attribute
Add a new token for pipeline direction and a new atttribute for the pipeline component. This change is required to implement the firmware based echo reference feature to inform the kernel of the pipeline direction in order for it to make a decision on which pipelines to set up when the echo reference capture pipeline is set up. Signed-off-by: Ranjani Sridharan <[email protected]>
1 parent da8c0e6 commit f4bbd3a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Object.Base.VendorToken {
8484
lp_mode 207
8585
use_chain_dma 209
8686
kcps 210
87+
direction 211
8788
}
8889

8990
"9" {

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,21 @@ Class.Widget."pipeline" {
102102
}
103103
}
104104

105+
DefineAttribute."direction" {
106+
type "string"
107+
token_ref "scheduler.word"
108+
constraints {
109+
!valid_values [
110+
"playback"
111+
"capture"
112+
]
113+
!tuple_values [
114+
0
115+
1
116+
]
117+
}
118+
}
119+
105120
# Skip setting up the pipeline in the DSP in the case of chained DMA mode
106121
DefineAttribute."use_chain_dma" {
107122
type "string"

0 commit comments

Comments
 (0)