Skip to content

Commit

Permalink
topology2: Introduce new token for buffer period size
Browse files Browse the repository at this point in the history
Add new token to adjust the input/output buffer size for
process modules.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
  • Loading branch information
ranj063 authored and yongzhi1 committed Oct 26, 2023
1 parent 20705ad commit fa6a714
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/topology/topology2/include/common/tokens.conf
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,8 @@ Object.Base.VendorToken {
node_type 1980
deep_buffer_dma_ms 1981
}
"19" {
name "process"
buffer_period_size 2000
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Class.Widget."google-rtc-aec" {
token_ref "comp.word"
}

DefineAttribute."buffer_period_size" {
# Token set reference name and type
token_ref "process.word"
}

# Attribute categories
attributes {
#
Expand Down Expand Up @@ -138,4 +143,6 @@ Class.Widget."google-rtc-aec" {
is_pages 1
num_input_pins 2
num_output_pins 1
# AEC requires 10ms buffers for processing
buffer_period_size 10
}

0 comments on commit fa6a714

Please sign in to comment.