Skip to content

Commit

Permalink
topology2: set pipeline priority for google aec stream
Browse files Browse the repository at this point in the history
Set priority for aec stream so that driver can trigger pipeline based on
pipeline priority.

Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Sep 18, 2023
1 parent f114ace commit 43bc954
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tools/topology/topology2/cavs-rt5682.conf
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ Define {
SPEAKER_PCM_NAME "Speakers"
SPEAKER_PCM_ID 1
INCLUDE_BT_OFFLOAD true
GOOGLE_AEC_HOST_PIPELINE_PRIORITY 3
GOOGLE_AEC_PIPELINE_PRIORITY 2
DMIC_PIPELINE_PRIORITY 1
ECHO_REF_PIPELINE_PRIORITY 0
}

# override defaults with platform-specific config
Expand Down
1 change: 1 addition & 0 deletions tools/topology/topology2/platform/intel/dmic-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ Define {
DMIC1_PCM_CAPS 'Passthrough Capture 18'
DMIC_CORE_ID 0
PASSTHROUGH "false"
DMIC_PIPELINE_PRIORITY 0
}
1 change: 1 addition & 0 deletions tools/topology/topology2/platform/intel/dmic-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ IncludeByKey.PASSTHROUGH {
}
Object.Widget.pipeline."1" {
core $DMIC_CORE_ID
priority $DMIC_PIPELINE_PRIORITY
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Object.Pipeline.google-rtc-aec-capture [
Object.Widget.pipeline.1 {
stream_name "DMIC0 RTC AEC"
core $GOOGLE_AEC_CORE_ID
priority $GOOGLE_AEC_PIPELINE_PRIORITY
}

Object.Widget.google-rtc-aec.1 {
Expand All @@ -31,6 +32,7 @@ Object.Pipeline.host-gateway-capture[
}
Object.Widget.pipeline."1" {
core $GOOGLE_AEC_CORE_ID
priority $GOOGLE_AEC_HOST_PIPELINE_PRIORITY
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Object.Pipeline {
}
}
Object.Widget.pipeline."1" {
core $ECHO_REF_CORE_ID
core $ECHO_REF_CORE_ID
priority $ECHO_REF_PIPELINE_PRIORITY
}
}
]
Expand Down

0 comments on commit 43bc954

Please sign in to comment.